/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden; /* Previene scroll horizontal */
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden; /* Previene scroll horizontal */
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 12-Column Grid System */
.grid {
    display: grid;
    gap: 20px;
}

/* Grid Columns - Mobile First */
.grid-1 { grid-column: span 1; }
.grid-2 { grid-column: span 2; }
.grid-3 { grid-column: span 3; }
.grid-4 { grid-column: span 4; }
.grid-5 { grid-column: span 5; }
.grid-6 { grid-column: span 6; }
.grid-7 { grid-column: span 7; }
.grid-8 { grid-column: span 8; }
.grid-9 { grid-column: span 9; }
.grid-10 { grid-column: span 10; }
.grid-11 { grid-column: span 11; }
.grid-12 { grid-column: span 12; }

/* Default 12 columns for mobile */
.grid {
    grid-template-columns: repeat(12, 1fr);
}

/* Tablet Breakpoint (768px and up) */
@media (min-width: 768px) {
    .grid-md-1 { grid-column: span 1; }
    .grid-md-2 { grid-column: span 2; }
    .grid-md-3 { grid-column: span 3; }
    .grid-md-4 { grid-column: span 4; }
    .grid-md-5 { grid-column: span 5; }
    .grid-md-6 { grid-column: span 6; }
    .grid-md-7 { grid-column: span 7; }
    .grid-md-8 { grid-column: span 8; }
    .grid-md-9 { grid-column: span 9; }
    .grid-md-10 { grid-column: span 10; }
    .grid-md-11 { grid-column: span 11; }
    .grid-md-12 { grid-column: span 12; }
}

/* Desktop Breakpoint (1024px and up) */
@media (min-width: 1024px) {
    .grid-lg-1 { grid-column: span 1; }
    .grid-lg-2 { grid-column: span 2; }
    .grid-lg-3 { grid-column: span 3; }
    .grid-lg-4 { grid-column: span 4; }
    .grid-lg-5 { grid-column: span 5; }
    .grid-lg-6 { grid-column: span 6; }
    .grid-lg-7 { grid-column: span 7; }
    .grid-lg-8 { grid-column: span 8; }
    .grid-lg-9 { grid-column: span 9; }
    .grid-lg-10 { grid-column: span 10; }
    .grid-lg-11 { grid-column: span 11; }
    .grid-lg-12 { grid-column: span 12; }
}

/* Large Desktop Breakpoint (1200px and up) */
@media (min-width: 1200px) {
    .grid-xl-1 { grid-column: span 1; }
    .grid-xl-2 { grid-column: span 2; }
    .grid-xl-3 { grid-column: span 3; }
    .grid-xl-4 { grid-column: span 4; }
    .grid-xl-5 { grid-column: span 5; }
    .grid-xl-6 { grid-column: span 6; }
    .grid-xl-7 { grid-column: span 7; }
    .grid-xl-8 { grid-column: span 8; }
    .grid-xl-9 { grid-column: span 9; }
    .grid-xl-10 { grid-column: span 10; }
    .grid-xl-11 { grid-column: span 11; }
    .grid-xl-12 { grid-column: span 12; }
}

/* Grid Gaps */
.grid-gap-10 { gap: 10px; }
.grid-gap-20 { gap: 20px; }
.grid-gap-30 { gap: 30px; }
.grid-gap-40 { gap: 40px; }

/* Grid Rows */
.grid-rows-1 { grid-template-rows: repeat(1, 1fr); }
.grid-rows-2 { grid-template-rows: repeat(2, 1fr); }
.grid-rows-3 { grid-template-rows: repeat(3, 1fr); }
.grid-rows-4 { grid-template-rows: repeat(4, 1fr); }

/* Alignment */
.grid-center { align-items: center; }
.grid-start { align-items: start; }
.grid-end { align-items: end; }
.grid-stretch { align-items: stretch; }

/* Justify Content */
.grid-justify-center { justify-items: center; }
.grid-justify-start { justify-items: start; }
.grid-justify-end { justify-items: end; }#1B3554
.grid-justify-stretch { justify-items: stretch; }   

/* Cards Section Styles */
.cards-section {
    padding: 80px 0 80px 0;
    background: #1B3554;
    min-height: 840px;
}

/* Responsive para tablets */
@media (max-width: 1024px) {
    .cards-section {
        padding: 60px 0 60px 0;
        min-height: 700px;
    }
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .cards-section {
        padding: 40px 0 40px 0;
        min-height: 600px;
    }
}

/* Responsive para móviles pequeños */
@media (max-width: 480px) {
    .cards-section {
        padding: 30px 0 30px 0;
        min-height: 500px;
    }
}
.cards-section__content {


    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}
/* Eliminado el ::before para que solo el padding superior tenga color */
.cards-section > * {
    position: relative;
    z-index: 1;
}

.section-title {
    font-family: 'Inter', sans-serif;
    text-align: left;
    margin-bottom: 40px;
    font-size: 9rem;
    color: #ffffff;
    font-weight: 700;
}

/* Responsive para tablets */
@media (max-width: 1024px) {
    .section-title {
        font-size: 6rem;
        margin-bottom: 30px;
    }
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .section-title {
        font-size: 4rem;
        margin-bottom: 25px;
    }
}

/* Responsive para móviles pequeños */
@media (max-width: 480px) {
    .section-title {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }
}

/* ===== EFECTO DE PARTÍCULAS ===== */
.title-container {
    position: relative;
    display: inline-block;
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: linear-gradient(45deg, #7597FE, #6b8af0);
    border-radius: 50%;
    animation: float 3s ease-in-out infinite;
    opacity: 0.8;
}

.particle:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 4s;
}

.particle:nth-child(2) {
    top: 20%;
    right: 15%;
    animation-delay: 0.5s;
    animation-duration: 3.5s;
}

.particle:nth-child(3) {
    bottom: 30%;
    left: 20%;
    animation-delay: 1s;
    animation-duration: 4.5s;
}

.particle:nth-child(4) {
    bottom: 20%;
    right: 25%;
    animation-delay: 1.5s;
    animation-duration: 3s;
}

.particle:nth-child(5) {
    top: 50%;
    left: 5%;
    animation-delay: 2s;
    animation-duration: 4s;
}

.particle:nth-child(6) {
    top: 60%;
    right: 10%;
    animation-delay: 2.5s;
    animation-duration: 3.5s;
}

.particle:nth-child(7) {
    top: 15%;
    left: 50%;
    animation-delay: 0.3s;
    animation-duration: 4.2s;
}

.particle:nth-child(8) {
    bottom: 15%;
    left: 40%;
    animation-delay: 1.8s;
    animation-duration: 3.8s;
}

.particle:nth-child(9) {
    top: 40%;
    right: 5%;
    animation-delay: 0.8s;
    animation-duration: 4.8s;
}

.particle:nth-child(10) {
    bottom: 40%;
    right: 35%;
    animation-delay: 1.2s;
    animation-duration: 3.2s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) translateX(0px) scale(1);
        opacity: 0.8;
    }
    25% {
        transform: translateY(-15px) translateX(10px) scale(1.1);
        opacity: 1;
    }
    50% {
        transform: translateY(-25px) translateX(-5px) scale(0.9);
        opacity: 0.6;
    }
    75% {
        transform: translateY(-10px) translateX(15px) scale(1.2);
        opacity: 0.9;
    }
}

/* Responsive para partículas */
@media (max-width: 768px) {
    .particle {
        width: 3px;
        height: 3px;
    }
}

@media (max-width: 480px) {
    .particle {
        width: 2px;
        height: 2px;
    }
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
}

/* Card Styles */
.card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 300px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.card-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
}

/* Card 1 - Principal (Azul) */
.card.Principal .card-overlay {
    display: none;
}

.card.Principal:hover {
    box-shadow: 0 8px 20px rgba(51, 152, 219, 0.3);
}

.card.Principal {
    background: url('/assets/images/dcl/writer-background.png') no-repeat center center;
    background-size: cover;
}

/* Card 2 - Evaluación (Verde) */
.card.evaluacion .card-overlay {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.8) 0%, rgba(39, 174, 96, 0.6) 100%);
}

.card.evaluacion:hover {
    box-shadow: 0 8px 20px rgba(51, 152, 219, 0.3);
}

.card.evaluacion {
    background: url('/assets/images/dcl/open-book-background.png') no-repeat center center;
    background-size: cover;
}

/* Eliminadas todas las reglas de .video-container porque el elemento ya no existe */

/* Card 3 - Informes (Naranja) */
.card.informes .card-overlay {
    background: linear-gradient(135deg, rgba(230, 126, 34, 0.8) 0%, rgba(211, 84, 0, 0.6) 100%);
}

.card.informes:hover {
    box-shadow: 0 8px 20px rgba(51, 152, 219, 0.3);
}

.card.informes {
    background: url('/assets/images/dcl/reports-background.png') no-repeat center center;
    background-size: cover;
}

/* Card 4 - Monitoreo (Púrpura) */
.card.Monitoreo .card-overlay {
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.8) 0%, rgba(142, 68, 173, 0.6) 100%);
}

.card.Monitoreo:hover {
    box-shadow: 0 8px 20px rgba(51, 152, 219, 0.3);
}

.card.Monitoreo {
    background: url('/assets/images/dcl/monitoring-background.png') no-repeat center center;
    background-size: cover;
}

.card.Monitoreo .mesacomp {
    width: 100%;
    height: 100%;
    position: relative;
}

.mesa {
    width: 120%;
    height: 120%;
    position: absolute;
    right: -30%;
    top: 35%;
    z-index: 1;
}

.computador {
    width: 110%;
    height: 110%;
    position: absolute;
    right: -24%;
    top: -24%;
    z-index: 2;
}

/* Card 5 - Compatible (Rojo) */
.card.Compatible .card-overlay {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.8) 0%, rgba(192, 57, 43, 0.6) 100%);
}

.card.Compatible:hover {
    box-shadow: 0 8px 20px rgba(51, 152, 219, 0.3);
}

.card-content {
    position: absolute;
    top: 0;
    left: 0;
    right: auto;
    bottom: 0;
    width: 100%;
    transform: none;
    padding: 30px;
    color: white;
    z-index: 2;
    text-align: left;
    box-sizing: border-box;
}

.textos {
    width: 55%;
}

.card-title {
    font-size: 2.5rem;
    margin-bottom: 0;
    font-weight: bold;
}

.card-description {
    font-size: 1.2rem;
    line-height: 1.2;
    opacity: 0.9;
    margin-top: 0;
}

/* Responsive Grid for Cards */
/* Mobile: 1 card per row (12 columns) */
.card {
    grid-column: span 12;
}

/* Tablet: 2 cards per row (6 columns each) */
@media (min-width: 768px) {
    .card {
        grid-column: span 6;
    }
}

/* Desktop: 3 cards per row (4 columns each) */
@media (min-width: 1024px) {
    .card {
        grid-column: span 4;
    }
    
    /* Cards específicas con 6 columnas en desktop */
    .card.Principal,
    .card.evaluacion,
    .card.informes,
    .card.Monitoreo {
        grid-column: span 6;
    }
}

/* Large Desktop: 4 cards per row (3 columns each) */
@media (min-width: 1200px) {
    .card {
        grid-column: span 3;
    }
}

/* Oculta el contenido por defecto */
.card-ocult {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: auto;
    max-height: 0;
    padding: 0 30px;
    color: white;
    z-index: 2;
    background: rgba(0,0,0,0.7); /* Mantener fondo solo para card-ocult */
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4,0,0.2,1), opacity 0.5s cubic-bezier(0.4,0,0.2,1), padding 0.5s cubic-bezier(0.4,0,0.2,1);
}

.card-ocult p {
    font-size: clamp(1rem, 2vw, 1.5rem);
}

.card-content {
    opacity: 1;
    visibility: visible;
    display: block;
}

.card.active .card-content {
    display: none;
}

.card-ocult {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.card.active .card-ocult {
    max-height: 1000px;
    opacity: 1;
    padding: 30px;
}

@media (hover: hover) and (pointer: fine) {
    .card:hover .card-ocult {
        max-height: 1000px;
        opacity: 1;
        padding: 30px;
    }
    .card:hover .card-content {
        display: none;
    }
}

/* Header Styles */
header {
    background-color: #333;
    color: white;
    padding: 20px 0;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #007bff;
}

/* Footer Styles */


@media (min-width: 768px) {
    /* Elimino la regla de .card-content aquí */
    .card.Compatible.full-tablet {
        grid-column: span 12 !important;
    }
}

@media (max-width: 767px) {
    .card-content {
        left: 0;
        right: 0;
        transform: none;
    }
    .textos {
        width: 100%;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .card-content {
        left: 0;
        right: 0;
        transform: none;
    }
    .textos {
        width: 100%;
    }
}

@media (min-width: 1024px) {
    .card-content {
        left: 0;
        right: auto;
        transform: none;
    }
    .textos {
        width: 55%;
    }
}

.escritor-lado {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 0;
    width: 35%;
    height: auto;
    object-fit: contain;
}

@media (max-width: 768px) {
    .escritor-lado {
        display: none;
    }
}

.libro {
    position: absolute;
    top: 30%;
    left: 50%;
    width: 78%;
    height: 100%;
    object-fit: contain;
    z-index: 1;
}

.videolapiz {
    position: absolute;
    top: 0;
    left: 60%;
    width: 30%;
    height: 100%;
    object-fit: contain;
    z-index: 2;
}

@media (min-width: 1024px) {
    /* Ajustes para Desktop: puedes modificar left, top, width, etc. para desplazar libro y videolapiz */
    .libro {
        /* Ejemplo de desplazamiento, modifícalo a tu gusto */
        left: 55%;
        top: 32%;
        width: 75%;
        /* Puedes agregar transform: translate o scale si lo deseas */
    }
    .videolapiz {
        /* Ejemplo de desplazamiento, modifícalo a tu gusto */
        left: 65%;
        top: 2%;
        width: 28%;
        /* Puedes agregar transform: translate o scale si lo deseas */
    }
}

@media (max-width: 1023px) {
    /* Eliminadas todas las reglas de .video-container porque el elemento ya no existe */
}

.card-ocult ul li {
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 0.7em;
    color: #f1f1f1;
    font-family: 'Arial', sans-serif;
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.mochilacont {
    margin-top: -20%;
    width: 50%;
    margin-left: auto;
    display: block;
}

@media (max-width: 768px) {
    .video-container,
    .mochilacont,
    .mesacomp {
        display: none !important;
    }
}

@media (min-width: 1024px) and (max-width: 1279px) {
    .mesa {
        width: 100%;
        height: 100%;
        right: -20%;
        top: 40%;
    }
    .computador {
        width: 90%;
        height: 90%;
        right: -16%;
        top: -10%;
    }
}

.card.Compatible.full-tablet {
    background: url('/assets/images/dcl/compatible-background.png') no-repeat center center;
    background-size: cover;
    position: relative;
}

.conejito .conejo,
.conejito .nube {
    box-sizing: border-box;
}

.conejito {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 140%;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none; /* Para que no bloquee interacciones debajo */
    overflow: hidden;
}

.card.Compatible.full-tablet {
    overflow: visible;
}

.conejito .nube {
    position: absolute;
    bottom: 1%;
    right: 5%;
    width: 45%;
    height: auto;
    top: auto;
    transform: none;
    z-index: 11;
    pointer-events: none;
}

.conejito .conejo {
    position: absolute;
    z-index: 12;
    width: 95%;
    height: 95%;
    top: 0;
    left: 24%;
    display: flex;

}


@media (min-width: 768px) and (max-width: 1023px) {
    .conejito .conejo {
        width: 80%;
        height: 80%;
        left: 29%;
        top: 1%;
    }
    .conejito .nube {
        width: 55%;
        bottom: 5%;
        right: 3%;
        top: 45%;
    }

    .card.Compatible.full-tablet .card-title {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    .card.Compatible.full-tablet .card-title .compatible-con {
        margin-bottom: 0.2em;
        display: block;
    }
    .card.Compatible.full-tablet .card-title .sistema-escolar {
        display: block;
    }
}

/* Reglas específicas para el conejo en móviles */
@media (max-width: 767px) {
    .conejito {
        height: 120%; /* Reducir altura para móviles */
    }
    
    .conejito .conejo {
        width: 70%;
        height: 70%;
        left: 35%;
        top: 19%;
    }
    
    .conejito .nube {
        width: 40%;
        bottom: 10%;
        right: 10%;
        top: auto;
    }
}

/* Reglas para móviles muy pequeños */
@media (max-width: 480px) {
    .conejito {
        display: none; /* Ocultar conejo en móviles muy pequeños */
    }
}



