/* Estilos para domain - Servicios de Contabilidad */

/* Variables CSS */
:root {
  --color-background: #F2F0E9;  /* Fondo principal */
  --color-accent-1: #FF6F59;    /* Coral-naranja */
  --color-accent-2: #33658A;    /* Azul profundo */
  --color-accent-3: #758E4F;    /* Oliva */
  --color-accent-4: #EDF67D;    /* Limón */
  --color-text: #2F2F2F;        /* Texto principal */
  --font-main: 'Poppins', sans-serif;
  --font-secondary: 'Montserrat', sans-serif;
  --transition: all 0.3s ease;
}

/* Reset y Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-background);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: var(--color-accent-2);
  transition: var(--transition);
}

a:hover {
  color: var(--color-accent-1);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
  margin-bottom: 1rem;
  line-height: 1.2;
}

h1 {
  font-size: 3.5rem;
}

h2 {
  font-size: 2.5rem;
  position: relative;
  margin-bottom: 2.5rem;
}

h2::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 4px;
  background-color: var(--color-accent-1);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

img {
  max-width: 100%;
  height: auto;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 100px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

/* Header y Navegación */
header {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-accent-2);
}

.logo span {
  color: var(--color-accent-1);
}

.nav-menu {
  display: flex;
  list-style: none;
}

.nav-item {
  margin-left: 30px;
}

.nav-link {
  font-weight: 500;
}

.mobile-toggle {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-accent-2);
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  background-color: var(--color-background);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(51, 101, 138, 0.1);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-title {
  font-size: 4rem;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0;
  animation: fadeInUp 1s ease 0.3s forwards;
}

/* Botones */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn-primary {
  background-color: var(--color-accent-1);
  color: white;
}

.btn-primary:hover {
  background-color: var(--color-accent-2);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
  background-color: var(--color-accent-2);
  color: white;
}

.btn-secondary:hover {
  background-color: var(--color-accent-1);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Sobre Nosotros */
.about {
  background-color: white;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.about-text {
  flex: 1;
}

.about-image {
  flex: 1;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
  transform: translateY(20px);
  transition: var(--transition);
}

.about-image:hover {
  transform: translateY(0);
}

/* Servicios */
.services {
  background-color: var(--color-background);
}

.services-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.service-card {
  flex: 1;
  min-width: 300px;
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
}

.service-img {
  height: 200px;
  overflow: hidden;
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.service-card:hover .service-img img {
  transform: scale(1.05);
}

.service-content {
  padding: 30px;
}

/* Ventajas */
.advantages {
  background-color: white;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
}

.advantage-item {
  text-align: center;
  padding: 30px 20px;
  border: 2px solid var(--color-accent-3);
  border-radius: 15px;
  background-color: #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.advantage-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  border-color: var(--color-accent-1);
}

.advantage-icon {
  width: 80px;
  height: 80px;
  background-color: var(--color-accent-4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  color: var(--color-accent-2);
  font-size: 2.2rem;
  position: relative;
  z-index: 1;
  transition: var(--transition);
  border: 3px solid var(--color-accent-3);
}

.advantage-item:hover .advantage-icon {
  background-color: var(--color-accent-1);
  color: white;
  border-color: var(--color-accent-4);
}

.advantage-item h3 {
  margin-bottom: 15px;
  color: var(--color-accent-2);
}

/* Testimonios */
.testimonials {
  background-color: var(--color-background);
}

.testimonial-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.testimonial-card {
  flex: 1;
  min-width: 300px;
  background-color: white;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  position: relative;
}

.testimonial-card:before {
  content: '"';
  font-size: 5rem;
  color: var(--color-accent-1);
  opacity: 0.2;
  position: absolute;
  top: 10px;
  left: 20px;
  font-family: serif;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial-author {
  font-weight: 600;
}

/* Formulario */
.contact-form {
  background-color: white;
}

.form-container {
  max-width: 700px;
  margin: 0 auto;
  background-color: white;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  font-family: var(--font-main);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-accent-2);
}

.form-check {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.form-check-input {
  margin-right: 10px;
  margin-top: 6px;
}

/* FAQ */
.faq {
  background-color: var(--color-background);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background-color: white;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.faq-question {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 500;
  background-color: white;
  border: none;
  width: 100%;
  text-align: left;
  position: relative;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--color-accent-1);
}

.faq-question.active::after {
  content: '-';
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 20px;
}

.faq-answer.active {
  max-height: 300px;
  padding: 0 20px 20px;
}

/* Contacto */
.contact {
  background-color: white;
}

.contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
}

.contact-card {
  flex: 1;
  min-width: 250px;
  text-align: center;
  padding: 30px 20px;
}

.contact-icon {
  font-size: 2rem;
  color: var(--color-accent-1);
  margin-bottom: 15px;
}

/* Footer */
footer {
  background-color: var(--color-accent-2);
  color: white;
  padding: 60px 0 20px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-column {
  flex: 1;
  min-width: 250px;
}

.footer-title {
  color: white;
  margin-bottom: 20px;
  position: relative;
}

.footer-title::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 3px;
  background-color: var(--color-accent-1);
  bottom: -10px;
  left: 0;
}

.footer-links {
  list-style: none;
}

.footer-link {
  margin-bottom: 10px;
}

.footer-link a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.footer-link a:hover {
  color: var(--color-accent-4);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Cookie Popup */
.cookie-popup {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background-color: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  display: none;
}

.cookie-popup.show {
  display: block;
  animation: fadeInUp 0.5s ease forwards;
}

.cookie-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-text {
  flex: 3;
  min-width: 200px;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
}

/* Páginas de Política */
.policy-page {
  padding: 150px 0 100px;
}

.policy-container {
  max-width: 900px;
  margin: 0 auto;
  background-color: white;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.policy-header {
  text-align: center;
  margin-bottom: 40px;
}

.policy-section {
  margin-bottom: 30px;
}

.policy-title {
  color: var(--color-accent-2);
  margin-bottom: 15px;
}

/* Página de Gracias */
.thank-you {
  min-height: 100vh;
  padding-top: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--color-background);
}

.thank-you-content {
  max-width: 600px;
  margin: 0 auto;
  padding: 50px 40px;
  border: 3px solid var(--color-accent-1);
  border-radius: 20px;
  background-color: white;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
  position: relative;
}

.thank-you-icon {
  font-size: 5rem;
  color: var(--color-accent-3);
  margin-bottom: 30px;
  animation: pulse 2s infinite;
}

.thank-you-content h1 {
  color: var(--color-accent-2);
  margin-bottom: 25px;
  font-size: 2.5rem;
}

.thank-you-content p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  line-height: 1.6;
}

.thank-you-content .btn {
  margin-top: 20px;
}

/* Animaciones */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(0.95);
  }
}

/* Efectos Fade-in al scroll */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

/* Media Queries */
@media (max-width: 992px) {
  h1 {
    font-size: 2.8rem;
  }
  
  h2 {
    font-size: 2.2rem;
  }
  
  .section {
    padding: 80px 0;
  }
  
  .about-content {
    flex-direction: column;
  }

  .hero {
    height: auto;
    min-height: 100vh;
    padding: 120px 0 60px;
  }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background-color: white;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 100px 30px 30px;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-item {
    margin-left: 0;
    margin-bottom: 20px;
    width: 100%;
  }
  
  .nav-link {
    font-size: 1.2rem;
  }
  
  .close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--color-accent-2);
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  .service-card,
  .testimonial-card {
    min-width: 100%;
  }

  .hero {
    padding: 100px 0 50px;
  }

  .hero-title {
    font-size: 2.8rem;
    padding: 0 10px;
  }

  .hero-subtitle {
    padding: 0 15px;
  }
}

@media (max-width: 576px) {
  .section {
    padding: 60px 0;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }

  .hero {
    padding: 90px 0 40px;
  }

  .hero-title {
    font-size: 2.2rem;
    padding: 0 5px;
    margin-top: 20px;
  }
  
  .contact-card {
    min-width: 100%;
  }
  
  .footer-column {
    min-width: 100%;
  }

  .thank-you-content {
    padding: 30px 20px;
    margin: 0 15px;
  }

  .thank-you-content h1 {
    font-size: 2rem;
  }
} 