@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Montserrat:wght@600;700;800&display=swap');

:root {
    --rojo: #e53935;
    --naranja: #ff7043;
    --blanco: #fff;
    --gris-oscuro: #222;
    --gris-claro: #f5f5f5;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: 'DM Serif Text', serif;
    display: swap;
    background: var(--gris-claro);
    color: var(--gris-oscuro);
    margin: 0;
    overflow: auto;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow: auto;
    overflow-x: hidden;
    font-size: 20px
}

h1,
h2,
h3,
h4,
h5,
h6,
.nc-inscribete,
.nc-card h3,
.curso-info h3,
.af-info-card h2,
.sn-info h2,
.animated-title {
    font-weight: 700;
    letter-spacing: 0.5px;
}

.menu-btns {
    display: flex;
    gap: 16px;
    margin-right: 40px;
}

.menu-btn {
    background: var(--naranja);
    color: var(--blanco);
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.2s;
}

.menu-btn.outline {
    background: var(--blanco);
    color: var(--rojo);
    border: 2px solid var(--rojo);
}

.menu-btn:hover {
    background: #ffa07a;
    color: var(--blanco);
}

@media (max-width: 900px) {
    .hero-arrow-left {
        left: 8px;
    }

    .hero-arrow-right {
        right: 8px;
    }
}

.menu-btns {
    display: flex;
    gap: 16px;
    margin-right: 40px;
}

.menu-btn {
    background: var(--naranja);
    color: var(--blanco);
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.2s;
}

.menu-btn.outline {
    background: var(--blanco);
    color: var(--rojo);
    border: 2px solid var(--rojo);
}

.menu-btn:hover {
    background: #ffa07a;
    color: var(--blanco);
}


.hero-video {
    width: 100%;
    height: 320px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hero-content {
    flex: 1;
    z-index: 2;
    color: var(--blanco);
    text-align: left;
    max-width: 600px;
    margin: 0 40px;
}


.hero h1 {
    font-size: 3em;
    font-weight: 700;
    margin-bottom: 18px;
    line-height: 1.1;
}

.hero p {
    font-size: 1.2em;
    margin-bottom: 22px;
}

.sn-colab-num {
    color: #e94f37;
    font-size: 2.2rem;
    font-weight: 800;
}

.sn-colab-txt {
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
}

.sn-imgs {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 24px;
    position: relative;
}

.sn-img-main {
    width: 340px;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(233, 79, 55, 0.12);
    margin-bottom: 0;
    background: #fff;
    z-index: 2;
}

.sn-img-equipo {
    width: 340px;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
    margin-top: -60px;
    z-index: 1;
    background: #fff;
}

.sn-btns {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
    width: 100%;
    align-items: flex-end;
}

.sn-btn {
    padding: 14px 0;
    width: 220px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.sn-mision {
    background: #e94f37;
    color: #fff;
    position: center;
}

.sn-mision:hover {
    background: #ffb7a8;
    color: #e94f37;
}

.sn-vision {
    background: #e94f37;
    color: #fff;
}

.sn-vision:hover {
    background: #ffb7a8;
    color: #e94f37;
}

.sn-bartender {
    background: #e94f37;
    color: #fff;
}

.sn-bartender:hover {
    background: #ffb7a8;
    color: #e94f37;
}

.sn-verMas {
    background: #e94f37;
    color: #fff;
    text-decoration: none;
}

.sn-verMas:hover {
    background: #ffb7a8;
    color: #e94f37;
    text-decoration: none;
}

.modal-close {
    width: 0;
    height: 0;
    border: none;
    background: none;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(34, 34, 34, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background: #fff;
    border-radius: 18px;
    padding: 48px 48px 36px 48px;
    max-width: 640px;
    width: 95%;
    box-shadow: 0 12px 40px rgba(233, 79, 55, 0.18), 0 2px 8px rgba(0, 0, 0, 0.10);
    position: relative;
    text-align: left;
    animation: modalPop 0.3s;
}

@keyframes modalPop {
    from {
        transform: scale(0.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.-close {
    position: absolute;
    top: 22px;
    right: 28px;
    background: none;
    border: none;
    font-size: 2.2rem;
    color: #e94f37;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #222;
}

.modal-subtitulo {
    color: #e94f37;
    font-size: 1.15rem;
    letter-spacing: 2px;
    font-weight: 700;
    display: flex;
    align-items: center;
    margin-bottom: 18px;
    text-align: left;
}

.modal-subtitulo::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 24px;
    background: #e94f37;
    margin-right: 12px;
    border-radius: 2px;
}

.modal-content h2 {
    font-size: 2.7rem;
    font-weight: 800;
    margin-bottom: 18px;
    line-height: 1.1;
    color: #222;
}

.modal-destacado {
    color: #e94f37;
    font-weight: 900;
    font-size: 2.7rem;
}

.modal-content p {
    font-size: 1.15rem;
    color: #444;
    margin-bottom: 0;
    line-height: 1.6;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.academia-formativa {
    background: #23242a;
    padding: 60px 0 40px 0;
    margin-bottom: 0;
}

.af-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
    align-items: flex-start;
}

.af-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.af-card {
    background: #fff;
    border-radius: 14px;
    padding: 22px 28px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #222;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
}

.af-card.destacado {
    border-left: 6px solid #e94f37;
    position: relative;
}

.af-popular {
    background: #e94f37;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 8px;
    position: absolute;
    top: 18px;
    left: -60px;
    letter-spacing: 1px;
}

.af-destacado {
    color: #e94f37;
    font-weight: 900;
}

.af-card ul {
    margin-top: 10px;
    padding-left: 18px;
    font-size: 1rem;
    color: #444;
}

.af-card ul li {
    margin-bottom: 6px;
    list-style: disc;
}

.af-right {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    position: relative;
}

.af-subtitulo {
    color: #e94f37;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 12px;
    display: block;
}

.af-img {
    width: 100%;
    max-width: 520px;
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
    margin-bottom: -60px;
    z-index: 1;
}

.af-info-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(233, 79, 55, 0.10);
    padding: 28px 32px;
    margin-top: -40px;
    position: relative;
    z-index: 2;
    width: 90%;
}

.af-info-card h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.af-info-card p {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 18px;
}

.af-btn {
    background: #e94f37;
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.af-btn:hover {
    background: #ffb7a8;
    color: #e94f37;
}

.nuestros-cursos {
    background: #fff;
    padding: 60px 0 40px 0;
}

.nc-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.nc-subtitulo {
    color: #e94f37;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 18px;
}

.nuestros-cursos h2 {
    font-size: 2.7rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: #222;
}

.nc-destacado {
    color: #e94f37;
    font-weight: 900;
}

.nc-descripcion {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 32px;
}

.nc-cards {
    display: flex;
    gap: 32px;
    justify-content: center;
    margin-bottom: 38px;
    flex-wrap: wrap;
}

.nc-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    padding: 32px 22px 28px 22px;
    width: 300px;
    text-align: center;
    position: relative;
    transition: box-shadow 0.2s;
}

.nc-card:hover {
    box-shadow: 0 8px 32px rgba(233, 79, 55, 0.12);
}

.nc-icon {
    width: 48px;
    margin-bottom: 18px;
}

.nc-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #222;
}

.nc-card p {
    font-size: 1rem;
    color: #444;
    margin-bottom: 18px;
}

.nc-bar {
    height: 6px;
    width: 60px;
    background: #e94f37;
    border-radius: 3px;
    margin: 0 auto;
}

.nc-inscribete {
    font-size: 2rem;
    font-weight: 700;
    margin: 38px 0 18px 0;
    color: #222;
}

.nc-inscribete-destacado {
    color: #e94f37;
    font-weight: 900;
}

.nc-imgs {
    display: flex;
    gap: 32px;
    justify-content: center;
    margin-top: 18px;
    flex-wrap: wrap;
}

.nc-img {
    width: 320px;
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
    object-fit: cover;
}

.cursos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    justify-content: center;
    margin: 40px auto 0 auto;
    max-width: 900px
}

.curso-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow 0.2s;
}

.curso-card:hover {
    box-shadow: 0 8px 32px rgba(233, 79, 55, 0.12);
}

.curso-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.curso-info {
    padding: 22px 18px 18px 18px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.curso-info h3 {
    font-size: 1.18rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 6px;
    text-align: center;
}

.curso-sub {
    font-size: 0.98rem;
    color: #e94f37;
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
}

.curso-info ul {
    list-style: none;
    padding: 0;
    margin-bottom: 14px;
    width: 100%;
}

.curso-info ul li {
    font-size: 0.98rem;
    color: #444;
    border-bottom: 1px solid #eee;
    padding: 6px 0;
    text-align: center;
}

.curso-info ul li:last-child {
    border-bottom: none;
}

.curso-btn {
    background: #e94f37;
    color: #fff;
    border: none;
    padding: 8px 22px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.curso-btn:hover {
    background: #ffb7a8;
    color: #e94f37;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animated-title {
    position: relative;
    display: inline-block;
    overflow: hidden;
}

.animated-title span {
    display: inline-block;
    animation: slideIn 0.8s cubic-bezier(.77, 0, .18, 1) forwards;
    opacity: 0;
}

.animated-title span:nth-child(1) {
    animation-delay: 0.1s;
}

.animated-title span:nth-child(2) {
    animation-delay: 0.3s;
}

.animated-title span:nth-child(3) {
    animation-delay: 0.5s;
}

.animated-title span:nth-child(4) {
    animation-delay: 0.7s;
}

.animated-title span:nth-child(5) {
    animation-delay: 0.9s;
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }

    from {
        opacity: 0;
        transform: translateY(40px);
    }
}

.nc-card,
.curso-card,
.af-card {
    transition: box-shadow 0.3s, transform 0.3s;
}

.nc-card:hover,
.curso-card:hover,
.af-card:hover {
    box-shadow: 0 12px 32px rgba(233, 79, 55, 0.18);
    transform: translateY(-8px) scale(1.03);
}

button,
.curso-btn,
.af-btn,
.sn-btn {
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

button:hover,
.curso-btn:hover,
.af-btn:hover,
.sn-btn:hover {
    transform: scale(1.07);
}

.modal-overlay {
    animation: fadeIn 0.3s;
}

.modal-content {
    animation: modalPop 0.3s;
}

@keyframes modalPop {
    from {
        transform: scale(0.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

img.nc-img,
.curso-img,
.sn-img-main,
.sn-img-equipo,
.af-img {
    transition: box-shadow 0.3s, transform 0.3s;
}

img.nc-img:hover,
.curso-img:hover,
.sn-img-main:hover,
.sn-img-equipo:hover,
.af-img:hover {
    box-shadow: 0 8px 32px rgba(233, 79, 55, 0.18);
    transform: scale(1.04) rotate(-2deg);
}

.sn-listas ul li,
.af-card ul li,
.curso-info ul li {
    position: relative;
    left: -20px;
    opacity: 0;
    animation: listFadeIn 0.7s forwards;
}

.sn-listas ul li:nth-child(1),
.af-card ul li:nth-child(1),
.curso-info ul li:nth-child(1) {
    animation-delay: 0.1s;
}

.sn-listas ul li:nth-child(2),
.af-card ul li:nth-child(2),
.curso-info ul li:nth-child(2) {
    animation-delay: 0.2s;
}

.sn-listas ul li:nth-child(3),
.af-card ul li:nth-child(3),
.curso-info ul li:nth-child(3) {
    animation-delay: 0.3s;
}

.sn-listas ul li:nth-child(4),
.af-card ul li:nth-child(4),
.curso-info ul li:nth-child(4) {
    animation-delay: 0.4s;
}

.sn-listas ul li:nth-child(5),
.af-card ul li:nth-child(5),
.curso-info ul li:nth-child(5) {
    animation-delay: 0.5s;
}

.sn-listas ul li:nth-child(6),
.af-card ul li:nth-child(6),
.curso-info ul li:nth-child(6) {
    animation-delay: 0.6s;
}

@keyframes listFadeIn {
    to {
        left: 0;
        opacity: 1;
    }
}

.nc-bar {
    animation: barGrow 1s cubic-bezier(.77, 0, .18, 1) forwards;
}

@keyframes barGrow {
    from {
        width: 0;
    }

    to {
        width: 60px;
    }
}

@media (max-width: 900px) {
    .sn-container {
        flex-direction: column;
        gap: 32px;
    }

    .sn-imgs {
        align-items: center;
    }

    .sn-img-main,
    .sn-img-equipo {
        width: 100%;
        max-width: 340px;
    }

    .hero {
        flex-direction: column;
        gap: 20px;
        min-height: 340px;
        padding: 30px 10px;
    }

    .hero-img-left {
        max-width: 100%;
    }

    .hero-video {
        height: 220px;
    }

    .hero-content {
        margin: 0;
        text-align: center;
        max-width: 100%;
    }

    .af-container {
        flex-direction: column;
        gap: 28px;
    }

    .af-img {
        max-width: 100%;
        margin-bottom: -30px;
    }

    .af-info-card {
        width: 100%;
        margin-top: -20px;
    }

    .nc-cards {
        flex-direction: column;
        gap: 24px;
        align-items: center;
    }

    .nc-imgs {
        flex-direction: column;
        gap: 18px;
        align-items: center;
    }

    .nc-img {
        width: 98vw;
        max-width: 340px;
    }

    .cursos-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        max-width: 98vw;
    }

    .curso-img {
        height: 160px;
    }
}

@media (max-width: 700px) {
    .content {
        padding: 28px 12px 24px 12px;
        max-width: 98vw;
    }

    .modal-content h2,
    .modal-destacado {
        font-size: 2rem;
    }
}

.isometric-section {
    display: flex;
    height: 100vh;
    margin-top: -70px;
}

.iso-left {
    background-color: #020202;
    flex: 2;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 40px;
}

.iso-illustration {
    max-width: 90%;
    height: auto;
}

.iso-text {
    position: absolute;
    bottom: 30px;
    left: 40px;
    color: rgb(0, 0, 0);
    background: fixed;
}

.iso-text h2 {
    font-size: 2.5rem;
    font-weight: 300;
    line-height: 1.2;
}


.iso-text strong {
    font-weight: 600;
}

.iso-right {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.iso-box {

    flex: 1;
    color: white;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;

}

.iso-left,
.iso-box {
    transition: transform 1.5s ease;
}

.iso-left {
    position: relative;
    flex: 2;
    overflow: hidden;
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;

}

.iso-text h2 {
    color: black;
    font-size: 1.8rem;
    font-weight: 300;
    max-width: 400px;
    line-height: 1.4;
}

.iso-left img {
    max-width: 300px;
}

.iso-box {
    flex: 1;
    color: rgb(0, 0, 0);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    line-height: 1.4;
    gap: 10px;
}

.iso-box h4 {
    font-size: 0.75rem;
    letter-spacing: 1px;
    font-weight: bold;
    margin: 0;
    opacity: 0.8;
    
}

.iso-box p {
    font-size: 1.2rem;
    font-weight: 500;
    margin: 0;
    max-width: 300px;
}

.iso-box img {
    width: 70px;
    height: 70px;
    margin-bottom: 20px;
}

.vision {
    background-color: #e0dfdf;
}

.vision:hover {
    background-color: #fcfcfc;
}

.studio {
    background-color: #d81515;
}
.studio h4{
    color:white;
}
.studio:hover {
    background-color: #f81717;
}

.iso-box h4 {
    font-size: 0.8rem;
    letter-spacing: 1px;
    font-weight: bold;
    margin-bottom: 10px;

}


.iso-box:hover {
    transform: scale(1.02);
    z-index: 2;
}

.iso-box p {
    font-size: 1.3rem;
    font-weight: 300;
}

.bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    object-fit: fill;
    background-color: #ffffff;
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
    transition: background-color 1s ease;
}

.iso-left:hover .bg-overlay {
    background-color: rgba(0, 0, 0, 0);
}

.iso-text h2 {
    flex: 1;
    color: black;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    line-height: 1.4;


}

.iso-content {
    position: relative;
    z-index: 1;
    padding: 40px 60px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 600px;
    color: black;

    .iso-content {
        padding: 40px 80px;
    }
}

.iso-logo {
    width: px;
    margin-bottom: 20px;
}

.iso-text h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.iso-text p {
    font-size: 1.2rem;
    font-weight: 500;
    margin: 0;
    max-width: 300px;
    line-height: 1.4;
    padding-right: -100px;
}

@media (max-width: 768px) {

    .logo img {
        margin: 0 auto;
    }


    .menu-btns {
        flex-direction: column;
        align-items: center;
        margin: 0;
        gap: 12px;
    }

    .hero {
        flex-direction: column;
        height: auto;
        padding: 40px 20px;
        gap: 20px;
        text-align: center;
        background-position: center;
    }

    .hero-img-left,
    .hero-slider,
    .hero-content {
        max-width: 100%;
        flex: 1;
        margin: 0 auto;
    }

    .hero-slide-content h1,
    .hero h1 {
        font-size: 1.8em;
    }

    .hero-slide-content p,
    .hero p {
        font-size: 1em;
    }

    .sn-container,
    .af-container {
        flex-direction: column;
        padding: 0 20px;
    }

    .sn-imgs,
    .af-right {
        align-items: center;
    }

    .sn-img-main,
    .sn-img-equipo,
    .af-img {
        width: 100%;
        max-width: 100%;
    }

    .sn-btns {
        align-items: center;
    }

    .nc-cards,
    .cards {
        flex-direction: column;
        gap: 24px;
    }

    .cursos-grid {
        grid-template-columns: 1fr;
    }

    .nc-imgs {
        flex-direction: column;
        gap: 20px;
    }

    footer {
        font-size: 0.9em;
        padding: 12px;
    }

    .hero-arrow {
        display: none;
    }

    .modal-content {
        padding: 32px 20px;
    }

}

@media (max-width: 768px) {
    .isometric-section {
        flex-direction: column;
        height: auto;
    }

    .iso-left {
        height: 700px;
        position: relative;
        padding: 0;
        flex: none;
        width: 100%;
    }

    .bg-video {
        height: 100%;
        object-fit: fill;
    }

    .iso-logo {
        width: 100px;
        height: auto;
        margin-bottom: 12px;
    }

    .iso-text {
        position: absolute;
        bottom: 30px;
        left: 20px;
        right: 20px;
        color: white;
        font-size: 1rem;
    }

    .iso-right {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
        transform-origin: center top;
        transition: transform 0.3s ease-in-out;
        gap: 20px;
    }

    .iso-box {
        flex: 1 1 50%;
        padding: 24px;
        text-align: center;
        align-items: center;

    }

    .iso-box img {
        width: 50px;
        height: 50px;
        margin-bottom: 12px;
    }

    .sn-btns {
        align-items: center;
        justify-content: center;
    }

    .sn-btn {
        width: 90%;
        max-width: 200px;
        font-size: 0.9rem;
    }

    .iso-left {
        height: 500px;
        position: relative;
        padding: 0;
        display: flex;
        align-items: flex-end;
        justify-content: flex-start;
        gap: 20px;

    }

    .iso-text {
        width: 100%;
        padding: 20px;
        text-align: center;
        color: white;
        font-size: 1.1rem;
        line-height: 1.6;
        display: flex;
        flex-direction: column;
        align-items: center;
        background: none !important;
        gap: 20px;
    }

    .iso-logo {
        width: 100px;
        height: auto;
        margin-bottom: 12px;
    }
}

@media (hover: none) and (pointer: coarse) {
    .iso-right:active {
        transform: scale(1.03);
    }
}

.isometric-section {
    overflow: hidden;
}

.iso-box {
    transform-origin: center center;
    will-change: transform;
    overflow: hidden;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    transition: all 0.8s ease-in-out
}

.iso-box.studio .sn-btns,
.iso-box.studio img,
.iso-box.studio p,
.iso-box.studio h4 {
    max-width: 100%;
}

.sn-btn {
    transform-origin: center center;
}

.iso-box.expandida {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #fff;
    z-index: 9999;
    padding: 60px;
    overflow-y: auto;
    transition: all 1.0s ease-in-out;
    transform: none !important;
    animation: none !important;
    pointer-events: auto;
    touch-action: none;
}

.vision-expandido {
    display: none;
    margin-top: 20px;
}

.iso-box.expandida .vision-expandido {
    display: block;
}

.iso-box.expandida>*:not(.vision-expandido):not(.close-expanded) {
    display: none;
}

.iso-box .close-expanded {
    display: none;
}

.iso-box.expandida .close-expanded {
    display: block;
    background: none;
    border: none;
    font-size: 2rem;
    position: absolute;
    top: 20px;
    right: 30px;
    cursor: pointer;
    z-index: 10000;

}

.iso-box.expandida .vision-expandido {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 30px;
    overflow-x: auto;
    padding-top: 40px;
    padding-bottom: 40px;
}

.iso-box.expandida .vision-expandido .modal-content {
    transform: scale(0.95);
    min-width: 340px;
    max-width: 360px;
}

.iso-box.expandida .vision-expandido .curso-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.iso-box.expandida .vision-expandido .curso-card {
    padding: 0;
    overflow: hidden;
    border-radius: 14px;
}

.iso-box.expandida .vision-expandido .modal-content {
    min-width: 380px;
    max-width: 420px;
}

@media (max-width: 768px) {
    .carousel-container {
        position: relative;
        width: 100%;
        overflow: hidden;
        display: block;
        margin: 0 auto;
    }

    .carousel-track {
        display: flex;
        transition: transform 0.4s ease;
        width: 300%;
    }

    .curso-slide {
        min-width: 100%;
        flex-shrink: 0;
        box-sizing: border-box;
        padding: 0 10px;
    }

    .carousel-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
        background: rgba(0, 0, 0, 0.5);
        color: white;
        border: none;
        font-size: 2rem;
        padding: 6px 12px;
        cursor: pointer;
        border-radius: 8px;
    }

    .carousel-btn.left {
        left: 10px;
    }

    .carousel-btn.right {
        right: 10px;
    }

    .iso-box.expandida .modal-content {
        max-width: 100%;
    }
}

.iso-box.expandida {
    touch-action: auto;
    pointer-events: auto;
}

#click-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

#click-loader img {
    width: 80px;
    height: 80px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

#page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    pointer-events: none;
    transform: translateX(100%);
    transition: none;
}

/* === BLANCO DERECHA → IZQUIERDA === */
#page-transition.slide-right-white {
    background: white;
    transform: translateX(100%);
}

#page-transition.slide-right-white.active {
    transition: transform 0.7s ease-in-out;
    transform: translateX(0);
}

/* === ROJO DERECHA → IZQUIERDA === */
#page-transition.slide-right-red {
    background: red;
    transform: translateX(100%);
}

#page-transition.slide-right-red.active {
    transition: transform 0.7s ease-in-out;
    transform: translateX(0);
}

/* === BLANCO IZQUIERDA → DERECHA === */
#page-transition.slide-left-white {
    background: white;
    transform: translateX(-100%);
}

#page-transition.slide-left-white.active {
    transition: transform 0.7s ease-in-out;
    transform: translateX(0);
}

.transition-btn {
    display: inline-block;
    text-align: center;
    min-width: 180px;
    padding: 10px 15px;
    background-color: #e94f37;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
}

.transition-btn:hover {
    background-color: #ffb7a8;
    color: #e94f37;
    transform: translateX(5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.slide-right-white:hover {
    background-color: #fff !important;
    color: #e94f37 !important;
}

.bubble {
    position: fixed;
    bottom: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e94f37;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s ease;
    z-index: 1000;
}

;

.bubble img {
    width: 28px;
    height: 28px;
}

.bubble-whatsapp {
    right: 80px;
}

.bubble-whatsapp:hover {
    background: #ffb7a8;
    color: #e94f37;
}

.bubble-chatbot {
    right: 20px;
}

.bubble-chatbot:hover {
    background: #ffb7a8;
    color: #e94f37;
}

.bubble:hover {
    transform: scale(1.1);
}

.iso-text p {
    white-space: nowrap;
    font-size: 20px;
    padding: 12px 16px;
    border-radius: 6px;
    display: inline-block;
    line-height: 1.5;
    vertical-align: middle;
}

.text-bg {
    background-color: rgba(224, 223, 223, 0.2);
    padding: 12px 16px;
    border-radius: 6px;
    display: inline-block;
    line-height: 1.5;
}


@media (max-width: 600px) {
    .bubble-whatsapp {
        right: 70px;
        bottom: 15px;
    }

    .bubble-chatbot {
        right: 15px;
        bottom: 15px;
    }

    .iso-text p {
        white-space: initial;
        font-size: 15px;
    }

    .iso-text img {
        width: 100px;
        height: 50px;
    }


}

.floating-bubble-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
}

.main-bubble {
    width: 55px;
    height: 55px;
    background-color: #e94f37;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.main-bubble img {
    width: 28px;
    height: 28px;
}

.sub-bubbles {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.sub-bubbles a {
    width: 50px;
    height: 50px;
    background-color: #e94f37;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.sub-bubbles a img {
    width: 28px;
    height: 28px;
}

.floating-bubble-container.active .sub-bubbles {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-10px);
}

.floating-bubble-container.active .main-bubble img {
    content: url('/image/logos/logoClose.png');
}

.top-oval-bubble-text {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    background: linear-gradient(135deg, #e94f37, #ffb7a8);
    color: #fff;
    font-family: 'DM Serif Text', serif;
    font-size: 16px;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.top-oval-bubble-text:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.top-oval-bubble-text1 {
    position: fixed;
    top: 20px;
    right: 210px;
    z-index: 9999;
    background: linear-gradient(135deg, #e94f37, #ffb7a8);
    color: #fff;
    font-family: 'DM Serif Text', serif;
    font-size: 16px;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.top-oval-bubble-text1:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

@media (max-width: 600px) {
    .top-oval-bubble-text1 {
        position: fixed;
        top: 70px;
        right: 20px;
        z-index: 9999;
        background: linear-gradient(135deg, #e94f37, #ffb7a8);
        color: #fff;
        font-family: 'DM Serif Text', serif;
        font-size: 16px;
        padding: 10px 20px;
        border-radius: 50px;
        text-decoration: none;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

}

.main-nav ul {
    display: flex;
    gap: 48px;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: flex-end;
}

.nav-link {
    font-family: 'DM Serif Text', serif;
    font-size: 1.25rem;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: color 0.2s;
}

.nav-link.active,
.nav-link:hover {
    color: #e94f37;
}

.nav-link.active::after,
.nav-link:hover::after {
    content: '';
    display: block;
    margin: 0 auto;
    width: 70%;
    height: 2px;
    background: #e94f37;
    border-radius: 2px;
    margin-top: 4px;
}

.header-btn-academia {
    background: #fff;
    color: #e94f37;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.15rem;
    font-weight: bold;
    border: none;
    border-radius: 28px;
    padding: 12px 36px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(233, 79, 55, 0.08);
    transition: background 0.2s, color 0.2s;
}

.header-btn-academia:hover {
    background: #e94f37;
    color: #fff;
}



.main-footer {
    background: #111;
    color: #fff;
    padding: 28px 0 16px 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.98rem;
}

.footer-top {
    text-align: center;
    margin-bottom: 18px;
}

.footer-logo {
    height: 38px;
    margin-bottom: 8px;
}

.footer-desc {
    margin-bottom: 14px;
    font-size: 1.05rem;
}

.footer-social a {
    display: inline-block;
    margin: 0 8px;
}

.footer-social img {
    height: 32px;
    width: 32px;
    border-radius: 50%;
    background: #e94f37;
    padding: 4px;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 32px;
    margin-top: 10px;
}

.footer-links>div {
    min-width: 140px;
    max-width: 220px;
}

.footer-links h4 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: #e94f37;
    font-weight: bold;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 6px;
}

.footer-links a,
.footer-links span {
    color: #fff;
    text-decoration: none;
    font-size: 0.97rem;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-socio {
    height: 32px;
    margin-right: 6px;
    vertical-align: middle;
}

@media (max-width: 900px) {
    .main-header {
        height: auto;
        flex-direction: column;
        padding: 10px 8px;
        text-align: center;
    }

    @media (max-width: 900px) {
        .main-header {
            height: auto;
            flex-direction: column;
            padding: 10px 8px;
            text-align: center;
        }

        .main-nav {
            flex-direction: row;
            width: 100%;
            justify-content: center;
            align-items: center;
            padding: 0 8px;
        }

        .main-nav ul {
            flex-direction: row;
            gap: 24px;
            display: flex;
            justify-content: center;
            align-items: center;
            width: 100%;
            margin: 0;
            padding: 0;
        }

        .header-btn-academia {
            margin-top: 0;
            width: auto;
            text-align: center;
            padding: 12px 18px;
        }
    }

    .header-btn-academia {
        margin-top: 12px;
        width: 100%;
        text-align: center;
        padding: 12px 0;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 18px;
    }
}

.main-header {
    width: 100%;
    background: transparent;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    box-shadow: none;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
}

.header-img {
    min-height: 5px;
    min-width: 5px;
    max-height: 44px;
    max-width: 44px;
    height: 44px;
    width: 44px;
    display: flex;
}

.header-left {
    display: flex;
    align-items: center;
}

.header-logo {
    height: 44px;
    width: auto;
    margin-right: 18px;
}

.main-header,
.main-header * {
    color: #fff !important;
    fill: #fff !important;
}

@media (max-width: 900px) {
    .iso-logo {
        display: none !important;
    }

    .header-title {
        display: none !important;

    }
}

.nav-link-header:hover,
.nav-link-header:focus {
    text-decoration: underline;
    color: #c63c28 !important;
}

.main-header.scrolled {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: background 0.3s, box-shadow 0.3s;
}

.main-header.scrolled,
.main-header.scrolled * {
    color: #e94f37 !important;
    fill: #e94f37 !important;
}

.main-header.scrolled {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.main-header.scrolled,
.main-header.scrolled * {
    color: #e94f37 !important;
    fill: #e94f37 !important;
}

.nav-link-header:hover,
.nav-link-header:focus {
    text-decoration: underline;
    color: #c63c28 !important;
}

@media (max-width: 900px) {

    .header-logo,
    .header-title {
        display: none !important;
    }
}

@media (max-width: 600px) {
    .iso-right {
        flex-direction: row !important;
        flex-wrap: wrap;
        gap: 0;
        width: 100%;
        justify-content: center;
        align-items: stretch;
        display: flex;
    }

    .iso-box {
        flex: 1 1 50%;
        min-width: 160px;
        max-width: 50vw;
        margin: 0;
        padding: 18px;
        text-align: center;
        align-items: center;
        justify-content: center;
        display: flex;
        flex-direction: column;
        border-radius: 0;
    }
}

.main-header {
    width: 100%;
    background: #fff;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: top 0.3s ease;
}



.nav-link-header:hover {
    color: #c63c28 !important;
    text-shadow: 0 0 1px rgba(0, 0, 0, 0.05);
}

.main-header.scrolled {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

@media (max-width: 900px) {
    .main-header.hide-on-scroll {
        top: -80px;
    }
}

#main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 0px;
}

#main-header.scrolled {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.botones-header {
    display: flex;
    align-items: center;
}

.nav-link-header {
    color: rgb(255, 0, 0);
    margin: 0 15px;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

#main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    padding: 10px 20px;
    position: relative;
    z-index: 1000;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
}

.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-menu a {
    text-decoration: none;
    color: black;
    font-weight: bold;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu a {
        color: white;

    }

    .nav-menu {
        position: absolute;
        top: 60px;
        right: 0;
        background: transparent;
        width: 220px;
        border-left: 1px solid transparent;
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 0;
        padding: 0;
        margin: 0;
    }

    .nav-menu li {
        border-bottom: 1px solid transparent;
    }
 
    .nav-menu.active {
        transform: translateX(0);
    }
}

/* ---------- MODAL: reemplazo visual más limpio y agradable ---------- */

/* contenedor general */
.dual-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.56);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 200000;
  backdrop-filter: blur(3px);
}
.dual-modal-overlay.visible { display: flex; }

/* ancho máximo total para evitar overflow y centrar mejor */
.dual-modal {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  max-width: 1120px; /* aumentado para permitir tarjetas más anchas */
  box-sizing: border-box;
  padding: 8px;
}

/* tarjeta (cada card) - aumentado ligeramente el ancho */
.modal-card {
  background: linear-gradient(180deg,#fff,#fff);
  color: #222;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 12px 30px rgba(13,13,13,0.12);
  flex: 1 1 52%; /* antes 46% → ahora 52% para más ancho */
  min-width: 300px; /* un poco más amplio */
  max-width: 540px; /* permite tarjetas más grandes en pantallas anchas */
  position: relative;
  display: flex;
  gap: 14px;
  box-sizing: border-box;

  /* entrada (controlada por .show desde JS) */
  opacity: 0;
  transform: translateY(8px) scale(0.996);
  transition: transform 360ms cubic-bezier(.2,.9,.2,1), opacity 260ms ease, box-shadow 260ms ease;
}
.modal-card.show {
  opacity: 1;
  transform: none;
  box-shadow: 0 20px 44px rgba(13,13,13,0.14);
}

/* media (imagen): más pequeña para no empujar todo */
.modal-media {
  flex: 0 0 140px;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(180deg, #f7f7f7, #fff);
  box-shadow: 0 8px 22px rgba(0,0,0,0.06);
}
.modal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 3/4;
}

/* contenido text */
.modal-content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
  padding: 2px 4px;
}

/* título más sobrio pero llamativo */
.modal-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  color: #c93b27;
  margin: 0;
  line-height: 1.05;
}

/* badge pequeño */
.modal-badge {
  display: inline-block;
  background: linear-gradient(90deg,#ff7a62,#e94f37);
  color: #fff;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.78rem;
  box-shadow: 0 6px 14px rgba(233,79,55,0.08);
  align-self: flex-start;
}

/* descripción limpia */
.modal-desc {
  font-family: 'Lato', sans-serif;
  font-size: 0.98rem;
  color: #444;
  margin: 0;
}

/* acciones: columna, items con espacio y sin bordes feos */
.modal-actions {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}

/* botones: estilo moderno (sin borde negro), sombras suaves */
.modal-btn {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: linear-gradient(180deg,#e94f37,#d43a2a);
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 0.98rem;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 8px 20px rgba(208,70,55,0.12);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.modal-btn:hover,
.modal-btn:focus {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(208,70,55,0.12);
  background: linear-gradient(180deg,#ff725a,#d53a2a);
}
.modal-btn:active { transform: translateY(0); }

/* quitar contorno/outline feo en algunos navegadores */
.modal-btn:focus { outline: 3px solid rgba(233,79,55,0.14); outline-offset: 2px; }

/* dropdown toggle: estilo consistente con modal-btn, flecha discreta */
.dropdown-toggle {
  display: block;
  text-align: left;
  padding: 10px 14px;
  border-radius: 10px;
  background: linear-gradient(180deg,#fff,#fff);
  border: 1px solid rgba(0,0,0,0.06);
  color: #222;
  font-weight: 700;
  cursor: pointer;
}
.dropdown-toggle::after {
  content: "▾";
  float: right;
  opacity: 0.6;
  transition: transform .18s ease;
}
.dropdown.open .dropdown-toggle::after { transform: rotate(180deg); }

/* submenu en flujo, transición suave que empuja contenido */
.dropdown-menu {
  display: block;
  max-height: 0;
  overflow: hidden;
  margin-top: 8px;
  gap: 8px;
  flex-direction: column;
  transition: max-height 320ms cubic-bezier(.2,.9,.2,1), opacity 220ms ease;
  opacity: 0;
}
.dropdown.open .dropdown-menu {
  opacity: 1;
  max-height: 420px;
}
.dropdown-menu .modal-btn {
  background: #fff;
  color: #222;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 6px 16px rgba(0,0,0,0.04);
  font-weight: 700;
}

/* accents por tarjeta */
.offer-laboral { border-left: 6px solid #e94f37; }
.offer-educativa { border-left: 6px solid #d85e2a; }

/* FORM IFRAME (misma vista) */
.form-modal {
  position: fixed;
  inset: 0;
  background: rgba(6,6,6,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 300000;
}
.form-modal.visible { display:flex; }
.form-modal-card {
  width: 95%;
  max-width: 980px;
  height: 86vh;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.form-modal-header {
  flex: 0 0 auto;
  display: flex;
  gap: 8px;
  padding: 12px;
  background: #fafafa;
  border-bottom: 1px solid #eee;
  justify-content: flex-end;
  box-sizing: border-box;
}
.form-modal-body { flex:1 1 auto; overflow:auto; }
.form-modal-body iframe { width:100%; height:100%; border:0; display:block; }

/* responsive: apilar y ajustar tamaños en móvil */
@media (max-width: 880px) {
  .dual-modal { flex-direction: column; gap: 12px; max-width: 92vw; padding: 6px; }
  .modal-card { flex-direction: column; padding: 12px; max-width: 100%; min-width: auto; }
  .modal-media { flex: 0 0 auto; aspect-ratio: 16/9; width: 100%; border-radius: 10px; }
  .modal-title { font-size: 1.25rem; }
  .modal-actions .modal-btn, .dropdown-toggle { width: 100%; box-sizing: border-box; }
  .dropdown-menu .modal-btn { width: 100%; }
}

/* pequeño polish: evitar overflow horizontal y mejorar lectura */
.dual-modal, .modal-card, .modal-media, .modal-content { box-sizing: border-box; }
html, body { -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale; }