/* ===========================
   VARIABLES Y BASE (mobile-first)
   =========================== */
:root {
  --primary: #cfa88b;
  --primary-contrast: #fff;
  --muted: #f6ede6;
  --text: #222;
  --font-sans: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --card-border: rgba(0, 0, 0, 0.08);
  --radius: 8px;
  --max-width: 900px;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  font-family:var(--font-sans);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.4;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ===========================
   HERO
   =========================== */
.hero {
  height: 100vh;
  background-image: url("assets/images/portada.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  margin: 0;
  padding: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(207, 168, 139, 0.4); /* tono beige transparente */
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__logo {
  text-align: center;
}

.hero__logo img {
  width: 200px;
  max-width: 70%;
}

/* Texto temporal si no hay logo */
.logo {
  font-family: var(--font-serif);
  font-size: 4rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--primary-contrast);
}

.logo__tag {
  font-family: var(--font-sans);
  font-size: 1.2rem;
  color: var(--primary-contrast);
  margin-top: -2.5rem;
}

/* ===========================
   INTRO
   =========================== */
.intro{
  background:var(--muted);
  padding:1.2rem;
}
.intro__title{
  font-size:1.1rem;
  margin-bottom:0.8rem;
  font-weight:600;
  color:#111;
}

/* intro content: thumbnail + texto usando flexbox (columna en móvil) */
.intro__content{
  display:flex;
  flex-direction:column;
  gap:0.8rem;
  align-items:center;
}
.intro__thumb img{
  width:86%;
  max-width:300px;
  border-radius:6px;
  display:block;
}
.intro__text{
  font-size:0.92rem;
  text-align:center;
  padding:0 0.4rem;
}

/* ===========================
   BOXES (grid)
   =========================== */
.boxes{
  background:var(--primary);
  color:var(--primary-contrast);
  padding:1rem;
}
.boxes__grid{
  /* mobile: un columna (pero usamos grid para transiciones a desktop) */
  display:grid;
  grid-template-columns: 1fr;
  gap:0.9rem;
}
.box{
  border:1px solid rgba(255,255,255,0.15);
  padding:0.9rem;
  border-radius:var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.02));
}
.box__title{ font-size:1rem; margin-bottom:0.4rem; font-weight:600;}
.box__desc{ font-size:0.86rem; opacity:0.95;}

/* ===========================
   MEANING (CTA)
   =========================== */
.meaning{
  padding:1rem;
  text-align:center;
  background:#fff;
}
.meaning__title{ font-size:1.05rem; margin-bottom:0.5rem;}
.meaning__text{ font-size:0.92rem; margin-bottom:0.8rem; padding:0 0.4rem;}

.meaning__thumb img{
  width:90%;
  max-width:400px;
  border-radius:6px;
  display:block;
}

/* Botones: primario y outline */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0.6rem 0.95rem;
  border-radius:6px;
  font-weight:600;
  font-size:0.95rem;
  cursor:pointer;
  min-height:44px; /* accesibilidad táctil */
}
.btn--primary{
  background:var(--primary);
  color:var(--primary-contrast);
  border:2px solid rgba(0,0,0,0.02);
}
.btn--outline{
  background:transparent;
  color:var(--text);
  border:1.5px solid var(--card-border);
}

/* ===========================
   CHOOSE (cards grid)
   =========================== */
.choose{
  padding:1rem;
}
.choose__title{ font-size:1.05rem; margin-bottom:0.6rem; padding-left:0.2rem;}
.choose__grid{
  display:grid;
  grid-template-columns: 1fr;
  gap:0.9rem;
}
.card{
  border:1px solid var(--card-border);
  border-radius:8px;
  overflow:hidden;
  background:#fff;
  display:flex;
  flex-direction:column;
}
.card__img{
  height:180px;
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
}
.card__body{ padding:0.7rem; font-size:0.95rem; }

/* ===========================
   TESTIMONIOS
   =========================== */
.testimonials{
  background:var(--muted);
  padding:1rem;
}
.testimonials__title{ font-size:1.05rem; margin-bottom:0.6rem; text-align:center;}
.testimonials__grid{
  display:grid;
  grid-template-columns: 1fr;
  gap:0.8rem;
}
.testimonial{
  font-style:italic;
  font-size:0.9rem;
  padding:0.6rem;
  border-left:3px solid rgba(0,0,0,0.06);
  background:#fff;
  border-radius:6px;
}
.testimonial cite{ display:block; margin-top:0.4rem; font-style:normal; font-weight:600; }

/* acciones (botones) en testimonios */
.testimonials__actions{
  display:flex;
  flex-direction:column;
  gap:0.6rem;
  margin-top:0.8rem;
}

/* ===========================
   FOOTER
   =========================== */
.site-footer{
  background:var(--primary);
  color:var(--primary-contrast);
  padding:1rem;
}
.footer__top{ text-align:left; padding-bottom:0.6rem; }
.footer__title{ font-family:var(--font-serif); font-size:2rem; margin:0 0 0.3rem;}
.footer__list{ margin:0.6rem 0 0 1rem; font-size:0.9rem; }
.footer__contact{ display:flex; flex-direction:column; gap:0.6rem; font-size:0.92rem; margin-top:0.6rem;}

.footer__images {
  display: flex;
  justify-content: center; /* centra horizontalmente */
  width: 100%;
}

.footer__img {
  width: 100%; /* ocupa todo el ancho */
  max-width: 100%;
  height: auto;
  object-fit: cover; /* mantiene proporción */
  display: block;
}


/* ===========================
   UTILIDADES / ACCESIBILIDAD
   =========================== */
a{ color:inherit; text-decoration:underline; }
button{ border:0; background:none; }

/* ===========================
   MEDIA QUERIES (tablet+)
   =========================== */
@media (min-width:640px){
  .hero{ height:420px; }
  .intro__content{ flex-direction:row; align-items:center; justify-content:space-between; gap:1rem; padding:0 0.6rem; }
  .intro__thumb img{ width:40%; max-width:260px; }
  .intro__text{ width:56%; text-align:left; }

  .boxes__grid{
    grid-template-columns: repeat(3, 1fr);
  }

  .choose__grid{
    grid-template-columns: repeat(3, 1fr);
  }

  .testimonials__grid{
    grid-template-columns: repeat(3, 1fr);
  }

  .testimonials__actions{ flex-direction:row; justify-content:space-between; gap:0.6rem; }
}

/* media query para desktop ancho */
@media (min-width:980px){
  main{ padding:0 1.2rem; }
  .hero{ height:520px; background-position: center 30%; }
  .logo{ font-size:2.8rem; }
}



/* ===========================
   DESKTOP (pantallas normales)
   =========================== */
@media (min-width: 980px) {
  :root {
    --max-width: 1100px;
  }

  main {
    padding: 0 1.5rem;
    max-width: var(--max-width);
  }

  /* HERO */
  .hero {
    height: 620px;
    background-position: center 28%;
  }

  .logo {
    font-size: 4rem;
    letter-spacing: 2px;
  }

  .logo__tag {
    font-size: 1.2rem;
    margin-top: -2.5rem;
  }

  /* INTRO */
  .intro {
    padding: 2rem 1.5rem;
  }

  .intro__content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
  }

  .intro__thumb img {
    width: 80%;
    max-width: 380px;
  }

  .intro__text {
    width: 58%;
    text-align: left;
    font-size: 1rem;
    line-height: 1.6;
  }

  /* BOXES */
  .boxes {
    padding: 2rem 1.5rem;
    height: 500px;
  }

  .boxes__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
  }

  .box {
    padding: 1.2rem;
  }


  /* MEANING */
  .meaning {
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    padding: 3rem 4rem;
    gap: 2rem;
  }

  .meaning__content {
    flex: 1;
    display: flex;
    flex-direction: column; /* ordena título, texto y botón en columna */
    align-items: flex-start; /* alinea a la izquierda en escritorio */
    gap: 1rem;
  }

  .meaning__actions {
    margin-top: 0.5rem;
  }

  .meaning__thumb {
    flex: 1.5;
    display: flex;
    justify-content: center;
  }

  .meaning__img {
    width: 500%;
    max-width: 600px;
    height: auto;
    border-radius: 10px;
  }

  .meaning__title {
    font-size: 1.8rem;
  }

  .meaning__text {
    font-size: 1.05rem;
    max-width: 400px;
  }

  /* CHOOSE */
  .choose {
    margin-top: 1.7rem;
    padding: 2rem 1.5rem;
  }

  .choose__title {
    font-size: 1.4rem;
  }

  .choose__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
  }

  .card__img {
    height: 220px;
  }

  /* TESTIMONIALS */
  .testimonials {
    padding: 2rem 1.5rem;
  }

  .testimonials__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .testimonial {
    font-size: 1rem;
  }

  /* FOOTER */
  .site-footer {
    padding: 1.5rem;
  }

  .footer__title {
    font-size: 2.2rem;
  }

  .footer__img{
    margin-top: 0.9rem;
    height: 230px;
    width: 100%;
  }

  .footer__contact {
    margin-top: 1rem;
    font-size: 1rem;
  }
}
