:root {
  --primary: #5741be;
  --primary-light: #49369f;
  --secondary: #FF1972;
  --bg-light: #f4f4f4f4;
  --text-dark: #222;
  --text-light: #666;
  --gradient: linear-gradient(90deg, var(--primary), var(--primary-light));
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
}

html {
  scroll-behavior: smooth;
}

header {
  background: #fff;
  padding: 1rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

header h1 {
  color: var(--primary);
  font-weight: 700;
}

nav a {
  margin: 0 1rem;
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
}

.btn {
  background: var(--gradient);
  color: #fff;
  padding: 0.7rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: opacity 0.3s;
}

.btn:hover {
  opacity: 0.9;
}

/* Hero */
.hero {
  background: url('hero.jpg') center/cover no-repeat;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5%;
  color: #fff;
  text-align: center;
}

.hero h2 {
  font-size: 3rem;
  max-width: 700px;
  margin: auto;
}

.hero p {
  margin: 1rem 0;
}

/* Sections */
section {
  padding: 4rem 5%;
}

section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--primary);
}

/* Profiles */
.profiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.card {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.card img {
  width: 100%;
  display: block;
}

.card-content {
  padding: 1rem;
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

/* Explore Cities */
.cities {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.city {
  background: #ddd;
  height: 150px;
  border-radius: 15px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
  color: #fff;
  font-weight: bold;
  font-size: 1.2rem;
  background-size: cover;
  background-position: center;
}

/* How It Works */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  text-align: center;
}

.step {
  background: #fff;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Pricing */
.pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.price-card {
  background: #fff;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.price-card h3 {
  font-size: 2rem;
  color: var(--secondary);
}

/* Testimonials */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.testimonial {
  background: #fff;
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.testimonial p {
  font-style: italic;
  margin-bottom: 1rem;
}

.testimonial h4 {
  color: var(--secondary);
}

/* Blog */
.blog {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.blog-post {
  background: #fff;
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col.links {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

.footer-col.links div {
  min-width: 120px;
}

.footer-col.links h4 {
  margin-bottom: 1rem;
  color: var(--primary);
}

#footer {
  background: #fff;
  color: var(--text-dark);
  padding: 3rem 5% 1rem;
}

.newsletter-container {
  text-align: center;
  margin-bottom: 3rem;
}

.newsletter-container h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.newsletter-form {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.newsletter-form input {
  padding: 0.8rem 1rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  width: 300px;
  font-size: 1rem;
}

.newsletter-form button {
  border: none;
  cursor: pointer;
}

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

.footer-col h4 {
  margin-bottom: 1rem;
  color: var(--primary);
}

.footer-col a {
  display: block;
  color: var(--text-light);
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: color 0.3s;
}

.footer-col a:hover {
  color: var(--secondary);
}

.brand h3 {
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.brand p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid #eee;
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--text-light);
}

.payments img {
  height: 28px;
  margin-left: 10px;
}


/* Responsive */
@media (max-width: 768px) {
  .hero h2 {
    font-size: 2rem;
  }

  nav {
    display: none;
  }

  .newsletter {
    grid-column: span 1;
  }
}

.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.carousel {
  height: 100%;
  width: 100%;
  position: relative;
}

.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  /* texto a la izquierda */
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.overlay {
  max-width: 600px;
  margin-left: 8%;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 12px;
  color: #fff;
}

.overlay h2 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.overlay p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.overlay .btn {
  font-size: 1rem;
  padding: 0.8rem 2rem;
  border-radius: 50px;
}

/* Responsive */
@media (max-width: 768px) {
  .slide {
    justify-content: center;
    text-align: center;
  }

  .overlay {
    margin: 0;
    max-width: 90%;
  }

  .overlay h2 {
    font-size: 2rem;
  }

  .overlay p {
    font-size: 1rem;
  }
}

.profiles .card {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  cursor: pointer;
}

.profiles .card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  transition: transform 0.4s ease;
}

/* Overlay */
.profiles .card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: 15px;
}

/* Hover: oscurece + zoom */
.profiles .card:hover img {
  transform: scale(1.1);
}

.profiles .card:hover::after {
  opacity: 1;
}

.logo {
  height: 40px;
  /* ajusta según el tamaño de tu header */
  width: auto;
  display: block;
}

/* Intro con imagen y texto */
#intro-features {
  background: #ffffff;
  /* mismo fondo suave */
  padding: 4rem 5%;
}

.intro-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
  align-items: center;
}

.intro-text h2 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.intro-text p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.intro-text ul {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.intro-text ul li {
  margin-bottom: 0.7rem;
  font-size: 1rem;
  color: #333;
}

.intro-text ul li::before {
  content: "✔️ ";
  color: var(--secondary);
}

.intro-image img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease;
}

.intro-image img:hover {
  transform: scale(1.05);
}

/* Features se mantiene con tu animación */
#features {
  padding: 4rem 5%;
  background: #fff;
}

#features h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--primary);
}

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

.feature-card {
  background: #fff;
  border-radius: 20px;
  padding: 2rem 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* ✅ Corrige el icono: quita el fondo circular rojo */
.feature-card .icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-card .icon img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.feature-card h3 {
  margin: 1rem 0 0.5rem;
  font-size: 1.3rem;
  color: #222;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-light);
}

.pricing-section {
  text-align: center;
  padding: 4rem 5%;
  background: #fafafa;
}

.pricing-section h2 {
  font-size: 2.5rem;
  color: #5741be;
  margin-bottom: 0.5rem;
}

.pricing-section .subtitle {
  color: #666;
  margin-bottom: 3rem;
}

.pricing-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  justify-content: center;
}

.pricing-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  padding: 2rem;
  text-align: left;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.pricing-card.featured {
  border: 2px solid #5741be;
}

.card-header {
  margin-bottom: 1.5rem;
}

.card-header h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #222;
}

.price {
  font-size: 2rem;
  font-weight: bold;
  color: #FF1972;
}

.price span {
  font-size: 1rem;
  color: #666;
}

.badge {
  position: absolute;
  top: -12px;
  right: 16px;
  background: #FF1972;
  color: #fff;
  font-size: 0.8rem;
  padding: 0.3rem 0.7rem;
  border-radius: 12px;
}

.features {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.features li {
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
  color: #444;
}

.btn-outline,
.btn-primary {
  width: 100%;
  padding: 0.8rem;
  font-weight: bold;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: 0.3s ease;
}

.btn-outline {
  background: #f4f4f4;
  color: #333;
}

.btn-outline:hover {
  background: #ddd;
}

.btn-primary {
  background: linear-gradient(90deg, #5741be, #FF1972);
  color: #fff;
}

.btn-primary:hover {
  opacity: 0.9;
}

/* Separación clara entre secciones */
.section-white {
  background-color: #ffffff;
  padding: 100px 0;
  /* más espacio arriba y abajo */
}

.section-grey {
  background-color: #FAFAFA;
  /* gris más notorio */
  padding: 100px 0;
}

/* Asegurar que cada sección empiece separada */
.section-white+.section-grey {
  margin-top: 60px;
}

.section-grey+.section-white {
  margin-top: 60px;
}

/* Contact Section */
.contact-section {
  padding: 80px 20px;
  text-align: center;
}

.contact-section h2 {
  font-size: 32px;
  margin-bottom: 50px;
  color: var(--primary, #5741be);
}

.contact-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
}

/* Cards de contacto */
.contact-info {
  flex: 1;
}

.contact-info h3 {
  font-size: 22px;
  margin-bottom: 10px;
  color: var(--primary, #5741be);
}

.contact-info p {
  margin-bottom: 25px;
  color: #555;
}

.contact-card {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  padding: 15px 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
}

.contact-card i {
  font-size: 28px;
  color: var(--secondary, #FF1972);
  margin-right: 15px;
}

.contact-card strong {
  display: block;
  font-weight: 600;
  color: #222;
}

.contact-card p {
  margin: 0;
  font-size: 14px;
  color: #666;
}

/* Formulario */
.contact-form {
  flex: 1;
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.contact-form h3 {
  font-size: 22px;
  margin-bottom: 20px;
  color: var(--primary, #5741be);
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  transition: border 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary, #5741be);
  outline: none;
}

.contact-form button {
  background: linear-gradient(90deg, var(--primary, #5741be), var(--secondary, #FF1972));
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background: linear-gradient(90deg, var(--secondary, #FF1972), var(--primary, #5741be));
}

/* Responsive */
@media (max-width: 768px) {
  .contact-container {
    flex-direction: column;
  }
}