/* 
* AuditFin España - Estilos principales
* Color palette:
* - Fondo principal: gradiente #F4E2D8 → #BA5370
* - Acentos: #D0FF00 (lime eléctrico), #007960 (esmeralda)
* - Texto principal: #1A1A1A (grafito oscuro)
*/

/* ===== Normalize & Reset ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 62.5%; /* 10px por defecto para facilitar los cálculos rem */
  scroll-behavior: smooth;
  scroll-padding-top: 100px; /* Añadido para evitar que los encabezados queden bajo la barra de navegación */
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.6rem;
  line-height: 1.6;
  color: #1A1A1A;
  background: linear-gradient(135deg, #F4E2D8 0%, #BA5370 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: #007960;
  transition: all 0.3s ease;
}

a:hover {
  color: #D0FF00;
}

/* ===== Layout ===== */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 8rem 0;
  position: relative;
  overflow: hidden;
}

section::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.05;
}

section:nth-child(odd) {
  background-color: rgba(255, 255, 255, 0.9);
  clip-path: polygon(0 0, 100% 4%, 100% 96%, 0% 100%);
  margin: 0 0 -4rem 0;
  padding: 8rem 0 12rem;
}

section:nth-child(even) {
  background-color: rgba(244, 226, 216, 0.3);
  clip-path: polygon(0 4%, 100% 0, 100% 100%, 0 96%);
  margin: -4rem 0;
  padding: 12rem 0 8rem;
}

/* ===== Tipografía ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 2rem;
  color: #1A1A1A;
}

h1 {
  font-size: 4.2rem;
}

h2 {
  font-size: 3.6rem;
  position: relative;
  display: inline-block;
  margin-bottom: 4rem;
  padding-top: 20px; /* Espacio adicional en la parte superior */
}

h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1rem;
  width: 80%;
  height: 0.4rem;
  background-color: #D0FF00;
  border-radius: 0.2rem;
}

h3 {
  font-size: 2.4rem;
}

p {
  margin-bottom: 1.5rem;
}

/* ===== Text alignment ===== */
.text-center {
  text-align: center;
}

.text-center h2::after {
  left: 50%;
  transform: translateX(-50%);
}

/* ===== Botones ===== */
.btn {
  display: inline-block;
  padding: 1.2rem 2.4rem;
  background-color: #F4E2D8;
  color: #1A1A1A;
  border: none;
  border-radius: 0.4rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background-color: #D0FF00;
  transition: all 0.3s ease;
  z-index: -1;
}

.btn:hover {
  color: #1A1A1A;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn:hover::before {
  width: 100%;
}

.btn-primary {
  background-color: #007960;
  color: white;
}

.btn-primary:hover {
  color: #1A1A1A;
}

.btn-outline {
  background-color: transparent;
  border: 2px solid #007960;
  color: #007960;
}

.btn-outline:hover {
  border-color: #D0FF00;
}

/* ===== Header ===== */
.site-header {
  padding: 2rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 226, 216, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  display: block;
}

.main-nav .nav-list {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.main-nav a {
  color: #1A1A1A;
  font-weight: 600;
  font-size: 1.6rem;
  padding: 0.5rem 1rem;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.main-nav a:hover, 
.main-nav .active a {
  color: #007960;
  border-bottom-color: #D0FF00;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 3rem;
  height: 2.4rem;
  position: relative;
}

.menu-toggle span {
  display: block;
  position: absolute;
  height: 0.3rem;
  width: 100%;
  background: #1A1A1A;
  border-radius: 0.3rem;
  transition: all 0.3s ease;
}

.menu-toggle span:first-child {
  top: 0;
}

.menu-toggle span:nth-child(2) {
  top: 1rem;
}

.menu-toggle span:last-child {
  bottom: 0;
}

/* ===== Hero Section ===== */
.hero {
  padding: 10rem 0 6rem;
  background-color: rgba(255, 255, 255, 0.9);
}

.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
}

.hero-content {
  flex: 1;
  text-align: center;
}

.hero h1 {
  font-size: 5.6rem;
  margin-bottom: 2rem;
  position: relative;
}

.hero h1::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -1rem;
  width: 12rem;
  height: 0.5rem;
  background-color: #D0FF00;
}

.hero .tagline {
  font-size: 2.2rem;
  margin-bottom: 3rem;
  color: #333;
}

.hero-image {
  flex: 1;
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.hero-image img {
  border-radius: 1rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  transform: perspective(1000px) rotateY(-5deg);
}

/* ===== About Section ===== */
.about-content {
  display: flex;
  align-items: center;
  gap: 5rem;
  margin-top: 4rem;
}

.about-text {
  flex: 1;
  text-align: left;
}

.about-image {
  flex: 1;
  max-width: 400px;
  margin: 0 auto;
}

.about-image img {
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border: 5px solid #fff;
}

/* ===== Services Section ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin-top: 4rem;
}

.service-card {
  background-color: white;
  border-radius: 1rem;
  padding: 3rem;
  text-align: left;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0.5rem;
  background-color: #D0FF00;
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  margin-bottom: 2rem;
}

.service-card h3 {
  margin-bottom: 1.5rem;
}

.service-card ul {
  margin-top: 1.5rem;
  padding-left: 2rem;
}

.service-card ul li {
  list-style-type: disc;
  margin-bottom: 0.5rem;
  color: #333;
}

/* ===== Pricing Section ===== */
.pricing-table {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
  margin: 4rem 0 2rem;
}

.price-column {
  flex: 1;
  min-width: 250px;
  background-color: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.price-column:hover {
  transform: translateY(-10px);
}

.price-column.featured {
  transform: scale(1.05);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  z-index: 1;
}

.price-column.featured:hover {
  transform: scale(1.05) translateY(-10px);
}

.price-header {
  padding: 3rem;
  background: #007960;
  color: white;
}

.price-header h3 {
  color: white;
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.price {
  font-size: 3.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.price-period {
  font-size: 1.4rem;
  opacity: 0.7;
}

.price-features {
  padding: 3rem;
}

.price-features ul li {
  padding: 0.8rem 0;
  border-bottom: 1px solid #eee;
}

.price-column .btn {
  margin: 0 3rem 3rem;
}

.price-note {
  font-size: 1.4rem;
  color: #666;
  margin-top: 2rem;
}

/* ===== Benefits Section ===== */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 4rem;
  margin-top: 4rem;
}

.benefit-card {
  text-align: center;
  padding: 3rem;
  background-color: white;
  border-radius: 1rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.benefit-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(208, 255, 0, 0.1) 0%, rgba(0, 121, 96, 0.1) 100%);
  z-index: -1;
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.5s ease;
}

.benefit-card:hover::before {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.benefit-card:hover {
  transform: translateY(-5px);
}

.benefit-icon {
  width: 8rem;
  height: 8rem;
  margin: 0 auto 2rem;
  background-color: rgba(208, 255, 0, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== Testimonials Section ===== */
.testimonials-slider {
  margin-top: 4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  justify-content: center;
}

.testimonial {
  flex: 1;
  min-width: 280px;
  max-width: 400px;
  background-color: white;
  border-radius: 1rem;
  padding: 3rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  text-align: left;
}

.testimonial-content {
  position: relative;
  margin-bottom: 2rem;
  padding: 0 2rem;
}

.testimonial-content::before {
  content: '"';
  position: absolute;
  top: -2rem;
  left: -1rem;
  font-size: 6rem;
  color: rgba(186, 83, 112, 0.2);
  font-family: Georgia, serif;
}

.testimonial-content p {
  font-style: italic;
}

.testimonial-author {
  border-top: 1px solid #eee;
  padding-top: 2rem;
}

/* ===== Contact Form Section ===== */
.contact-form .container {
  text-align: center;
}

.form-container {
  display: flex;
  flex-wrap: wrap;
  gap: 4rem;
  margin-top: 4rem;
  align-items: center;
}

.form-image {
  flex: 1;
  min-width: 300px;
}

.form-image img {
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.contact-form-content {
  flex: 1;
  min-width: 300px;
  background-color: white;
  padding: 4rem;
  border-radius: 1rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  text-align: left;
  border: 2px solid transparent;
  background-image: linear-gradient(white, white), 
                    linear-gradient(135deg, #D0FF00, #007960);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

.form-group {
  margin-bottom: 2rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.8rem;
  font-weight: 600;
  color: #333;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 1.2rem;
  border: 1px solid #ddd;
  border-radius: 0.4rem;
  font-size: 1.6rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
  border-color: #007960;
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 121, 96, 0.2);
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.checkbox-group label {
  margin-bottom: 0;
}

.checkbox-group input[type="checkbox"] {
  width: 2rem;
  height: 2rem;
  cursor: pointer;
}

/* ===== Location Section ===== */
.location .container {
  text-align: center;
}

.location-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4rem;
  margin-top: 4rem;
}

.contact-info {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  background-color: white;
  padding: 4rem;
  border-radius: 1rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.contact-icon {
  flex-shrink: 0;
  width: 2.4rem;
  height: 2.4rem;
}

.contact-hours {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
  text-align: center;
}

.contact-hours h4 {
  margin-bottom: 1rem;
}

.contact-image {
  margin-top: 3rem;
  width: 100%;
  max-width: 600px;
}

.contact-image img {
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  width: 100%;
  height: auto;
  margin: 0 auto;
}

/* ===== Footer ===== */
.site-footer {
  background-color: #1A1A1A;
  color: #F4E2D8;
  padding: 6rem 0 0;
  position: relative;
  margin-top: 4rem;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: -3rem;
  left: 0;
  width: 100%;
  height: 3rem;
  background-color: #1A1A1A;
  clip-path: polygon(0 100%, 50% 0, 100% 100%);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-about {
  flex: 2;
  min-width: 300px;
}

.footer-logo {
  margin-bottom: 2rem;
}

.footer-links {
  flex: 3;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.footer-links-column {
  flex: 1;
  min-width: 180px;
  padding: 0 1rem;
}

.footer-links-column h3 {
  color: #D0FF00;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}

.footer-links-column ul li {
  margin-bottom: 1rem;
}

.footer-links-column a {
  color: #F4E2D8;
}

.footer-links-column a:hover {
  color: #D0FF00;
}

.footer-bottom {
  background-color: rgba(0, 0, 0, 0.2);
  text-align: center;
  padding: 2rem 0;
  margin-top: 4rem;
  font-size: 1.4rem;
}

/* ===== Thank You Page ===== */
.thank-you {
  padding: 10rem 0;
}

.thank-you .container {
  display: flex;
  flex-wrap: wrap;
  gap: 4rem;
  align-items: center;
}

.thank-you-content {
  flex: 1;
  min-width: 300px;
}

.thank-you-image {
  flex: 1;
  min-width: 300px;
}

.thank-you-image img {
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.success-message,
.error-message {
  text-align: center;
  margin-bottom: 4rem;
}

.success-message svg,
.error-message svg {
  margin: 0 auto 2rem;
}

.thank-you-actions {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-top: 3rem;
}

/* ===== Cookie Banner ===== */
#cookie-banner {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  right: 2rem;
  background-color: #1A1A1A;
  color: #F4E2D8;
  padding: 1.5rem 2rem;
  border-radius: 0.8rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cookie-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 2rem;
}

.cookie-content p {
  margin: 0;
  flex: 1;
}

.cookie-content a {
  color: #D0FF00;
}

/* ===== Legal Pages ===== */
.legal {
  padding: 12rem 0 8rem;
}

.legal h1 {
  margin-bottom: 1rem;
  text-align: center;
}

.last-update {
  text-align: center;
  color: #666;
  margin-bottom: 4rem;
}

.legal-content {
  background-color: white;
  padding: 4rem;
  border-radius: 1rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.legal-content h2 {
  margin-top: 4rem;
  margin-bottom: 2rem;
  font-size: 2.4rem;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

.legal-content ul, 
.legal-content ol {
  margin-left: 2rem;
  margin-bottom: 2rem;
}

.legal-content ul li, 
.legal-content ol li {
  margin-bottom: 1rem;
  list-style-type: disc;
}

.contact-list {
  margin-top: 2rem;
}

.contact-list li {
  margin-bottom: 0.5rem;
}

/* ===== Responsive Design ===== */
@media (max-width: 992px) {
  html {
    font-size: 58%;
    scroll-padding-top: 80px;
  }
  
  section {
    padding: 6rem 0;
  }
  
  .hero .container {
    flex-direction: column;
    text-align: center;
  }
  
  .about-content {
    flex-direction: column;
  }
  
  .about-text {
    text-align: center;
  }
  
  .pricing-table {
    flex-direction: column;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .price-column.featured {
    transform: scale(1);
  }
  
  .price-column.featured:hover {
    transform: translateY(-10px);
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 1.5rem 0;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .main-nav .nav-list {
    position: fixed;
    top: 8rem;
    left: 0;
    right: 0;
    background: #F4E2D8;
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    clip-path: circle(0% at top right);
    transition: all 0.5s ease-in-out;
    pointer-events: none;
    opacity: 0;
    z-index: 100;
  }
  
  .main-nav .nav-list.active {
    clip-path: circle(150% at top right);
    pointer-events: all;
    opacity: 1;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 3rem;
  }
  
  .footer-links {
    justify-content: flex-start;
    gap: 3rem;
  }
  
  .benefit-card {
    padding: 2rem;
  }
  
  section:nth-child(odd) {
    clip-path: polygon(0 0, 100% 2%, 100% 98%, 0% 100%);
    margin: 0 0 -2rem 0;
    padding: 6rem 0 8rem;
  }
  
  section:nth-child(even) {
    clip-path: polygon(0 2%, 100% 0, 100% 100%, 0 98%);
    margin: -2rem 0;
    padding: 8rem 0 6rem;
  }
  
  .cookie-content {
    flex-direction: column;
  }
}

@media (max-width: 576px) {
  html {
    font-size: 55%;
  }
  
  h1 {
    font-size: 3.6rem;
  }
  
  h2 {
    font-size: 3rem;
  }
  
  .services-grid, 
  .benefits-grid {
    grid-template-columns: 1fr;
  }
  
  .testimonials-slider {
    flex-direction: column;
    align-items: center;
  }
  
  .contact-form-content {
    padding: 3rem 2rem;
  }
  
  #cookie-banner {
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 0;
  }
  
  .site-footer::before {
    clip-path: polygon(0 100%, 100% 100%, 50% 0);
  }
} 