/* Estilos para domain - Servicio de Auditoría Financiera */

/* Reseteo y estilos generales */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 40px;
}

section[id] {
  scroll-margin-top: 40px;
}

body {
  font-family: "Montserrat", "Arial", sans-serif;
  background-color: #f5f7fa;
  color: #222831;
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1c1c2e;
}

h1 {
  font-size: 2.8rem;
}

h2 {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 2rem;
}

h3 {
  font-size: 1.8rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: #ff8f00;
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: #ff5722;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(45deg, #ff8f00, #ff5722);
  color: #ffffff;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(255, 143, 0, 0.3);
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 143, 0, 0.4);
  color: #ffffff;
}

.section-padding {
  padding: 80px 0;
}

.text-center {
  text-align: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: #1c1c2e;
}

.logo span {
  color: #ff8f00;
}

/* Header y navegación */
header {
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 30px;
}

.nav-links a {
  color: #1c1c2e;
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: #ff8f00;
}

.hamburger {
  display: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
}

.hamburger span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: #1c1c2e;
  border-radius: 3px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: 0.25s ease-in-out;
}

.hamburger span:nth-child(1) {
  top: 0px;
}

.hamburger span:nth-child(2),
.hamburger span:nth-child(3) {
  top: 10px;
}

.hamburger span:nth-child(4) {
  top: 20px;
}

#menu-toggle {
  display: none;
}

/* Hero section */
.hero {
  background-image: url("./img/DAbJ0.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  color: #ffffff;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(28, 28, 46, 0.7);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  margin: 4rem auto;
}

.hero h1 {
  margin-bottom: 20px;
  color: #ffffff;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

/* Sobre nosotros */
.about {
  background-color: #ffffff;
}

.about-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.about-text {
  flex: 1;
}

.about-image {
  flex: 1;
  max-width: 500px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Ventajas */
.features {
  background-color: #f5f7fa;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.feature-card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
}

.feature-card h3 {
  margin-bottom: 15px;
  color: #1c1c2e;
}

/* Servicios */
.services {
  background-color: #ffffff;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.service-card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-image {
  height: 200px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.1);
}

.service-content {
  background-color: #ffffff;
  padding: 25px;
}

.service-content h3 {
  margin-bottom: 15px;
}

/* Estadísticas */
.stats {
  background-color: #1c1c2e;
  color: #ffffff;
}

.stats h2 {
  color: #ffffff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  text-align: center;
}

.stat-item h3 {
  font-size: 2.5rem;
  color: #ff8f00;
  margin-bottom: 10px;
}

.stat-item p {
  font-size: 1.1rem;
  color: #ffffff;
}

/* Testimonios */
.testimonials {
  background-color: #f5f7fa;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.testimonial-content {
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  font-weight: 700;
  color: #1c1c2e;
}

.testimonial-position {
  color: #6c757d;
  font-size: 0.9rem;
}

/* FAQ */
.faq {
  background-color: #ffffff;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 15px;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  overflow: hidden;
}

.faq-question {
  display: block;
  position: relative;
  background-color: #f5f7fa;
  padding: 15px 20px;
  font-weight: 600;
  cursor: pointer;
}

.faq-answer {
  background-color: #ffffff;
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-toggle {
  display: none;
}

.faq-toggle:checked + .faq-question + .faq-answer {
  max-height: 500px;
  padding: 20px;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.faq-toggle:checked + .faq-question::after {
  content: "-";
}

/* Formulario */
.contact {
  background-color: #f5f7fa;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background-color: #ffffff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ced4da;
  border-radius: 5px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  border-color: #ff8f00;
  outline: none;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%231C1C2E' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 35px;
}

.form-check {
  margin-bottom: 15px;
}

.form-check label {
  display: flex;
  align-items: center;
  font-weight: normal;
  cursor: pointer;
}

.form-check input {
  margin-right: 10px;
}

/* Footer */
footer {
  background-color: #1c1c2e;
  color: #ffffff;
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-info h3 {
  color: #ffffff;
  margin-bottom: 20px;
}

.footer-info p {
  margin-bottom: 15px;
}

.footer-links h3 {
  color: #ffffff;
  margin-bottom: 20px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #ffffff;
}

.footer-links a:hover {
  color: #ff8f00;
}

.footer-contact h3 {
  color: #ffffff;
  margin-bottom: 20px;
}

.contact-info {
  margin-bottom: 10px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  text-align: center;
}

/* Cookie popup */
.cookie-popup {
  position: fixed;
  left: 20px;
  bottom: 20px;
  max-width: 400px;
  background-color: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  display: none;
}

.cookie-popup p {
  margin-bottom: 15px;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
}

.btn-cookie {
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  text-align: center;
}

.btn-accept {
  background: linear-gradient(45deg, #ff8f00, #ff5722);
  color: #ffffff;
  border: none;
}

.btn-more {
  background-color: #f5f7fa;
  color: #1c1c2e;
  border: 1px solid #ced4da;
}

/* Página de Gracias */
.thanks-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.thanks-content {
  max-width: 600px;
  padding: 40px;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  text-align: center;
  margin: 5rem auto;
}

/* Páginas de política */
.policy-page {
  padding: 50px 0;
}

.policy-content {
  max-width: 800px;
  margin: 0 auto;
  background-color: #ffffff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.policy-content h1 {
  margin-bottom: 30px;
}

.policy-content h2 {
  font-size: 1.8rem;
  margin: 30px 0 15px;
  text-align: left;
}

.policy-content p {
  margin-bottom: 15px;
}

.policy-content ul {
  margin-bottom: 15px;
  padding-left: 20px;
}

.policy-content li {
  margin-bottom: 8px;
}

/* Media queries */
@media (max-width: 992px) {
  h1 {
    font-size: 2.3rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .about-content {
    flex-direction: column;
  }

  .about-image {
    max-width: 100%;
    margin-top: 30px;
    order: -1;
  }
}

@media (max-width: 768px) {
  .section-padding {
    padding: 50px 0;
  }

  .hamburger {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    flex-direction: column;
    background-color: #ffffff;
    border-top: 1px solid #e9ecef;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  }

  .nav-links li {
    margin: 0;
    border-bottom: 1px solid #e9ecef;
  }

  .nav-links a {
    padding: 15px 20px;
    display: block;
  }

  #menu-toggle:checked ~ .nav-links {
    display: flex;
  }

  #menu-toggle:checked + .hamburger span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
  }

  #menu-toggle:checked + .hamburger span:nth-child(2) {
    opacity: 0;
  }

  #menu-toggle:checked + .hamburger span:nth-child(3) {
    transform: rotate(-45deg);
  }

  #menu-toggle:checked + .hamburger span:nth-child(4) {
    transform: translateY(-10px) rotate(-45deg);
    opacity: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .contact-form {
    padding: 30px 20px;
  }

  .cookie-popup {
    left: 10px;
    right: 10px;
    max-width: none;
  }
}
