/*
Theme Name: Admisiones Corazonista
Author: Jean Deli
Version: 1.0
*/

#videoPopup{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    padding: 20px;
}

#videoPopup.oculto{
    display: none;
}

#videoPopup .contenedor{
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

#videoPopup video{
    width: auto;
    height: 90vh;
    max-width: 420px;
    max-height: 90vh;
    display: block;
    object-fit: contain;
    border-radius: 18px;
    background: #000;
    box-shadow: 0 15px 50px rgba(0,0,0,.45);
}

#cerrarVideo{
    position: absolute;
    top: -15px;
    right: -15px;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: #fff;
    color: #000;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2;
}

@media (max-width: 768px){
    #videoPopup video{
        width: 90vw;
        height: auto;
        max-height: 80vh;
    }
}

*, *::before, *::after{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
  :root {
    --rojo: #B01C2E;
    --rojo-oscuro: #7A1020;
    --rojo-claro: #F5E6E8;
    --dorado: #C9943A;
    --dorado-claro: #FDF3E3;
    --blanco: #FEFEFE;
    --gris-bg: #F8F5F0;
    --gris-texto: #3A3530;
    --gris-suave: #7A6E65;
    --crema: #FAF7F2;
  }

  html { scroll-behavior: smooth; }

  body {
    font-family: 'Montserrat', sans-serif;
    color: var(--gris-texto);
    background: var(--blanco);
    overflow-x: hidden;
  }

  /* ── NAVBAR ── */
  nav {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 3rem;
    background: rgba(254,254,254,0.97);
    border-bottom: 1px solid rgba(176,28,46,0.12);
    backdrop-filter: blur(8px);
  }
  .nav-logo {
    display: flex; align-items: center; gap: 14px;
  }
  .logo-img{
    height: 40px;
    width: auto;
    object-fit: contain;
  }
  .nav-cta {
    background: var(--rojo);
    color: white;
    padding: 10px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.03em;
    transition: background 0.2s, transform 0.15s;
  }
  .nav-cta:hover { background: var(--rojo-oscuro); transform: translateY(-1px); }

  /* ── HERO ── */
  .hero {
    min-height: 100vh;
    position: relative;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    padding: 120px 2rem 80px;
  }

  .video-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
  }

  .video-bg iframe {
    position: absolute;
    top: 50%;
    left: 50%;

    width: 177.77777778vh;
    height: 56.25vw;

    min-width: 100%;
    min-height: 100%;

    transform: translate(-50%, -50%);
    pointer-events: none;
  }

  .hero-overlay {
    position: absolute;
    inset: 0;

    background:
            linear-gradient(
                    160deg,
                    rgba(176,28,46,0.45) 0%,
                    rgba(122,16,32,0.55) 55%,
                    rgba(58,8,15,0.65) 100%
            );

    z-index: 1;
  }

  .hero-content {
    position: relative;
    z-index: 2;
  }

  .hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;

    width: 100%;
    height: 80px;

    background: linear-gradient(to bottom, transparent, var(--blanco));

    z-index: 2;
  }

  .hero-badge {
    display: inline-block;
    background: rgba(201,148,58,0.25);
    border: 1px solid rgba(201,148,58,0.6);
    color: #F0C97A;
    padding: 6px 20px;
    border-radius: 30px;
    font-size: 12px; font-weight: 700;
    letter-spacing: 0.15em; text-transform: uppercase;
    margin-bottom: 1.8rem;
  }
  .hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2.4rem, 5.5vw, 4.2rem);
    font-weight: 900;
    color: white;
    line-height: 1.12;
    max-width: 760px;
    margin: 0 auto 1.4rem;
  }
  .hero h1 em {
    font-style: italic;
    color: #F0C97A;
  }
  .hero-sub {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.8);
    max-width: 500px;
    margin: 0 auto 2.4rem;
    line-height: 1.6;
    font-weight: 300;
  }
  .hero-sub strong { color: white; font-weight: 700; }
  .btn-primary {
    display: inline-block;
    background: var(--dorado);
    color: var(--rojo-oscuro);
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1rem;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 8px 32px rgba(201,148,58,0.35);
  }
  .btn-primary:hover {
    background: #E0A94A;
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(201,148,58,0.5);
  }

  /* ── SECCIÓN INTRO ── */
  .intro {
    display: flex;
    min-height: 650px;
    width: 100%;
    background: white;
  }

  .intro-text {
    flex: 1;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 5rem 6rem;
  }

  .intro h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: var(--rojo-oscuro);
    line-height: 1.1;
    margin-bottom: 1rem;
  }

  .intro p {
    font-size: 1.05rem;
    color: var(--gris-suave);
    line-height: 1.9;
    max-width: 650px;
  }

  .divider {
    width: 70px;
    height: 4px;
    background: var(--dorado);
    margin: 1.5rem 0 2rem;
    border-radius: 999px;
  }

  .intro-image {
    flex: 1;

    background-image: url('https://sagradocorazon74.edu.co/wp-content/uploads/2026/05/Fondo-Roque.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

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

    .intro {
      flex-direction: column;
    }

    .intro-text {
      padding: 4rem 2rem;
      text-align: center;
      align-items: center;
    }

    .divider {
      margin: 1.5rem auto 2rem;
    }

    .intro-image {
      min-height: 350px;
    }

  }

  /* RESPONSIVE */
  @media (max-width: 900px) {
    .intro {
      flex-direction: column;
      text-align: center;
    }

    .divider {
      margin: 1.6rem auto;
    }
  }
  /* ── CARDS DE CARACTERÍSTICAS ── */
  .features {
    background: var(--crema);
    padding: 80px 2rem;
  }
  .features-title {
    text-align: center;
    margin-bottom: 3rem;
  }
  .features-title h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    color: var(--rojo-oscuro);
    margin-bottom: 0.6rem;
  }
  .features-title p {
    color: var(--gris-suave); font-size: 1rem;
  }
  .cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
  }
  /* ── CARDS PREMIUM ── */
  .card {
    position: relative;
    overflow: hidden;

    min-height: 320px;
    border-radius: 18px;

    padding: 2rem;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    background-size: cover;
    background-position: center;

    transition: transform .4s ease, box-shadow .4s ease;

    border-left: 5px solid var(--rojo);

    cursor: pointer;
  }

  /* Overlay blanco */
  .card::after {
    content: '';

    position: absolute;
    inset: 0;

    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(2px);

    transition: all .45s ease;

    z-index: 1;
  }

  /* Contenido */
  .card-content {
    position: relative;
    z-index: 2;

    transition: opacity .35s ease, transform .35s ease;
  }

  .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(0,0,0,0.18);
  }

  /* Se quita overlay */
  .card:hover::after {
    background: rgba(255,255,255,0);
    backdrop-filter: blur(0px);
  }

  /* Texto desaparece */
  .card:hover .card-content {
    opacity: 0;
    transform: translateY(20px);
  }

  .card-icon {
    width: 54px;
    height: 54px;

    background: rgba(255,255,255,0.7);

    border-radius: 14px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 1.2rem;

    font-size: 26px;

    backdrop-filter: blur(5px);
  }

  .card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    color: var(--rojo-oscuro);
    margin-bottom: .8rem;
    font-weight: 800;
    line-height: 1.2;
  }

  .card p {
    font-size: .95rem;
    color: var(--gris-texto);
    line-height: 1.75;
  }

  /* ── CTA VISITANOS ── */
  /* ── CTA VISÍTANOS ── */
  .visita {
    position: relative;
    overflow: hidden;

    padding: 100px 2rem;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
    color: white;
  }

  /* VIDEO */
  .visita-video {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
  }

  .visita-video iframe {
    position: absolute;
    top: 50%;
    left: 50%;

    width: 177.77777778vh;
    height: 56.25vw;

    min-width: 100%;
    min-height: 100%;

    transform: translate(-50%, -50%);
    pointer-events: none;
  }

  /* OVERLAY */
  .visita::before {
    content: '';

    position: absolute;
    inset: 0;

    background:
            linear-gradient(
                    135deg,
                    rgba(176,28,46,0.82) 0%,
                    rgba(122,16,32,0.78) 55%,
                    rgba(90,10,20,0.86) 100%
            );

    z-index: 1;
  }

  /* CONTENIDO */
  .visita > *:not(.visita-video) {
    position: relative;
    z-index: 2;
  }
  .visita h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
    margin-bottom: 1rem;
    line-height: 1.2;
  }
  .visita h2 span { color: #F0C97A; font-style: italic; }
  .visita p {
    max-width: 560px;
    margin: 0 auto 2.4rem;
    font-size: 1.05rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.7;
  }
  .contact-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2.4rem;
  }
  .contact-item {
    display: flex; align-items: center; gap: 10px;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.9);
  }
  .contact-item .icon {
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.12);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
  }
  .btn-secondary {
    display: inline-block;
    background: transparent;
    color: white;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    border: 2px solid rgba(255,255,255,0.6);
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
  }
  .btn-secondary:hover {
    background: rgba(255,255,255,0.12);
    border-color: white;
    transform: translateY(-1px);
  }

  /* ── FORMULARIO ── */
  .formulario-section {
    background: var(--gris-bg);
    padding: 80px 2rem;
  }
  .form-wrapper {
    max-width: 640px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 4px 40px rgba(58,53,48,0.08);
    border: 1px solid rgba(176,28,46,0.1);
  }
  .form-header { text-align: center; margin-bottom: 2.4rem; }
  .form-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.9rem; color: var(--rojo-oscuro);
    margin-bottom: 0.5rem;
  }
  .form-header p { color: var(--gris-suave); font-size: 0.95rem; }
  .form-group { margin-bottom: 1.2rem; }
  label {
    display: block;
    font-size: 0.87rem;
    font-weight: 700;
    color: var(--gris-texto);
    margin-bottom: 6px;
    letter-spacing: 0.03em;
  }
  input[type="text"], input[type="email"], input[type="tel"], select, textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #E0D8D0;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    color: var(--gris-texto);
    background: white;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    appearance: none;
  }
  input:focus, select:focus, textarea:focus {
    border-color: var(--rojo);
    box-shadow: 0 0 0 3px rgba(176,28,46,0.12);
  }
  textarea { resize: vertical; min-height: 90px; }
  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
  .submit-btn {
    width: 100%;
    background: var(--rojo);
    color: white;
    padding: 15px;
    border: none;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    letter-spacing: 0.04em;
    transition: background 0.2s, transform 0.15s;
    margin-top: 0.6rem;
  }
  .submit-btn:hover { background: var(--rojo-oscuro); transform: translateY(-1px); }
  .form-nota {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.82rem;
    color: var(--gris-suave);
  }

  /* ── FOOTER ── */
  footer {
    background: var(--rojo-oscuro);
    color: rgba(255,255,255,0.7);
    text-align: center;
    padding: 2rem;
    font-size: 0.87rem;
  }
  footer a { color: rgba(255,255,255,0.85); text-decoration: none; }
  footer strong { color: white; }

  @media (max-width: 600px) {
    nav { padding: 1rem 1.2rem; }
    .form-row { grid-template-columns: 1fr; }
    .form-wrapper { padding: 2rem 1.4rem; }
    .cards-grid { grid-template-columns: 1fr; }
  }

.whatsapp-chat{
    position:fixed;
    right:25px;
    bottom:25px;
    display:flex;
    align-items:center;
    gap:15px;
    background:#fff;
    color:#333;
    text-decoration:none;
    width:340px;
    padding:16px;
    border-radius:18px;
    box-shadow:0 10px 35px rgba(0,0,0,.18);
    font-family:'Poppins',sans-serif;
    z-index:9999;
    transition:.3s;
}

.whatsapp-chat:hover{
    transform:translateY(-4px);
    box-shadow:0 15px 40px rgba(0,0,0,.22);
}

.whatsapp-texto{
    flex:1;
}

.whatsapp-texto strong{
    display:block;
    font-size:18px;
    color:#00543d;
    margin-bottom:6px;
}

.whatsapp-texto span{
    font-size:14px;
    line-height:1.5;
    color:#555;
}

.whatsapp-icono{
    width:60px;
    height:60px;
    background:#25D366;
    border-radius:50%;
    display:flex;
    justify-content:center;
    align-items:center;
    flex-shrink:0;
}

@media(max-width:600px){

    .whatsapp-chat{
        width:calc(100% - 30px);
        right:15px;
        left:15px;
        bottom:15px;
    }

}

/* ==== Animaciones añadidas ==== */
.reveal{opacity:0;transform:translateY(60px);transition:all .8s ease}
.reveal.show{opacity:1;transform:none}
nav{transition:all .3s ease}
nav.scrolled{padding:.65rem 3rem;box-shadow:0 10px 35px rgba(0,0,0,.12)}
.card{transition:transform .4s ease,box-shadow .4s ease,opacity .8s ease}
.card:hover{transform:translateY(-10px) scale(1.02)}
.btn-primary,.btn-secondary{position:relative;overflow:hidden}
.btn-primary::before,.btn-secondary::before{content:'';position:absolute;top:0;left:-130%;width:60%;height:100%;
background:linear-gradient(120deg,transparent,rgba(255,255,255,.5),transparent);transform:skewX(-20deg)}
.btn-primary:hover::before,.btn-secondary:hover::before{left:150%;transition:1s}

