/* Importar fuentes */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&family=Playfair+Display:wght@400;700;900&display=swap');

/* Variables de color y estilos */
:root {
  --color-verde: #009246;
  --color-blanco: #ffffff;
  --color-rojo: #ce2b37;
  --color-oscuro: #222;
  --color-gris: #f5f5f5;
  --color-gris-oscuro: #777;
  --color-texto: #333;
  --fuente-principal: 'Roboto', sans-serif;
  --fuente-decorativa: 'Playfair Display', serif;
  --sombra-suave: 0 5px 15px rgba(0, 0, 0, 0.05);
  --sombra-media: 0 8px 25px rgba(0, 0, 0, 0.1);
  --sombra-fuerte: 0 15px 35px rgba(0, 0, 0, 0.15);
  --transicion: all 0.3s ease;
  --borde-radio: 8px;
  --gradiente-italia: linear-gradient(90deg, var(--color-verde) 0%, var(--color-verde) 33%, var(--color-blanco) 33%, var(--color-blanco) 66%, var(--color-rojo) 66%, var(--color-rojo) 100%);
  --gradiente-inverso: linear-gradient(270deg, var(--color-verde) 0%, var(--color-verde) 33%, var(--color-blanco) 33%, var(--color-blanco) 66%, var(--color-rojo) 66%, var(--color-rojo) 100%);
}

/* Reseteo y estilos base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 62.5%;
}

body {
  font-family: var(--fuente-principal);
  font-size: 1.6rem;
  line-height: 1.7;
  color: var(--color-texto);
  background-color: var(--color-blanco);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: var(--color-verde);
  transition: var(--transicion);
}

a:hover {
  color: var(--color-rojo);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Utilidades */
.text-center {
  text-align: center;
}

.mb-1 {
  margin-bottom: 1rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

.mb-3 {
  margin-bottom: 3rem;
}

.mb-5 {
  margin-bottom: 5rem;
}

/* Botones */
.btn {
  display: inline-block;
  padding: 1.2rem 3rem;
  border-radius: var(--borde-radio);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transicion);
  border: none;
  font-size: 1.6rem;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: var(--color-verde);
  color: var(--color-blanco);
  box-shadow: 0 4px 8px rgba(0, 146, 70, 0.25);
}

.btn-primary:hover {
  background: #007e3a;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 146, 70, 0.35);
  color: var(--color-blanco);
}

.btn-secondary {
  background: var(--color-rojo);
  color: var(--color-blanco);
  box-shadow: 0 4px 8px rgba(206, 43, 55, 0.25);
}

.btn-secondary:hover {
  background: #b42430;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(206, 43, 55, 0.35);
  color: var(--color-blanco);
}

.btn-outline {
  background: transparent;
  color: var(--color-oscuro);
  border: 2px solid var(--color-oscuro);
}

.btn-outline:hover {
  background: var(--color-oscuro);
  color: var(--color-blanco);
}

/* Header y Navegación */
.header {
  background-color: var(--color-blanco);
  box-shadow: var(--sombra-suave);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 0;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-text {
  font-family: var(--fuente-decorativa);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--color-oscuro);
}

.logo svg {
  width: 40px;
  height: 40px;
}

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  margin: 0;
  padding: 0;
}

.nav-item {
  margin: 0 2rem;
}

.nav-link {
  color: var(--color-oscuro);
  font-weight: 500;
  font-size: 1.6rem;
  transition: var(--transicion);
  position: relative;
}

.nav-link:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  height: 3px;
  width: 0;
  background: var(--gradiente-italia);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--color-rojo);
}

.nav-link:hover:after {
  width: 100%;
}

.nav-cta {
  margin-left: 2rem;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle span {
  height: 3px;
  width: 100%;
  background-color: var(--color-oscuro);
  border-radius: 10px;
  transition: var(--transicion);
}

/* Hero */
.hero {
  background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), var(--gradiente-italia);
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: var(--color-blanco);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath fill='%23ffffff' fill-opacity='0.05' d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z'%3E%3C/path%3E%3C/svg%3E");
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
  margin-top: 6rem;
}

.hero h1 {
  font-family: var(--fuente-decorativa);
  font-size: 5rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 2rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero p {
  font-size: 1.8rem;
  margin-bottom: 3rem;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: 2rem;
  justify-content: center;
}

/* Características */
.features {
  padding: 12rem 0 8rem;
  position: relative;
  background: var(--color-gris);
}

.section-title {
  text-align: center;
  margin-bottom: 6rem;
  position: relative;
}

.section-title h2 {
  font-family: var(--fuente-decorativa);
  font-size: 3.8rem;
  font-weight: 700;
  color: var(--color-oscuro);
  margin-bottom: 1.5rem;
  display: inline-block;
}

.section-title h2:after {
  content: '';
  position: absolute;
  width: 60px;
  height: 4px;
  background: var(--gradiente-italia);
  left: 50%;
  transform: translateX(-50%);
  bottom: -10px;
  border-radius: 2px;
}

.section-title p {
  max-width: 700px;
  margin: 0 auto;
  color: var(--color-gris-oscuro);
  font-size: 1.8rem;
  margin-top: 2rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}

.feature-card {
  background: var(--color-blanco);
  border-radius: var(--borde-radio);
  padding: 4rem 3rem;
  box-shadow: var(--sombra-suave);
  transition: var(--transicion);
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--sombra-media);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
}

.feature-icon {
  margin: 0 auto 2.5rem;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transicion);
}

.feature-card:nth-child(1) .feature-icon {
  color: var(--color-verde);
}

.feature-card:nth-child(2) .feature-icon {
  color: var(--color-rojo);
}

.feature-card:nth-child(3) .feature-icon {
  color: var(--color-oscuro);
}

.feature-title {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.feature-text {
  color: var(--color-gris-oscuro);
  font-size: 1.6rem;
}

/* Cómo funciona */
.how-it-works {
  padding: 10rem 0;
  background: var(--color-blanco);
  position: relative;
}

.how-it-works:before,
.how-it-works:after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 10rem;
  background-color: var(--color-gris);
  z-index: 1;
}

.how-it-works:before {
  top: 0;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 30%);
}

.how-it-works:after {
  bottom: 0;
  clip-path: polygon(0 70%, 100% 0, 100% 100%, 0 100%);
}

.steps-container {
  position: relative;
  z-index: 2;
}

.step {
  display: flex;
  align-items: center;
  margin-bottom: 8rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeIn 1s forwards;
}

.step:last-child {
  margin-bottom: 0;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step:nth-child(1) { animation-delay: 0.3s; }
.step:nth-child(2) { animation-delay: 0.6s; }
.step:nth-child(3) { animation-delay: 0.9s; }

.step-number {
  width: 80px;
  height: 80px;
  min-width: 80px;
  border-radius: 50%;
  background: var(--gradiente-italia);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--color-blanco);
  margin-right: 3rem;
  box-shadow: var(--sombra-media);
}

.step-content h3 {
  font-size: 2.4rem;
  margin-bottom: 1rem;
  color: var(--color-oscuro);
}

.step-content p {
  color: var(--color-gris-oscuro);
}

/* CTA */
.cta {
  padding: 12rem 0;
  background: var(--gradiente-inverso);
  color: var(--color-blanco);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.cta h2 {
  font-family: var(--fuente-decorativa);
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.cta p {
  font-size: 1.8rem;
  margin-bottom: 4rem;
  opacity: 0.9;
}

.cta .btn {
  padding: 1.5rem 4rem;
  font-size: 1.8rem;
  font-weight: 700;
  background: var(--color-blanco);
  color: var(--color-oscuro);
}

.cta .btn:hover {
  background: var(--color-gris);
  transform: scale(1.05);
}

/* FAQ */
.faq {
  padding: 12rem 0;
  background: var(--color-gris);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.accordion {
  margin-top: 5rem;
}

.accordion-item {
  margin-bottom: 1.5rem;
  border-radius: var(--borde-radio);
  overflow: hidden;
  box-shadow: var(--sombra-suave);
}

.accordion-header {
  background: var(--color-blanco);
  padding: 2rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: var(--borde-radio);
  transition: var(--transicion);
}

.accordion-title {
  font-weight: 600;
  font-size: 1.8rem;
  color: var(--color-oscuro);
}

.accordion-icon {
  width: 20px;
  height: 20px;
  position: relative;
}

.accordion-icon:before,
.accordion-icon:after {
  content: '';
  position: absolute;
  background-color: var(--color-oscuro);
  transition: var(--transicion);
}

.accordion-icon:before {
  width: 100%;
  height: 2px;
  top: 50%;
  transform: translateY(-50%);
}

.accordion-icon:after {
  width: 2px;
  height: 100%;
  left: 50%;
  transform: translateX(-50%);
}

.accordion-item.active .accordion-icon:after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}

.accordion-content {
  background: var(--color-blanco);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-text {
  padding: 0 2rem 2rem;
  color: var(--color-gris-oscuro);
}

.accordion-item.active .accordion-content {
  max-height: 500px;
}

/* Footer */
.footer {
  background: var(--color-oscuro);
  color: var(--color-blanco);
  padding: 8rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 5rem;
  margin-bottom: 5rem;
}

.footer-info {
  margin-bottom: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.footer-logo svg {
  width: 40px;
  height: 40px;
}

.footer-logo-text {
  font-family: var(--fuente-decorativa);
  font-size: 2.2rem;
  color: var(--color-blanco);
  font-weight: 700;
}

.footer-desc {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
}

.footer-heading {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  position: relative;
}

.footer-heading:after {
  content: '';
  position: absolute;
  width: 30px;
  height: 3px;
  background: var(--color-verde);
  bottom: -10px;
  left: 0;
}

.footer-links li {
  margin-bottom: 1.2rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transicion);
}

.footer-links a:hover {
  color: var(--color-blanco);
}

.copyright {
  text-align: center;
  padding-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
}

/* Media Queries */
@media screen and (max-width: 991px) {
  html {
    font-size: 58%;
  }

  .hero h1 {
    font-size: 4.2rem;
  }
  
  .section-title h2 {
    font-size: 3.4rem;
  }
}

@media screen and (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background: var(--color-blanco);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: 0.5s;
    box-shadow: var(--sombra-fuerte);
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-list {
    flex-direction: column;
    text-align: center;
  }
  
  .nav-item {
    margin: 1.5rem 0;
  }
  
  .nav-cta {
    margin: 2rem 0 0;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .step {
    flex-direction: column;
    text-align: center;
  }
  
  .step-number {
    margin: 0 auto 2rem;
  }
}

@media screen and (max-width: 576px) {
  html {
    font-size: 55%;
  }
  
  .hero h1 {
    font-size: 3.6rem;
  }
  
  .section-title h2 {
    font-size: 3rem;
  }
  
  .cta h2 {
    font-size: 3.4rem;
  }
}
