/* Reset & Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html,body{height:100%;font-family:'Raleway',Arial,Helvetica,sans-serif;scroll-behavior:smooth;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:#333;}
img,picture,video,canvas,svg{display:block;max-width:100%;height:auto;}
input,button,textarea,select{font:inherit;color:inherit;background:none;border:none;outline:none;}
a{color:inherit;text-decoration:none;cursor:pointer;}
ul,ol{list-style:none;}
button{cursor:pointer;background:none;border:none;padding:0;}

/* Root Variables */
:root {
    font-size: 16px;
    scroll-behavior: smooth;
    --c1: #293566;
    --sp: min(10px, 1vw);
    --sp1: min(20px, 2vw);
    --sp2: min(30px, 3vw);
    --sp3: min(40px, 4vw);
    --sp4: min(50px, 5vw);
    --sp5: min(60px, 6vw);
    --lineaGris:rgba(0 0 0 / .1) 1px solid;
    --gradient:linear-gradient(90deg, #293566, #000);
    --gradient-2: linear-gradient(90deg, #c6326d, #000);
    --gradient-3: linear-gradient(90deg, #646464, #000);
    --sombra: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.1));
}

/* General Elements */
img,
div {
    max-width: 100%;
    margin-bottom: 0;
    position: relative;
}
svg {
    display: block;
}
body {
    font-family: 'Lato', sans-serif;
    background-color: #f3f4f5;
    color: #333;
    line-height: 1.5;
}

/* Layout Containers */

section {
    padding: min(60px, 5vw);
}
section > div,
div.caja {
    max-width: 800px;
    margin: 0 auto;
}
div.cajita {
    padding: var(--sp5) 0;
    width: min(600px, 90%);
}

nav {
    background-color:var(--c1);
    padding: 8px 15px;
    display: none;

}

nav > div.caja {
    display: flex;
    justify-content: space-around;
    gap: var(--sp2);
}
nav a {
    color: #fff;
    font-weight: 700;
    display: inline-block;
    margin: 0 auto;
}
nav a::before {
    content: "▼";
    color: #ccc;
    font-weight: 700;
    display: inline-block;
    margin-right: 5px;
    font-size: 0.6em;
    text-decoration: none;
    text-transform: uppercase;
    transform: translateY(-15%);
    transition: transform 0.3s ease, color 0.3s ease;
}

nav a:hover::before{
    content: "▼";
    color: #c6326d;
    transform: translateY(1%) scale(.9);
}

header {
    padding: var(--sp2) var(--sp5);
    text-align: center;
    background-color: #000;
    filter: var(--sombra);
    background:url(../img/verona-aerea.jpg);
    background-size:cover;
    min-height: 50vh;
    display: grid;
    place-content: center;
    overflow: hidden;
    position: relative;
}

header img {
    position: absolute;
    bottom:0;
    left: 0;
    transform: translate(-50%, 30%);
    height: auto;
    filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.3));
}

.ico{
    border-radius: 50%;
    aspect-ratio: 1/1;
    width: min(400px, 50%);
}

/* Headings & Typography */

h1 {
    color: #fff;
    font-weight: 100;
    text-transform: uppercase;
    line-height: 1;
    font-size: clamp(2rem, 4vw, 2.5rem);
}

h1 span {
    display: block;
    font-weight: 900;
    font-size:160%;
}

section:first-of-type
h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: 8px;
}

h2 span {
    display: block;
    font-size: .8em;
    font-weight: 400;
    color: #666;
}
h2 + p {
    font-size: 120%;
    margin: var(--sp2) auto ;
    line-height: 1.5;
    border-top: var(--lineaGris);
    padding-top: var(--sp1);
}



/* Lists */
ul {
    margin: var(--sp1) auto;
    filter:var(--sombra);
}
ul li {
    padding: var(--sp1);
    border-bottom: 1px solid #ddd;
    transition: background-color 0.3s ease;
    background-color: #fff;
    position: relative;
}

ul + h2 {
    margin-top: var(--sp5);
}

/* Special Components */
div.cita {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    gap: var(--sp5);
    color: #fff;
    font-weight: 400;
    margin: 0 auto;
    filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.1));
    line-height: 1.2;
    background:
        url("../img/cadaver-lab-verona-icono.jpg") no-repeat calc(0% - 10vw) calc(100% + 6vw)
        #000;
    background-size: 20vw 20vw;
}

section > div.cita {
    max-width: 1200px;
}

div.cita > div {
    width: 50%;
    margin: 0 auto;
    padding: 0;
    transform: translateX(5%);
}
.cita p {
    font-size: 14px;
    font-style: italic;
    margin-top: var(--sp);
}
.cita img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.destacado {
    padding: var(--sp5);
    margin: 0 auto;
    background-color: #fff;
    display: flex;
    gap: var(--sp5);
    width: min(1280px, 90%);
}
.destacado img {
    width: 100%;
    height: auto;
    max-width: 120px;
}

.inscripcion {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    margin: var(--sp5) auto 0;
}

.inscripcion h4,
.inscripcion h5 {
    font-size: clamp(4rem, 5vw, 3rem);
    font-weight: 700;
    color: #704364;
    margin-bottom: var(--sp1);
    display: flex;
    align-items: center;
    text-align: center;
}
.inscripcion h4 span,
.inscripcion h5 span {
    display: inline-block;
    font-size: 40%;
    font-weight: 400;
    margin-right: 2px;
}


/* Footer & Floating WhatsApp */
footer {
    background-color: #fff;
    padding-bottom: 3vw;
    text-align: center;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    align-items: center;
    place-content: center;
    gap: var(--sp2);
    padding: var(--sp2);
}
footer a {
    display: inline-block;
    font-weight: 700;
    color: #111;
    margin-left: var(--sp2);
}
footer  img {
    width: 100%;
    height: auto;
    max-width: 80px;
    margin: 0 auto;
}
footer + a[href*="wa.me"] {
    position: fixed;
    right: 5vw;
    top: 50%;
    transform: translateY(-50%);
    display: block;
    width: 50px;
    height: 50px;
    filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease-in-out;
}
footer + a[href*="wa.me"]:hover {
    transform: translateY(-50%) scale(1.3);
}

@media (min-width: 729px) {
    .inscripcion{position: relative}
    body:not(.seem) .inscripcion:before {
        content: "";
        position: absolute;
        top:25%;
        left: 50%;
       height: 50%;
        width: 1px;
        background-color: rgba(0, 0, 0, 0.3);
    }
}

/* Responsive */
@media (max-width: 728px) {

    .caja {
        max-width: 100%;
        padding: 0 15px;
    }
    .banner-container {
        min-height: 300px;
        height: 140vw;
        max-height: 600px;
        background-size: 200% auto;
        background-position: left bottom;
    }
    div.cita {
        grid-template-columns: 1fr;
        gap: var(--sp2);
        font-size: 1rem;
        align-items: stretch;
        background-position: calc(100% + 25vw) calc(0% + 6vw);
            background-size: 50vw 50vw;

    }
    div.cita > div {
        width: 100%;
        padding:15vw 30vw 5vw 5vw;
    }
    .destacado {
        flex-direction: column;
        align-items: center;
        gap: 5vw;
        padding: 15vw 5vw;
    }
    footer + a[href*="wa.me"] {
        width: 40px;
        height: 40px;
        right: 3vw;
    }

    footer {
        padding:20vw 2vw;
        grid-template-columns: 1fr;
        gap: var(--sp5);
    }
    .inscripcion {
            flex-direction: column;
            gap: min(60px, 5vw);
    }
    .inscripcion h4,
    .inscripcion h5 {
        justify-content: center;
    }
    ul li strong {
        display: block;
        font-size: 110%;
    }
    ul li  {
        padding: var(--sp5);
     }
}

ul li:first-child {
    background: var(--gradient);
   color: #fff;
   cursor: pointer;
}

ul.g2 li:first-child {
    background: var(--gradient-2);
}
ul.complicaciones li:first-child {
    background: var(--gradient-3);
}

ul li:first-child strong {
font-size: 150%;
margin-right: 8px;
}

ul li:first-child::after {
    content: "";
    position: absolute;
    top: 50%;
    right: var(--sp);
        transform: translate(-50%, -50%);
    height: 15px;
    width: 30px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="10" viewBox="0 0 20 10"><polygon points="0,0 10,10 20,0" fill="%23f3f4f5"/></svg>') no-repeat center center;
    background-size: 50% 50%;

}

ul li:not(:first-child) strong {
    font-size: 150%;
    margin-right: 8px;              
    display: block;
}


ul li a {
    color: #c6326d;
    font-weight: 700;
    border-bottom: solid 1px #c6326d;
    display: inline-block;
    margin-right: 8px;
}
.legales {
   font-size: 14px;
   padding: var(--sp5);
}


.arrow::after {
    content: "";
    position: absolute;
    top: 0px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    background: none;
    display: block;

    background-repeat: no-repeat;
    background-size: contain;
    width: 30px;
    height: 15px;
}


.damero {
    display: grid;
    gap: var(--sp5);
    grid-template-columns: 1fr;
    /* móvil: 1 columna */
}

.damero.fotos {
    grid-template-columns:1fr 1fr;
    gap: 0;
    margin-top: var(--sp5);
}

.damero:not(.fotos) img {
    border-radius: 50%;
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 1/1;
}


.damero > * {
    color:inherit
    /* opcional: estilos de los hijos */
}

/* tablet / pantallas medianas: 2 columnas */
@media (min-width: 600px) {
    .damero {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* escritorio: hasta 3 columnas */
@media (min-width: 1000px) {
    .damero.fotos {
        grid-template-columns: repeat(4, 1fr);
    }
    .damero.faculty {
        grid-template-columns: repeat(3, 1fr);
    }
    nav {
        display: inherit;
    }
         .scrolled nav {
             position: fixed;
             top: 0;
             padding: min(15px, 1vw) 5vw;
             width: 100%;
             z-index: 1000;
             animation: fadein 1s ease-in-out;
         }
    
         @keyframes fadein {
             from {
                 transform: translateY(-100%);
             }
    
             to {
                 transform: translateY(0%);
             }
         }
}


img[src*="img/iclo"] {
    width: min(200px, 80%);
    display: block;
    margin: var(--sp5) auto;
}

.bt {
    display: block;
    width: fit-content;
    padding: var(--sp1) var(--sp3);
    background-color: var(--c1);
    color: #fff;
    font-weight: 700;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
    margin: var(--sp2) auto;
}

.bt:hover {
    background-color: #c6326d;
}

p a, .damero a {
    color: #c6326d;
    font-weight: 700;
    border-bottom: solid 1px #c6326d;
}

 /* Lightbox */
 .lightbox {
     position: fixed;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background: rgba(0, 0, 0, 0.95);
     display: none;
     align-items: center;
     justify-content: center;
     z-index: 2000;
 }

 .lightbox.active {
     display: flex;
 }

 .lightbox img {
     max-width: 90%;
     max-height: 90%;
     object-fit: contain;
 }

 .lightbox-close {
     position: absolute;
     top: 30px;
     right: 30px;
     background: none;
     border: none;
     color: white;
     font-size: 2rem;
     cursor: pointer;
     z-index: 2001;
 }

 [onclick="openLightbox(this.src)"] {
     cursor: pointer;
 }


 #faculty {
    background: #fff
 }


 #faculty .faculty {
    text-align: center;
 }

  #faculty .faculty img    {
    margin:var(--sp5) auto var(--sp1) ;
    width: min(250px, 100%);
  }

img + h2 {
    margin-top: var(--sp3);
}

#valor h3 {
    border-bottom: var(--lineaGris);
    padding-bottom: var(--sp1);
}

.nosVemos {
    padding:var(--sp5) var(--sp3) 0;
    text-align: center;
    font-weight: 300;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
}
.nosVemos span {
    font-weight: 900;
}


.partner {
    display: block;
    text-align: center;
    margin-top: var(--sp5);
}
.partner img {
    width: min(300px, 80%);
    height: auto;
    margin: var(--sp2) auto 0;
}


/* PRECIOS */
.inscripcion.cajita h5,
.inscripcion.cajita h5 + p {
    display: none;
}

.inscripcion.cajita.beneficio h5,
.inscripcion.cajita.beneficio h5 + p {
    display: inherit;
}

.inscripcion.cajita.beneficio h5 {
    display: flex;
    margin:0 auto;
    text-align: center;
    transform: translateY(-10px);
}
.inscripcion.cajita.beneficio h5 + p {
    display: block;
    margin: 0 auto;
    padding: 4px 12px;
    font-size: clamp(1rem, 2.5vw, 0.9rem); border-radius: 5px;
    background-color:var(--c1);
    color: #fff;
    width: fit-content;
    
}

.inscripcion.cajita.beneficio h4 {

    font-size: clamp(2rem, 2.5vw, 1.5rem);
    text-align: center;
    width: fit-content;
    position: relative;
    margin: 0 auto;
    padding: 0;
    color: #999;
}

.inscripcion.cajita.beneficio h4::after {
    content: "";
    position: absolute;
    top: calc(50% - 1px);
    left: -5%;
    width: 110%;
    height: 2px;
    background-color: rgba(189, 12, 12, 0.458);
    display: block;
}

.seem .inscripcion.cajita > div:last-of-type {
    display: none;
}

.seem .inscripcion.cajita > div {
    border:none;
}

.seem .inscripcion.cajita,
.seem .inscripcion.cajita h5 {
    display: block;
}

.seem #programa ul:last-of-type,
.seem #programa h2:last-of-type {
    display: none;
}