/* LMS Section styles from landing-eduid */
.lms-section {
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.lms-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 1.25rem;
}

.lms-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem;
    margin: 3rem 0;
}

.lms-logos a {
    display: inline-block;
    line-height: 0;
}

.lms-logos img {
    height: 40px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition:
        filter 0.3s ease,
        opacity 0.3s ease;
}

.lms-logos a:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.lms-cta {
    margin: 1.5rem 0 0;
    font-size: 0.95rem;
    color: var(--text-dark);
    max-width: 600px;
    text-align: center;
    font-weight: 500;
}
.ai-face .flip-arrow {
    position: absolute;
    right: 18px;
    bottom: 18px;
    width: 36px;
    height: 36px;
    z-index: 10 !important;
    pointer-events: none;
}
.ai-face .flip-arrow svg {
    display: block;
    width: 100%;
    height: 100%;
}
.problem-solution-horizontal {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 3.5rem;
    max-width: 2000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.problem-solution-horizontal .problem-flip-card {
    flex: 1 1 620px;
    min-width: 340px;
    max-width: 720px;
}

.problem-solution-image-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 700px;
    min-width: 340px;
    max-width: 900px;
}

.solution-image-horizontal {
    width: 100%;
    max-width: 900px;
    height: auto;
    border-radius: 16px;
    object-fit: contain;
    cursor: pointer;
    transition:
        transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.3s;
}

.solution-image-horizontal:hover {
    transform: scale(1.05);
    z-index: 2;
}

@media (max-width: 1200px) {
    .problem-solution-horizontal {
        gap: 2rem;
        max-width: 100vw;
    }
    .problem-solution-image-center {
        max-width: 480px;
    }
    .solution-image-horizontal {
        max-width: 480px;
    }
    .problem-solution-horizontal .problem-flip-card {
        max-width: 520px;
    }
}
.caos-title {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 2.5rem;
    background: linear-gradient(315deg, var(--button) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (max-width: 768px) {
    .caos-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .caos-title {
        font-size: 1.3rem;
    }
}
* {
    font-family:
        ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji',
        'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

:root {
    --primary: #e7501e;
    --button: #536876;
    --background: #fbfdfd;
    --text-dark: #2b2f38;
    --text-light: #555555;
}

body {
    background-color: var(--background);
    height: 300vh;
}

header {
    height: 8vh;
    width: 100%;
    position: fixed;
    top: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 600;
    background-color: rgb(240, 240, 240);
    padding: 0.5rem 7rem;
    z-index: 100;
    transition:
        box-shadow 0.3s ease,
        backdrop-filter 0.3s ease;
}

header img {
    height: 100%;
    object-fit: contain;
}

header.scrolled {
    box-shadow: 0 4px 20px rgba(20, 23, 33, 0.1);
    backdrop-filter: blur(10px);
    background-color: rgba(240, 240, 240, 0.95);
}

.menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.menu a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.menu a:hover {
    color: var(--primary);
}

@media (max-width: 768px) {
    .menu {
        gap: 1rem;
    }

    .menu a {
        font-size: 0.85rem;
    }

    header {
        padding: 0.5rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .menu {
        gap: 0.5rem;
    }

    .menu a {
        font-size: 0.75rem;
    }

    header {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        height: 7vh;
    }
}

.language-select {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

@media (max-width: 480px) {
    .language-select {
        gap: 0.4rem;
    }
}

.lang-btn {
    font-size: 1.2rem;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
    padding: 0;
    opacity: 0.6;
}

.lang-btn:hover {
    opacity: 0.8;
}

.lang-btn.active {
    opacity: 1;
}

.lang-btn:focus {
    outline: none;
}

@media (max-width: 480px) {
    .lang-btn {
        font-size: 1rem;
    }
}

main {
    margin-top: 8vh;
    display: flex;
    flex-direction: column;
}

@media (max-width: 480px) {
    main {
        margin-top: 7vh;
    }
}

.front-page {
    min-height: 92vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 7rem;
    animation: fadeIn 0.6s ease-in;
}

.front-page-image,
.profile-image,
.ai-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-square-placeholder {
    width: min(100%, 420px);
    aspect-ratio: 1;
    border: 2px dashed #b0b8c4;
    border-radius: 12px;
    background: linear-gradient(135deg, #e8eaef 0%, #d8dce6 100%);
    color: #6b7280;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
}

.profile-image .image-square-placeholder,
.ai-visual .image-square-placeholder {
    width: 100%;
}

.ai-visual .ai-image-frame {
    border: none;
    border-radius: 0;
    background: none;
    padding: 0;
    overflow: hidden;
}

.ai-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.ai-image:hover {
    transform: scale(1.08);
}

.profile-image .solution-image-frame {
    border: none;
    border-radius: 0;
    background: none;
    padding: 0;
    overflow: hidden;
}

.solution-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.solution-image:hover {
    transform: scale(1.08);
}

@media (max-width: 480px) {
    .front-page {
        padding: 2rem 1.5rem;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.front-page h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.3;
    background: linear-gradient(135deg, var(--primary) 0%, var(--button) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    will-change: transform;
    padding-bottom: 0.2rem;
}

.front-page-content {
    max-width: 760px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.front-page .subtitle {
    font-size: 1.35rem;
    color: var(--text-light);
    margin: 0;
    margin-bottom: 2.25rem;
    line-height: 1.65;
    font-weight: 500;
    max-width: 680px;
    padding: 0;
    will-change: opacity, color;
}

.front-page-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 0.25rem;
}

.cta-button {
    text-decoration: none;
    background-color: var(--button);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(83, 104, 118, 0.25);
    letter-spacing: 0.3px;
}

.cta-button:hover {
    background-color: #465965;
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(83, 104, 118, 0.35);
}

.cta-button:active {
    transform: translateY(-1px);
}

.cta-button:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .front-page h1 {
        font-size: 2.5rem;
    }

    .front-page .subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.75rem;
    }

    .cta-button {
        padding: 0.85rem 2rem;
        font-size: 1rem;
    }

    .front-page {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .front-page h1 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .front-page .subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }

    .cta-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
        max-width: 300px;
    }

    .front-page {
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 480px) {
    .front-page h1 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .front-page .subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .cta-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
        max-width: 300px;
    }
}

.profiles-section {
    padding: 6rem 3rem;
    background: linear-gradient(180deg, var(--background) 0%, #f0f2f5 100%);
}

.profiles-section:nth-child(3) {
    background: white;
}

.profiles-section:nth-child(4) {
    background: #f9fafb;
}

.profile-row {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 0 2rem;
}

.profile-row + .profile-row {
    margin-top: 3rem;
}

.problem-solution-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: center;
}

.problem-solution-texts {
    display: grid;
    gap: 1.5rem;
}

.problem-flip-card {
    position: relative;
    perspective: 1200px;
    min-height: 220px;
}

/* Flecha indicadora en la esquina inferior derecha */
.flip-arrow {
    position: absolute;
    right: 18px;
    bottom: 18px;
    width: 36px;
    height: 36px;
    z-index: 2;
    pointer-events: none;
    transition: opacity 0.2s;
}
.problem-flip-face .flip-arrow {
    right: 18px;
    bottom: 18px;
    width: 36px;
    height: 36px;
}
.admin-flip-face .flip-arrow {
    right: 12px;
    bottom: 12px;
    width: 30px;
    height: 30px;
}

.problem-flip-card-inner {
    position: relative;
    width: 100%;
    min-height: 220px;
    transform-style: preserve-3d;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.problem-flip-card:hover .problem-flip-card-inner {
    transform: rotateY(180deg);
}

.problem-flip-face {
    position: absolute;
    inset: 0;
    padding: 1.6rem;
    border-radius: 18px;
    border: 1px solid transparent;
    backface-visibility: hidden;
    background:
        linear-gradient(
                160deg,
                rgba(255, 248, 242, 0.95),
                rgba(241, 250, 255, 0.94) 55%,
                rgba(245, 246, 255, 0.95)
            )
            padding-box,
        linear-gradient(
                135deg,
                rgba(231, 80, 30, 0.75),
                rgba(255, 159, 67, 0.72),
                rgba(31, 126, 171, 0.7),
                rgba(83, 104, 118, 0.72)
            )
            border-box;
    box-shadow:
        0 14px 32px rgba(47, 62, 72, 0.17),
        0 0 0 1px rgba(255, 255, 255, 0.75) inset,
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.problem-flip-front h3,
.problem-flip-back h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
}

.problem-flip-front p,
.problem-flip-back p {
    color: var(--text-light);
    line-height: 1.65;
    margin: 0;
}

.problem-flip-back {
    transform: rotateY(180deg);
    background:
        linear-gradient(
                160deg,
                rgba(241, 250, 255, 0.96),
                rgba(250, 244, 239, 0.95) 60%,
                rgba(245, 247, 255, 0.96)
            )
            padding-box,
        linear-gradient(
                135deg,
                rgba(31, 126, 171, 0.72),
                rgba(83, 104, 118, 0.7),
                rgba(231, 80, 30, 0.72)
            )
            border-box;
}

.solution-image-column {
    align-self: stretch;
}

.profile-row-reverse {
    direction: rtl;
}

.profile-row-reverse > * {
    direction: ltr;
}

.profile-image-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, #e8eaef 0%, #d8dce6 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #999;
    font-weight: 600;
    border: 2px dashed #b0b8c4;
    position: relative;
}

.profile-image-placeholder::after {
    content: 'Imagen';
    position: absolute;
}

.profile-image {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profiles-section#students .profile-gallery .profile-image:nth-child(1) {
    --tilt: -15deg;
}

.profiles-section#students .profile-gallery .profile-image:nth-child(2) {
    --tilt: 0deg;
}

.profiles-section#students .profile-gallery .profile-image:nth-child(3) {
    --tilt: 15deg;
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(17, 20, 26, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.2s ease,
        visibility 0.2s ease;
    z-index: 1000;
    padding: 2rem;
}

.lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.lightbox-image {
    max-width: min(900px, 90vw);
    max-height: 85vh;
    width: 100%;
    height: auto;
    border-radius: 16px;
    background: white;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: #1b1f26;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.lightbox-close:hover {
    background: white;
}

@media (max-width: 480px) {
    .lightbox {
        padding: 1rem;
    }

    .lightbox-close {
        top: 16px;
        right: 16px;
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}

.profiles-section .profile-content {
    position: relative;
    padding: 1.6rem;
    border-radius: 18px;
    border: 1px solid transparent;
    background:
        linear-gradient(
                160deg,
                rgba(255, 248, 242, 0.95),
                rgba(241, 250, 255, 0.94) 55%,
                rgba(245, 246, 255, 0.95)
            )
            padding-box,
        linear-gradient(
                135deg,
                rgba(231, 80, 30, 0.75),
                rgba(255, 159, 67, 0.72),
                rgba(31, 126, 171, 0.7),
                rgba(83, 104, 118, 0.72)
            )
            border-box;
    box-shadow:
        0 14px 32px rgba(47, 62, 72, 0.17),
        0 0 0 1px rgba(255, 255, 255, 0.75) inset,
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
    overflow: visible;
}

.profiles-section .profile-content::before {
    content: '';
    position: absolute;
    inset: -16px;
    border-radius: 24px;
    background:
        radial-gradient(
            circle at 18% 20%,
            rgba(231, 80, 30, 0.34),
            transparent 58%
        ),
        radial-gradient(
            circle at 82% 75%,
            rgba(31, 126, 171, 0.3),
            transparent 54%
        ),
        radial-gradient(
            circle at 50% 100%,
            rgba(255, 159, 67, 0.22),
            transparent 60%
        );
    filter: blur(20px);
    z-index: -1;
    pointer-events: none;
}

.profile-content h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--button));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.profile-content .profile-tagline {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.profile-content .profile-description {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
}

.profile-gallery {
    max-width: 1200px;
    margin: 3rem auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 0 2rem;
    width: min(100%, 320px);
}

.ai-visual .image-square-placeholder {
    width: min(100%, 600px);
    margin: 0 auto;
}

.profile-gallery .profile-image-placeholder {
    width: 100%;
    aspect-ratio: 1;
}

@media (max-width: 768px) {
    .profiles-section {
        padding: 3rem 1rem;
    }

    .problem-solution-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0;
    }

    .problem-solution-texts {
        gap: 1rem;
    }

    .problem-flip-card,
    .problem-flip-card-inner {
        min-height: 200px;
    }

    .problem-flip-face {
        padding: 1.3rem;
    }

    .problem-flip-front h3,
    .problem-flip-back h4 {
        font-size: 1.25rem;
    }

    .problem-flip-front p,
    .problem-flip-back p {
        font-size: 0.95rem;
    }

    .profile-row {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0;
    }

    .profile-row-reverse {
        direction: ltr;
    }

    .profile-content h2 {
        font-size: 1.5rem;
    }

    .profile-content .profile-tagline {
        font-size: 1.1rem;
    }

    .profile-content .profile-description {
        font-size: 0.95rem;
    }

    .profile-gallery {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0;
        margin-left: 0;
        margin-right: 0;
    }
}

@media (max-width: 480px) {
    .profiles-section {
        padding: 2rem 1rem;
    }

    .profile-content h2 {
        font-size: 1.3rem;
    }

    .profile-content .profile-tagline {
        font-size: 1rem;
    }

    .profile-content .profile-description {
        font-size: 0.9rem;
    }

    .profile-gallery {
        gap: 1rem;
        margin: 2rem auto 0;
    }
}

.admin-section {
    padding: 6rem 7rem;
    background: linear-gradient(180deg, #f9fafb 0%, #f3f6f9 100%);
    border-top: 4px solid var(--primary);
}

.admin-container {
    max-width: 1200px;
    margin: 0 auto;
}

.admin-section h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    text-align: left;
}

.admin-intro {
    color: var(--text-light);
    line-height: 1.7;
    max-width: 900px;
    margin-bottom: 2.2rem;
}

.admin-visual {
    margin-bottom: 2rem;
}

.admin-image-frame {
    width: min(100%, 760px);
    aspect-ratio: 16 / 7;
    margin: 0 auto;
    border: none;
    border-radius: 0;
    background: none;
    padding: 0;
    overflow: hidden;
}

.admin-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.admin-image:hover {
    transform: scale(1.08);
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.admin-flip-card {
    perspective: 1200px;
    min-height: 210px;
}

.admin-flip-card-inner {
    position: relative;
    width: 100%;
    min-height: 210px;
    transform-style: preserve-3d;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.admin-flip-card:hover .admin-flip-card-inner {
    transform: rotateY(180deg);
}

.admin-flip-face {
    position: absolute;
    inset: 0;
    padding: 1.1rem;
    border-radius: 12px;
    border: 1px solid transparent;
    backface-visibility: hidden;
    background:
        linear-gradient(
                160deg,
                rgba(255, 248, 242, 0.95),
                rgba(241, 250, 255, 0.94) 55%,
                rgba(245, 246, 255, 0.95)
            )
            padding-box,
        linear-gradient(
                135deg,
                rgba(231, 80, 30, 0.75),
                rgba(255, 159, 67, 0.72),
                rgba(31, 126, 171, 0.7),
                rgba(83, 104, 118, 0.72)
            )
            border-box;
    box-shadow:
        0 10px 24px rgba(20, 23, 33, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.75) inset;
}

.admin-flip-back {
    transform: rotateY(180deg);
    background:
        linear-gradient(
                160deg,
                rgba(241, 250, 255, 0.96),
                rgba(250, 244, 239, 0.95) 60%,
                rgba(245, 247, 255, 0.96)
            )
            padding-box,
        linear-gradient(
                135deg,
                rgba(31, 126, 171, 0.72),
                rgba(83, 104, 118, 0.7),
                rgba(231, 80, 30, 0.72)
            )
            border-box;
}

.admin-flip-front h3,
.admin-flip-back h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.55rem;
}

.admin-flip-front p,
.admin-flip-back p {
    font-size: 0.92rem;
    color: var(--text-light);
    line-height: 1.55;
    margin: 0;
}

@media (max-width: 1024px) {
    .admin-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .admin-section {
        padding: 3rem 1rem;
    }

    .admin-section h2 {
        font-size: 1.8rem;
    }

    .admin-intro {
        margin-bottom: 1.6rem;
    }

    .admin-flip-card,
    .admin-flip-card-inner {
        min-height: 190px;
    }
}

@media (max-width: 480px) {
    .admin-section {
        padding: 2rem 1rem;
    }

    .admin-section h2 {
        font-size: 1.45rem;
    }

    .admin-grid {
        grid-template-columns: 1fr;
    }

    .admin-image-frame {
        aspect-ratio: 16 / 9;
    }
}

.ai-section {
    padding: 6rem 7rem;
    background: white;
    border-top: 4px solid var(--primary);
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

@media (max-width: 768px) {
    .ai-section {
        margin: 0;
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .ai-section {
        padding: 2rem 1rem;
    }
}

.ai-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.ai-image-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, #e8eaef 0%, #d8dce6 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #999;
    font-weight: 600;
    border: 2px dashed #b0b8c4;
    position: relative;
}

.ai-image-placeholder::after {
    content: 'Imagen';
    position: absolute;
}

.ai-content {
    position: relative;
    perspective: 1200px;
    min-height: 420px;
}

.ai-content-inner {
    position: relative;
    width: 100%;
    min-height: 420px;
    transform-style: preserve-3d;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.ai-content:hover .ai-content-inner {
    transform: rotateY(180deg);
}

.ai-face {
    position: absolute;
    inset: 0;
    padding: 1.6rem;
    border-radius: 18px;
    border: 1px solid transparent;
    backface-visibility: hidden;
    background:
        linear-gradient(
                160deg,
                rgba(255, 248, 242, 0.95),
                rgba(241, 250, 255, 0.94) 55%,
                rgba(245, 246, 255, 0.95)
            )
            padding-box,
        linear-gradient(
                135deg,
                rgba(231, 80, 30, 0.75),
                rgba(255, 159, 67, 0.72),
                rgba(31, 126, 171, 0.7),
                rgba(83, 104, 118, 0.72)
            )
            border-box;
    box-shadow:
        0 14px 32px rgba(47, 62, 72, 0.17),
        0 0 0 1px rgba(255, 255, 255, 0.75) inset,
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.ai-face::before {
    content: none;
}

.ai-content h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.ai-content p {
    color: var(--text-light);
    line-height: 1.8;
    margin: 0;
}

.ai-features {
    margin-top: 1rem;
    padding-left: 0;
    list-style-position: inside;
    color: var(--text-light);
    line-height: 1.8;
}

.ai-back {
    transform: rotateY(180deg);
    background:
        linear-gradient(
                160deg,
                rgba(241, 250, 255, 0.96),
                rgba(250, 244, 239, 0.95) 60%,
                rgba(245, 247, 255, 0.96)
            )
            padding-box,
        linear-gradient(
                135deg,
                rgba(31, 126, 171, 0.72),
                rgba(83, 104, 118, 0.7),
                rgba(231, 80, 30, 0.72)
            )
            border-box;
}

.ai-back h3 {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.ai-back p {
    margin-bottom: 0.8rem;
}

.ai-back-features {
    margin-top: 0.4rem;
    padding-left: 0;
    list-style-position: inside;
    color: var(--text-light);
    line-height: 1.7;
}

.ai-description {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin: 0;
}

@media (max-width: 768px) {
    .ai-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .ai-content h2 {
        font-size: 1.6rem;
    }

    .ai-content,
    .ai-content-inner {
        min-height: 380px;
    }

    .ai-back h3 {
        font-size: 1.5rem;
    }

    .ai-description {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .ai-container {
        gap: 1.5rem;
    }

    .ai-content h2 {
        font-size: 1.3rem;
    }

    .ai-content,
    .ai-content-inner {
        min-height: 360px;
    }

    .ai-face {
        padding: 1.2rem;
    }

    .ai-back h3 {
        font-size: 1.25rem;
    }

    .ai-description {
        font-size: 0.9rem;
    }
}

.specs-section {
    padding: 6rem 7rem;
    background: #f9fafb;
}

.specs-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.specs-section h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.specs-subtitle {
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 3rem;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.spec-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e8eaef;
    text-align: left;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.spec-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.spec-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(20, 23, 33, 0.12);
    border-color: var(--primary);
}

.spec-card:hover::before {
    transform: scaleX(1);
}

.spec-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.spec-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .specs-section {
        padding: 3rem 1rem;
    }

    .specs-section h2 {
        font-size: 1.8rem;
    }

    .specs-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .spec-card {
        padding: 1.5rem;
    }

    .spec-card h3 {
        font-size: 1.1rem;
    }

    .spec-card p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .specs-section {
        padding: 2rem 1rem;
    }

    .specs-section h2 {
        font-size: 1.5rem;
    }

    .specs-subtitle {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }

    .specs-card {
        padding: 1.25rem;
    }

    .spec-card h3 {
        font-size: 1rem;
    }

    .spec-card p {
        font-size: 0.85rem;
    }
}

.contact-section {
    padding: 6rem 7rem;
    background: white;
    border-top: 4px solid var(--primary);
    margin: 0;
}

@media (max-width: 768px) {
    .contact-section {
        margin: 0;
    }
}

@media (max-width: 480px) {
    .contact-section {
        padding: 2rem 1rem;
    }
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
}

.contact-info {
    text-align: center;
    margin: 1.5rem 0 2rem;
}

.contact-info h2 {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.contact-info p {
    margin: 0.75rem 0 1.25rem;
    color: var(--text-light);
}

.contact-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.contact-header p {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 0.85rem 1rem;
    border: 1px solid #d8dce6;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: all 0.3s ease;
    background-color: #f9fafb;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(231, 80, 30, 0.1);
}

.form-group textarea {
    resize: vertical;
    line-height: 1.5;
}

.form-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
}

.form-consent input[type='checkbox'] {
    margin-top: 0.2rem;
    width: 1rem;
    height: 1rem;
    accent-color: var(--primary);
    cursor: pointer;
}

.form-consent label {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.45;
    color: var(--text-light);
}

.form-consent a {
    color: var(--primary);
    font-weight: 600;
}

.form-consent a:hover {
    text-decoration: underline;
}

.form-button {
    background-color: var(--button);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(83, 104, 118, 0.25);
    letter-spacing: 0.3px;
    margin-top: 1rem;
}

.form-button:hover {
    background-color: #465965;
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(83, 104, 118, 0.35);
}

.form-button:active {
    transform: translateY(-1px);
}

.form-button:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .contact-info h2 {
        font-size: 2rem;
    }

    .contact-header h2 {
        font-size: 1.6rem;
    }

    .contact-header p {
        font-size: 0.95rem;
    }

    .contact-form {
        gap: 1.25rem;
    }

    .form-group input,
    .form-group textarea {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .contact-info h2 {
        font-size: 1.6rem;
    }

    .contact-header h2 {
        font-size: 1.3rem;
    }

    .contact-header p {
        font-size: 0.9rem;
    }

    .contact-form {
        gap: 1rem;
    }

    .form-button {
        padding: 0.85rem 1.5rem;
        font-size: 0.95rem;
    }
}

footer {
    background: #f3f5f7;
    border-top: 1px solid #d8dce6;
    padding: 1.25rem 2rem;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-bottom p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.25s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

@media (max-width: 768px) {
    footer {
        padding: 1rem;
    }

    .footer-bottom {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }
}
