/* Estilos generales para "domain" - Servicios de contabilidad */
:root {
  /* Paleta de colores */
  --color-background-primary: #F6F1F1;
  --color-background-secondary: #E3DFFD;
  --color-accent-1: #B799FF;
  --color-accent-2: #A3FFD6;
  --color-button: #7743DB;
  --color-text: #2D2D2D;
  --color-section-1: #D0F5BE;
  --color-section-2: #B4E4FF;
  --color-section-3: #FFDDCC;
  --border-radius: 20px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Arial', sans-serif;
}

html {
  scroll-padding-top: 100px; /* Espacio para los anclajes por encima del contenido */
}

body {
  background: linear-gradient(to bottom, var(--color-background-primary), var(--color-background-secondary));
  color: var(--color-text);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

section {
  padding: 60px 0;
}

/* Botones */
.btn {
  display: inline-block;
  background-color: var(--color-button);
  color: white;
  padding: 12px 24px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(119, 67, 219, 0.3);
}

/* Tarjetas */
.card {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Encabezados */
h1, h2, h3, h4, h5, h6 {
  margin-bottom: 20px;
  font-weight: 700;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.5rem;
  position: relative;
  padding-bottom: 15px;
  text-align: center; /* Centrar los títulos */
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%; /* Centrar el subrayado */
  transform: translateX(-50%); /* Ajustar para centrar perfectamente */
  width: 80px;
  height: 4px;
  background: var(--color-accent-1);
  border-radius: 2px;
}

/* Encabezado (Header) */
header {
  padding: 20px 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--color-button);
  text-decoration: none;
  letter-spacing: -0.5px;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 30px;
}

nav ul li a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: var(--color-button);
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-button);
  transition: width 0.3s ease;
}

nav ul li a:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--color-button);
  cursor: pointer;
}

/* Sección Banner */
.banner {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center; /* Centrar contenido horizontalmente */
  background-size: cover;
  background-position: center;
  margin-top: 80px;
  position: relative;
  overflow: hidden;
  text-align: center; /* Centrar texto */
}

.banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.banner-content {
  position: relative;
  z-index: 2;
  color: white;
  max-width: 800px; /* Aumentar el ancho máximo */
  padding: 0 20px;
  margin: 0 auto; /* Centrar contenido */
}

.banner h1 {
  margin-bottom: 20px;
}

.banner p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

/* Sección Sobre Nosotros */
.about {
  background-color: var(--color-section-1);
  border-radius: var(--border-radius);
  margin: 40px 0;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
}

/* Sección Ventajas */
.benefits {
  background-color: var(--color-section-2);
  border-radius: var(--border-radius);
  margin: 40px 0;
}

.benefits-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.benefit-card {
  text-align: center;
}

.benefit-card i {
  font-size: 3rem;
  color: var(--color-button);
  margin-bottom: 20px;
  display: inline-block;
}

/* Sección Servicios */
.services {
  background-color: var(--color-section-3);
  border-radius: var(--border-radius);
  margin: 40px 0;
}

.services-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.service-card img {
  width: 180px; /* Imagen más grande */
  height: 180px; /* Imagen más grande */
  object-fit: cover;
  border-radius: var(--border-radius);
  margin-bottom: 20px;
}

/* Formulario */
.contact-form {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin: 40px auto;
  position: relative;
  overflow: hidden;
  max-width: 700px;
  width: 100%;
}

.contact-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 10px;
  background: linear-gradient(to right, var(--color-accent-1), var(--color-accent-2));
}

.form-group {
  margin-bottom: 20px;
}

.form-control {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
}

.checkbox-group {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.checkbox-group input {
  margin-right: 10px;
}

/* Testimonios */
.testimonials {
  background-color: var(--color-section-1);
  border-radius: var(--border-radius);
  margin: 40px 0;
}

.testimonials-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.testimonial-card {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 30px;
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 10px;
  left: 20px;
  font-size: 4rem;
  color: var(--color-accent-1);
  opacity: 0.2;
}

.client-name {
  font-weight: bold;
  margin-top: 15px;
  display: block;
}

/* FAQ */
.faq {
  background-color: var(--color-section-2);
  border-radius: var(--border-radius);
  margin: 40px 0;
}

.faq-content {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
}

.faq-question {
  padding: 20px;
  background-color: white;
  cursor: pointer;
  position: relative;
  font-weight: bold;
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #f9f9f9;
}

.faq-item.active .faq-question::after {
  content: '-';
}

.faq-item.active .faq-answer {
  padding: 20px;
  max-height: 1000px;
}

/* Footer */
footer {
  background-color: #333;
  color: white;
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 30px;
}

.footer-logo {
  font-size: 1.8rem;
  font-weight: 900;
  color: white;
  text-decoration: none;
  margin-bottom: 20px;
  display: block;
}

.footer-links h4 {
  margin-bottom: 20px;
  color: var(--color-accent-2);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #ddd;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.9rem;
}

/* Páginas legales */
.legal-page {
  margin-top: 100px;
  padding: 40px 0;
}

.legal-container {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  border: 4px solid var(--color-accent-1);
}

.legal-container h1 {
  text-align: center;
  margin-bottom: 40px;
}

/* Cookie Popup */
.cookie-popup {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background-color: white;
  border-radius: var(--border-radius);
  padding: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  max-width: 400px;
  display: none;
}

.cookie-popup.active {
  display: block;
  animation: slideIn 0.5s forwards;
}

.cookie-popup p {
  margin-bottom: 15px;
}

.cookie-popup .btn {
  padding: 8px 16px;
}

@keyframes slideIn {
  from {
    transform: translateY(100px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Página de agradecimiento */
.thanks-page {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
}

.thanks-container {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  max-width: 600px;
}

.thanks-container h1 {
  color: var(--color-button);
}

.thanks-container .icon {
  font-size: 5rem;
  color: var(--color-accent-1);
  margin-bottom: 20px;
}

/* Media queries para responsividad */
@media (max-width: 992px) {
  .about-content, 
  .benefits-content,
  .services-content,
  .testimonials-content {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  nav ul {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: white;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    transition: left 0.3s ease;
    padding-top: 40px;
  }
  
  nav ul.active {
    left: 0;
  }
  
  nav ul li {
    margin: 15px 0;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .about-content, 
  .benefits-content,
  .services-content,
  .testimonials-content {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .banner {
    height: 80vh;
  }
  
  .contact-form {
    padding: 20px;
  }
} 