/* ================= VARIABLES ================= */
:root{
  --white: #ffffff;
  --soft: #f7f7f7;
  --red: #b1121c;
  --red-soft: #d62828;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;
  --shadow: 0 18px 40px rgba(0,0,0,.18);
}

/* ================= RESET ================= */
*{box-sizing:border-box}
html,body{margin:0; padding:0}
body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
}

/* ================= HERO (HOME + DINÁMICAS) ================= */
.hero{
  position: relative;
  min-height: 95vh;
  display:flex;
  align-items:center;
  background:
    linear-gradient(to right, rgba(255,255,255,.85), rgba(255,255,255,.55)),
    url("/hero.jpg");
  background-size: cover;
  background-position: center;
}

/* Contenedor principal (HOME usa grid) */
.hero__content{
  width: min(1200px, 92%);
  margin: auto;
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 40px;
  padding: 64px 0;
}

/* Layout columnas del hero */
.hero__left{ min-width: 0; }
.hero__right{ min-width: 0; }

/* ================= TEXTO HERO ================= */
.hero__title{
  font-size: clamp(36px, 4vw, 56px);
  margin: 0 0 14px;
  font-weight: 800;
}

.hero__subtitle{
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 55ch;
}

/* ================= TARJETAS ================= */
.hero__cards{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.card{
  display:block;
  text-decoration:none;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
  transition: all .2s ease;
}

.card:hover{
  transform: translateY(-4px);
  border-color: var(--red);
}

.card__title{
  font-weight: 700;
  margin-bottom: 6px;
}

.card__text{
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

/* ================= FORMULARIO ================= */
.formBox{
  background: rgba(255,255,255,.85);
  border-radius: 22px;
  padding: 26px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.4);
  backdrop-filter: blur(12px);
}

.formBox__title{
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
}

.formBox__text{
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.form{
  display:grid;
  gap: 14px;
}

.form__legal{
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.form__legal a{
  color: var(--red);
  text-decoration: none;
  font-weight: 700;
}

.form__legal a:hover{
  text-decoration: underline;
}

label{
  font-size: 13px;
  font-weight: 600;
}

input, select, textarea{
  width:100%;
  padding: 14px;
  border-radius: 12px;
  border:1px solid var(--border);
  font-size: 14px;
  background: var(--white);
}

textarea{
  min-height: 120px;
  resize: vertical;
}

input:focus, select:focus, textarea:focus{
  outline:none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(177,18,28,.15);
}

/* ================= BOTÓN ================= */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  margin-top: 10px;
  padding: 14px 18px;
  border-radius: 14px;
  border: none;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  font-size: 15px;
  cursor:pointer;
  text-decoration:none;
  transition: background .2s ease, transform .2s ease;
}

.btn:hover{
  background: var(--red-soft);
  transform: translateY(-2px);
}

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

.btn--ghost:hover{
  background: rgba(177,18,28,.08);
}

/* ================= SECCIÓN GENERAL ================= */
.section{
  padding: 70px 0;
  background: var(--soft);
}

.wrap{
  width: min(1200px, 92%);
  margin: auto;
}

/* ================= WEBS DEL GRUPO ================= */
.grid{
  margin-top: 26px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.siteCard{
  text-decoration:none;
  background: var(--white);
  border-radius: 18px;
  border:1px solid var(--border);
  overflow:hidden;
  box-shadow: var(--shadow);
  transition: all .2s ease;
}

.siteCard:hover{
  transform: translateY(-4px);
  border-color: var(--red);
}

.siteCard__top{
  padding: 14px;
  background: linear-gradient(120deg, var(--red), var(--red-soft));
  color: var(--white);
  font-weight: 700;
}

.siteCard__body{
  padding: 16px;
}

.siteCard__name{
  font-weight: 800;
  margin-bottom: 6px;
}

.siteCard__desc{
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

/* ================= FOOTER ================= */
.footer{
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 22px 0;
}

.footer__inner{
  width: min(1200px, 92%);
  margin:auto;
  display:flex;
  justify-content: space-between;
  align-items:center;
  flex-wrap:wrap;
}

/* footer links (arreglado) */
.footer__links{
  display:flex;
  align-items:center;
  gap: 14px;
  flex-wrap: wrap;
}

.footer__links a{
  margin-left: 0;
  text-decoration:none;
  color: var(--muted);
}

.footer__links a:hover{
  color: var(--red);
}

/* ================= LOGO EN HERO ================= */
.hero-logo{
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 10;
  display: inline-block;
  transition: transform .25s ease, filter .25s ease;
}

.hero-logo img{
  height: 80px;
  width: auto;
  display: block;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.25));
  transition: transform .25s ease, filter .25s ease;
}

.hero-logo:hover img{
  transform: scale(1.08);
  filter:
    drop-shadow(0 12px 26px rgba(177,18,28,.45))
    brightness(1.05);
}

/* ================= RADIOS BONITOS ================= */
.radioGroup{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
}

.radio{
  display:flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border:1px solid var(--border);
  border-radius:12px;
  background: rgba(255,255,255,.8);
}

.radio input{
  width:auto;
}

/* ================= HONEYPOT (OCULTO REAL) ================= */
.hp-wrapper{
  position:absolute;
  left:-99999px;
  top:-99999px;
  width:1px;
  height:1px;
  overflow:hidden;
}

/* (por si queda algún input con class="hp") */
.hp{
  position:absolute !important;
  left:-99999px !important;
  top:-99999px !important;
  width:1px !important;
  height:1px !important;
  opacity:0 !important;
  pointer-events:none !important;
}

/* ================= GRACIAS: CENTRADO REAL ================= */
.hero--thanks{
  min-height: 100vh;
  display:flex;
  align-items:center;
  justify-content:center;
}

/* En gracias, anulamos el grid y centramos */
.hero--thanks .hero__content{
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  display:flex;
  align-items:center;
  justify-content:center;
}

/* Caja de gracias */
.thanksBox{
  text-align: center;
  background: rgba(255,255,255,.9);
  border-radius: 26px;
  padding: 42px 36px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.45);
  backdrop-filter: blur(14px);
  max-width: 760px;
}

.thanksBox__icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--red-soft));
  color: #fff;
  font-size: 34px;
  font-weight: 900;
  box-shadow: 0 10px 30px rgba(177,18,28,.35);
}

.thanksBox__title{
  margin: 0 0 14px;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 900;
}

.thanksBox__text{
  margin: 0 auto 26px;
  max-width: 56ch;
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
}

.thanksBox__actions{
  display:flex;
  justify-content:center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.thanksBox__small{
  font-size: 13px;
  color: var(--muted);
}

/* ================= PÁGINAS LEGALES ================= */
.legal{
  padding: 90px 0;
  background: var(--white);
}

.legal__container{
  width: min(980px, 92%);
  margin: 0 auto;
  background: rgba(255,255,255,.92);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 34px;
  box-shadow: var(--shadow);
}

.legal__title{
  margin: 0 0 12px;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 900;
}

.legal__container h2{
  margin: 26px 0 10px;
  font-size: 20px;
}

.legal__container p{
  color: var(--text);
  line-height: 1.75;
  margin: 10px 0;
}

.legal__container ul{
  margin: 10px 0 10px 18px;
  color: var(--text);
  line-height: 1.75;
}

.legal__container li{
  margin: 6px 0;
}

.legal__container a{
  color: var(--red);
  text-decoration: none;
  font-weight: 700;
}

.legal__container a:hover{
  text-decoration: underline;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 980px){
  .hero__content{
    grid-template-columns: 1fr;
  }
  .hero__cards,
  .grid{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px){
  .hero-logo img{
    height: 42px;
  }
  .thanksBox{
    padding: 32px 22px;
    margin: 0 16px;
  }
}
