/* =========================
   RESET
========================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.5;
}

/* =========================
   CONTENEDOR GENERAL
========================= */
.page {
  padding-top: 20px;
}

/* =========================
   HERO (CORREGIDO)
========================= */
.hero-image {
  position: relative;
  height: 65vh;           /* 🔥 controla el hero */
  overflow: hidden;       /* 🔥 evita desbordes */
}

/* picture ocupa todo */
.hero-picture,
.hero-picture img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
  max-width: 90%;
  z-index: 2;
}

.hero-content h1 {
  font-size: 36px;
  margin-bottom: 15px;
}

.hero-content p {
  font-size: 18px;
  margin-bottom: 20px;
}

/* =========================
   SECCIONES
========================= */
.home-section {
  max-width: 1100px;
  margin: 80px auto;
  padding: 0 20px;
  text-align: center;
}

.home-section h2 {
  font-size: 28px;
  margin-bottom: 40px;
}

/* =========================
   BOTÓN
========================= */
.btn {
  padding: 12px 24px;
  background: #e6007e;
  color: white;
  border-radius: 6px;
  text-decoration: none;
  display: inline-block;
  transition: 0.3s;
}

.btn:hover {
  background: #bfff00;
  color: black;
}

/* =========================
   GRID
========================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: start;
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

/* =========================
   CARDS
========================= */
.profile-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0,0,0,0.08);
  text-align: left;
  transition: 0.3s;
}

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

/* IMÁGENES NATURALES */
.card-img {
  width: 100%;
  height: auto;
  display: block;
}

/* CONTENIDO */
.profile-card h3 {
  margin: 20px 15px 10px;
  font-size: 20px;
}

.profile-card p {
  margin: 0 15px 20px;
  color: #555;
}

/* =========================
   LISTAS
========================= */
.clean-list {
  list-style: none;
  padding: 0;
  text-align: left;
}

.clean-list li {
  margin-bottom: 10px;
}

/* =========================
   TESTIMONIOS
========================= */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.testimonial-card {
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  font-style: italic;
}

/* =========================
   CTA
========================= */
.cta-section {
  text-align: center;
  padding: 80px 20px;
  background: #fafafa;
}

.cta-section p {
  max-width: 600px;
  margin: 0 auto 20px;
}

/* =========================
   FORMULARIO
========================= */
.contact-form {
  max-width: 500px;
  margin: 30px auto 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.contact-form textarea {
  min-height: 120px;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {

  .services-grid {
    grid-template-columns: 1fr;
  }

  .profile-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .hero-image {
    height: 75vh; /* 🔥 mejor para móvil */
  }

  .hero-content h1 {
    font-size: 26px;
  }

  .hero-content p {
    font-size: 16px;
  }
}