/* ==========================================================================
   ANTO GROUP | ESTILOS OFICIALES DE BANNER EN PANTALLA COMPLETA
   ========================================================================== */


.antogroup-main {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    background-color: #0b1a30;
    overflow-x: hidden;
}

.antogroup-header {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: transparent;
    transition: transform 0.3s ease, background 0.3s ease;
}

.antogroup-header.scrolled {
    background-color: #0b1a30 !important;
    /* Mismo color del fondo principal */
}


.antogroup-banner-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}


.antogroup-banner-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    z-index: 1;
}

.antogroup-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 20, 50, 0.2) 0%, rgba(5, 15, 35, 0.75) 100%);
    z-index: 2;
}

.antogroup-banner-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    padding: 120px 20px 10px;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    max-width: 850px;
    margin: 0 auto;
    box-sizing: border-box;
}

.antogroup-banner-content::before {
    content: "";
    display: block;
    height: 120px;
}

.ag-center-logo {
    max-width: 510px;
    width: 90%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.5));
}

.ag-banner-subtitle {
    color: #01A3BF;
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 3px;
    margin: 0;
    text-align: center;
}

.ag-banner-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: auto;
}

.ag-scroll-arrow {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 15px;
    text-decoration: none;
    margin-bottom: 110px;
    transition: all 0.3s ease;
    animation: agBounce 2.2s infinite;
}

.ag-scroll-arrow:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    transform: translateY(3px);
}

@keyframes agBounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(6px);
    }

    60% {
        transform: translateY(3px);
    }
}

/* Texto descriptivo inferior */
.antogroup-description-section {
    position: relative;
    z-index: 3;
    padding: 80px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
}

.ag-description-content {
    width: 100%;
}

.ag-bottom-text {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(15px, 1.7vw, 20px);
    font-weight: 300;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.88);
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
    letter-spacing: 0.3px;
}

@media (max-width: 768px) {
    .antogroup-banner-content {
        padding: 80px 15px 10px;
    }

    .ag-center-logo {
        max-width: 220px;
    }

    .ag-banner-subtitle {
        font-size: 12px;
    }

    .ag-scroll-arrow {
        width: 38px;
        height: 38px;
        font-size: 13px;
        margin-bottom: 45px;
    }

    .antogroup-description-section {
        padding: 50px 15px;
    }

    .ag-bottom-text {
        font-size: 13.5px;
        padding: 0 10px;
        line-height: 1.5;
    }
}

.historia-main {
    width: 100%;
    height: 100vh;
    background-color: #e6e6e6;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 60px;
}

.historia-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 40px;
    max-width: 1250px;
    width: 100%;
    margin-bottom: 40px;
    transform: translateY(-20px); /* Bajar un poco (antes -60px) */
}

.historia-title {
    flex: 0 0 35%;
    text-align: right;
}

.historia-text {
    flex: 0 0 65%;
    text-align: left;
}

.historia-title h2 {
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 800;
    color: #1a2a40;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 0.9;
}

.letra-q-grande {
    font-size: clamp(50px, 8vw, 110px);
    line-height: 0.6;
    color: #01A3BF;
    /* Cyan brillante */
    vertical-align: top;
    display: inline-block;
    margin-right: -5px;
}

.espacio-somos {
    display: inline-block;
    margin-left: 45px;
}

.historia-text p {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(14px, 1.3vw, 17px);
    color: #444;
    margin: 0;
    line-height: 1.6;
    text-align: justify; /* Justificado como se pidió */
    max-width: 720px;
    padding-right: 20px;
}

/* 3. Fila de abajo (Tarjetas) */
.historia-cards-container {
    display: flex;
    flex-direction: row;
    /* Coloca las 2 tarjetas lado a lado */
    justify-content: center;
    gap: 30px;
    /* Separación entre tarjetas */
    max-width: 1250px;
    width: 100%;
}

/* 4. Diseño de cada Tarjeta (Misión y Visión) */
.historia-card {
    background-color: #ffffff;
    border-radius: 15px;
    padding: 45px 40px;
    width: 50%;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* 5. Títulos verdes y textos de las tarjetas */
.card-content {
    text-align: left;
}

.card-content h3 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(20px, 2.5vw, 30px);
    font-weight: 800;
    color: #01A3BF;
    margin: 0 0 10px 0;
    text-transform: uppercase;
}

.card-content p {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(13px, 1.5vw, 16px);
    color: #555;
    margin: 0;
    line-height: 1.7;
    text-align: justify;
}

/* 6. Tamaño de los íconos */
.card-icon {
    flex: none;
    width: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 25px;
    margin-right: 30px;
}

.card-icon img {
    width: 100%;
    height: auto;
    object-fit: contain;
    opacity: 0.25;
}

.img-vision {
    transform: scale(1.2);
    margin-top: 35px; /* Bajar el div de vision */
}

@media (max-width: 992px) {
    /* Header de historia: apila verticalmente en tablet */
    .historia-main {
        height: auto;
        min-height: auto;
        padding: 60px 25px;
        gap: 35px;
    }

    .historia-header {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 25px;
        margin-bottom: 0;
        transform: translateY(0);
    }

    .historia-title {
        flex: none;
        width: 100%;
        text-align: center;
    }

    .historia-text {
        flex: none;
        width: 100%;
        text-align: justify;
    }

    .historia-title h2 {
        font-size: 42px;
    }

    .letra-q-grande {
        font-size: 100px;
    }

    .espacio-somos {
        margin-left: 25px;
    }

    .historia-text p {
        font-size: 16px;
    }

    /* Tarjetas lado a lado en tablet */
    .historia-cards-container {
        flex-direction: row;
        gap: 20px;
    }

    .historia-card {
        width: 50%;
        flex-direction: column;
        text-align: center;
        align-items: center;
        padding: 30px 20px;
    }

    .card-content {
        text-align: center;
    }

    .card-icon {
        flex: none;
        width: 60px;
        margin-bottom: 15px;
        margin-left: 0;
        margin-right: 0;
    }
}

@media (max-width: 768px) {
    .historia-main {
        height: auto;
        min-height: auto;
        padding: 40px 15px;
        gap: 30px;
    }

    .historia-header {
        transform: translateY(0);
        margin-bottom: 0;
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 20px;
    }

    .historia-title {
        text-align: center;
    }

    .historia-text {
        text-align: justify;
    }

    .historia-title h2 {
        font-size: 28px;
    }

    .letra-q-grande {
        font-size: 60px;
        line-height: 0.8;
    }

    .espacio-somos {
        margin-left: 10px;
    }

    .historia-text p {
        font-size: 14px;
        text-align: justify;
    }
    
    .card-content p {
        font-size: 13px;
        text-align: justify;
    }

    .card-content h3 {
        font-size: 20px;
    }

    .historia-cards-container {
        flex-direction: column; /* 1 columna en móvil */
        gap: 15px;
    }

    .historia-card {
        width: 100%;
        flex-direction: column;
        text-align: center;
        align-items: center;
        padding: 18px 15px;
    }

    .card-content {
        text-align: justify;
    }

    .card-icon {
        flex: none;
        width: 45px;
        margin-bottom: 10px;
        margin-left: 0;
        margin-right: 0;
    }

    .img-vision {
        transform: scale(1);
        margin-top: 0;
    }
}

/* Solo tablets: Misión/Visión en 2 columnas */
@media (min-width: 481px) and (max-width: 992px) {
    .historia-cards-container {
        flex-direction: row;
        gap: 15px;
    }

    .historia-card {
        width: 50%;
        flex-direction: column;
        text-align: center;
        align-items: center;
        padding: 20px 15px;
    }

    .card-content {
        text-align: center;
    }

    .card-icon {
        flex: none;
        width: 55px;
        margin-bottom: 12px;
        margin-left: 0;
        margin-right: 0;
    }
}

/* ==========================================================================
   PRODUCTOS ANTO
   ========================================================================== */
.productos-anto {
    width: 100%;
    min-height: 100vh;
    height: auto;
    background-color: #0b1426;
    /* Fondo oscuro */
    padding: 120px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.productos-anto-container {
    max-width: 1250px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.productos-row-top {
    display: flex;
    flex-direction: row;
    gap: 30px;
    justify-content: center;
}

.productos-row-top .producto-card {
    flex: 1;
}


/* Tarjeta 2: Efecto Flip */
.flip-card {
    background-color: transparent !important;
    perspective: 1000px;
    padding: 0 !important;
    box-shadow: none !important;
    min-height: 450px;
    display: flex;
    flex-direction: column;
}

.flip-card-inner {
    flex: 1;
    position: relative;
    width: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner,
.flip-card:active .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    backface-visibility: hidden;
    border-radius: 20px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.flip-card-front {
    background-color: #0d1b3e;
    border: 2px solid transparent;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
    align-items: flex-start;
}

.flip-card-back {
    background-color: #ffffff;
    transform: rotateY(180deg);
    border: 2px solid transparent;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.flip-card:hover .flip-card-front,
.flip-card:hover .flip-card-back,
.flip-card:active .flip-card-front,
.flip-card:active .flip-card-back {
    border-color: #4da6ff;
    /* Azul claro */
    box-shadow: 0 0 15px rgba(77, 166, 255, 0.5);
    /* Resplandor sutil */
}

.flip-card-back img {
    width: auto;
    max-width: 100%;
    max-height: 200px;
    filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.5));
}

.flip-card-front h3 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(20px, 2.5vw, 26px);
    font-weight: 800;
    color: #01A3BF;
    margin: 0 0 15px 0;
    text-align: left;
}

.flip-card-front p {
    font-size: 14px;
    color: #e0e0e0;
    line-height: 1.6;
    margin: 0;
    text-align: left;
}

.productos-row-bottom {
    display: flex;
    flex-direction: row;
    gap: 30px;
    justify-content: center;
}

.productos-row-bottom .producto-card {
    flex: 1;
}

.producto-card {
    background-color: #0d1b3e;
    border-radius: 20px;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.producto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.producto-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(20px, 2.5vw, 26px);
    font-weight: 800;
    color: #01A3BF;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
}

.producto-card p {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #e0e0e0;
    line-height: 1.7;
    margin: 0;
    text-align: left;
}

@media (max-width: 992px) {
    .productos-anto {
        padding: 100px 15px;
    }

    .productos-row-top,
    .productos-row-bottom {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
    }

    .producto-card {
        flex: 0 0 calc(50% - 10px) !important;
        padding: 40px 25px;
    }

    .producto-card h3 {
        font-size: 20px;
    }

    .producto-card p,
    .flip-card-front p {
        font-size: 15px;
    }
}

@media (max-width: 600px) {

    .productos-row-top,
    .productos-row-bottom {
        flex-direction: column;
        flex-wrap: nowrap;
    }

    .producto-card {
        flex: 1 1 auto !important;
        width: 100%;
    }

    .flip-card {
        min-height: 550px;
    }
}

.proceso-elaboracion {
    width: 100%;
    height: auto;
    min-height: 100vh;
    background-color: #ffffff;
    padding: 120px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

.proceso-container {
    max-width: 1000px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
}

.proceso-container h2 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(26px, 3.5vw, 32px);
    font-weight: 800;
    color: #1a2a40;
    margin: 0;
    text-transform: uppercase;
}

.proceso-container p {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(14px, 2vw, 16px);
    color: #555555;
    line-height: 1.6;
    margin: 0;
    max-width: 800px;
}

.proceso-circulos {
    display: flex;
    flex-direction: row;
    gap: 30px;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-top: 40px;
}

.proceso-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 220px;
    gap: 5px;
}

.proceso-item .circulo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 1px solid #c9d6e8;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin-bottom: 10px;
    animation: waveEffect 4s infinite ease-in-out;
}

.proceso-item .circulo img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
}

.proceso-item:nth-child(1) .circulo {
    animation-delay: 0s;
}

.proceso-item:nth-child(2) .circulo {
    animation-delay: 1s;
}

.proceso-item:nth-child(3) .circulo {
    animation-delay: 2s;
}

.proceso-item:nth-child(4) .circulo {
    animation-delay: 3s;
}

@keyframes waveEffect {

    0%,
    25%,
    100% {
        transform: translateY(0);
    }

    12.5% {
        transform: translateY(-15px);
    }
}

.proceso-texto h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #1a2a40;
    margin: 0 0 8px 0;
    text-transform: uppercase;
}

.proceso-texto p {
    font-family: 'Poppins', sans-serif;
    font-size: 13.5px;
    color: #6c7a93;
    margin: 0;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .proceso-elaboracion {
        padding: 100px 15px;
    }

    .proceso-container {
        gap: 30px;
    }

    .proceso-container h2 {
        font-size: 26px;
    }

    .proceso-circulos {
        gap: 20px;
    }

    .proceso-item {
        max-width: 45%;
    }

    .proceso-item .circulo {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 500px) {
    .proceso-circulos {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .proceso-item {
        max-width: 100%;
        flex-direction: row;
        text-align: left;
        align-items: center;
    }

    .proceso-item .circulo {
        width: 80px;
        height: 80px;
        flex-shrink: 0;
        margin-bottom: 0;
        margin-right: 15px;
    }

    .proceso-texto h4 {
        font-size: 14px;
        margin-bottom: 5px;
    }
}

/* ==========================================================================
   BROCHURE SECTION
   ========================================================================== */
.brochure-section {
    background: linear-gradient(135deg, #0b1a30 0%, #1a365d 100%);
    padding: 80px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.brochure-container {
    max-width: 1000px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 50px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.brochure-text {
    flex: 1;
    color: white;
}

.brochure-text h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 36px;
    font-weight: 800;
    color: #01A3BF;
    margin: 0 0 15px 0;
}

.brochure-text p {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    color: #cbd5e1;
    margin: 0 0 30px 0;
    line-height: 1.6;
    max-width: 500px;
}

.btn-brochure {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: transparent;
    border: 2px solid #01A3BF;
    color: #01A3BF;
    padding: 12px 30px;
    border-radius: 30px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-brochure:hover {
    background-color: #01A3BF;
    color: #0b1a30;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 217, 181, 0.2);
}

.brochure-icon {
    font-size: 120px;
    color: rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, #01A3BF 0%, #00788C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.3));
}

@media (max-width: 768px) {
    .brochure-container {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
        gap: 30px;
    }

    .brochure-text h2 {
        font-size: 28px;
    }

    .brochure-icon {
        font-size: 80px;
    }
}

/* ==========================================================================
   COTIZA AHORA
   ========================================================================== */
.cotiza-ahora-section {
    width: 100%;
    display: flex;
    flex-direction: row;
    height: 100vh;
    min-height: 500px;
}

.cotiza-img-side {
    flex: 1;
    background-image: url('../img/img-anto/foto5.webp');
    background-color: #888;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.cotiza-text-side {
    flex: 1;
    background-color: #0b1426;
    /* Fondo azul oscuro */
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding-left: 8%;
}

.cotiza-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
    padding: 20px;
}

.cotiza-content h2 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(30px, 5vw, 55px);
    font-weight: 800;
    line-height: 1.1;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cotiza-content .text-cyan {
    color: #01A3BF;
    display: block;
    line-height: 1.1;
    margin-bottom: 0;
}

.cotiza-content .text-white {
    color: #ffffff;
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 400;
    display: block;
    line-height: 1.5;
}

.btn-cotiza-cyan {
    display: flex;
    justify-content: center;
    align-items: center;
    width: auto;
    min-width: 150px;
    padding: 0 20px;
    height: 40px;
    background-color: #01A3BF;
    border-radius: 25px;
    text-decoration: none;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-top: 20px;
}

.btn-cotiza-cyan:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 217, 181, 0.3);
}

@media (max-width: 900px) {
    .cotiza-ahora-section {
        flex-direction: column;
        height: auto;
    }

    .cotiza-img-side {
        height: 300px;
        flex: none;
    }

    .cotiza-text-side {
        padding: 60px 20px;
        flex: none;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .cotiza-content {
        align-items: center;
    }
}

/* ==========================================================================
   ANIMACIONES SCROLL REVEAL
   ========================================================================== */
.ag-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.9s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: opacity, transform;
}

.ag-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.ag-zoom-in {
    opacity: 0;
    transform: scale(0.85);
    transition: all 0.9s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: opacity, transform;
}

.ag-zoom-in.active {
    opacity: 1;
    transform: scale(1);
}

.ag-delay-100 {
    transition-delay: 150ms;
}

.ag-delay-200 {
    transition-delay: 300ms;
}

.ag-delay-300 {
    transition-delay: 450ms;
}

.ag-delay-seq-1 {
    transition-delay: 0s;
}

.ag-delay-seq-2 {
    transition-delay: 0.6s;
}

.ag-delay-seq-3 {
    transition-delay: 1.2s;
}

.ag-delay-seq-4 {
    transition-delay: 1.8s;
}

.ag-slide-left {
    opacity: 0;
    transform: translateX(-100px);
    transition: all 0.9s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: opacity, transform;
}

.ag-slide-left.active {
    opacity: 1;
    transform: translateX(0);
}

.ag-slide-right {
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.9s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: opacity, transform;
}

.ag-slide-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* ==========================================================================
   CURSOR TRACKING SPHERE
   ========================================================================== */
.anto-interactive-bg {
    position: relative;
    overflow: hidden;
}

.anto-interactive-bg::before {
    content: '';
    display: block;
    position: absolute;
    top: -350px;
    left: -350px;
    width: 700px;
    height: 700px;
    /* Color #01A3BF (rgb 1, 163, 191) para la esfera */
    background: radial-gradient(circle at center, rgba(1, 163, 191, 0.35) 0%, rgba(1, 163, 191, 0.1) 40%, transparent 350px) no-repeat center center;
    transform: translate(var(--mouse-x, -9999px), var(--mouse-y, -9999px));
    pointer-events: none;
    z-index: 0;
    transition: transform 0.15s ease-out, opacity 0.5s ease;
    opacity: 0;
}

.anto-interactive-bg.cursor-inside::before {
    opacity: 1;
}

.anto-interactive-bg>* {
    position: relative;
    z-index: 1;
}

/* NEW GRID LAYOUT WITH FLEX FOR SMOOTH ANIMATION */
.ag-categories-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    width: 95%;
    max-width: 1600px;
    margin: 0 auto;
}

.ag-category-card {
    background: transparent;
    border-radius: 20px;
    cursor: pointer;
    position: relative;
    min-height: 350px;
    perspective: 1000px;
    box-sizing: border-box;
    flex-shrink: 1;
    transition: width 0.4s ease, transform 0.4s ease;
}

.ag-category-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    border-radius: 20px;
}

.ag-category-card:hover .ag-category-collapsed,
.ag-category-card:hover .ag-category-expanded,
.ag-category-card.expanded .ag-category-collapsed,
.ag-category-card.expanded .ag-category-expanded {
    border-color: #4da6ff;
}

.ag-category-card:not(.expanded):hover .ag-category-inner {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: translateY(-5px);
}

.ag-category-card.expanded .ag-category-inner {
    transform: rotateY(180deg);
}

.ag-category-collapsed,
.ag-category-expanded {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 20px;
    overflow: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* Default Widths */
.ag-category-card:nth-child(1),
.ag-category-card:nth-child(2) {
    width: calc(50% - 12.5px);
}

.ag-category-card:nth-child(3),
.ag-category-card:nth-child(4),
.ag-category-card:nth-child(5) {
    width: calc((100% - 50px) / 3);
}

/* Expanded State Widths (Bottom Row) */
.ag-categories-grid:has(.ag-category-card:nth-child(3).expanded) .ag-category-card:nth-child(3) {
    width: calc(50% - 26px);
}

.ag-categories-grid:has(.ag-category-card:nth-child(3).expanded) .ag-category-card:nth-child(4) {
    width: calc(25% - 13px);
}

.ag-categories-grid:has(.ag-category-card:nth-child(3).expanded) .ag-category-card:nth-child(5) {
    width: calc(25% - 13px);
}

.ag-categories-grid:has(.ag-category-card:nth-child(4).expanded) .ag-category-card:nth-child(3) {
    width: calc(25% - 13px);
}

.ag-categories-grid:has(.ag-category-card:nth-child(4).expanded) .ag-category-card:nth-child(4) {
    width: calc(50% - 26px);
}

.ag-categories-grid:has(.ag-category-card:nth-child(4).expanded) .ag-category-card:nth-child(5) {
    width: calc(25% - 13px);
}

.ag-categories-grid:has(.ag-category-card:nth-child(5).expanded) .ag-category-card:nth-child(3) {
    width: calc(25% - 13px);
}

.ag-categories-grid:has(.ag-category-card:nth-child(5).expanded) .ag-category-card:nth-child(4) {
    width: calc(25% - 13px);
}

.ag-categories-grid:has(.ag-category-card:nth-child(5).expanded) .ag-category-card:nth-child(5) {
    width: calc(50% - 26px);
}



/* Colapsado (Oscuro) */
.ag-category-collapsed {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: left;
    background: #091641;
    border: 2px solid transparent;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
    padding: 40px 30px;
}

.ag-category-collapsed h3 {
    color: #01A3BF;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    margin: 0 0 15px 0;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ag-category-collapsed p {
    color: #d1d9e6;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
    word-break: break-word;
}

/* Expandido (Azul Brillante) */
.ag-category-expanded {
    display: none;
    width: 100%;
    height: 100%;
}



.ag-category-expanded {
    background: linear-gradient(135deg, #00b4d8, #007bff);
    border: 2px solid transparent;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
    -webkit-transform: rotateY(180deg) translateZ(1px);
    transform: rotateY(180deg) translateZ(1px);
    display: flex;
}

/* Carousel inside expanded card */
.ag-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0;
}

.ag-slides-container {
    position: relative;
    flex: 1;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.ag-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    flex-direction: row;
    align-items: center;
    z-index: 0;
    pointer-events: none;
}

.ag-slide.active {
    opacity: 1;
    z-index: 1;
    pointer-events: auto;
}

.ag-slide-img-container {
    width: 45%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 40px;
}

.ag-slide-img-container img {
    max-width: 100%;
    max-height: 95%;
    object-fit: contain;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.3));
    transform: scale(1.15);
}

.ag-slide-info {
    width: 50%;
    height: 100%;
    padding: 20px 30px 20px 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.ag-slide-info h4 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    text-transform: uppercase;
    font-weight: 900;
    font-family: 'Poppins', sans-serif;
}

.ag-slide-info h3 {
    margin: 0 0 15px 0;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.2;
    font-family: 'Poppins', sans-serif;
}

.ag-slide-info p {
    margin: 0 0 20px 0;
    font-size: 0.8rem;
    line-height: 1.5;
    color: #ffffff;
    font-weight: 400;
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
    word-break: break-word;
}

.ag-btn-cotizar {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background: #09122a;
    color: #00d2ff;
    padding: 8px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    border: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

.ag-btn-cotizar:hover {
    background: #112d4e;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Carousel Navigation */
.ag-carousel-btn {
    background: transparent;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    font-size: 24px;
    font-weight: 300;
    cursor: pointer;
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
    position: absolute;
}

.ag-carousel-btn:hover {
    transform: scale(1.2);
    background: transparent;
}

.ag-carousel-btn.prev {
    left: 25px;
}

.ag-carousel-btn.next {
    left: calc(50% - 85px);
}

.ag-dots {
    position: absolute;
    bottom: 25px;
    left: 22.5%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 5;
}

.ag-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    transition: background 0.3s ease;
}

.ag-dot.active {
    background: #09122a;
    /* Dark dot for active */
}

.ag-no-products {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}

.ag-no-products h3 {
    color: #0b192c;
    margin-bottom: 10px;
}

@media (max-width: 1024px) {

    /* Diseño Tablet: 2 columnas, y la tarjeta expandida toma el 100% */
    .ag-category-card,
    .ag-category-card:nth-child(n) {
        width: calc(50% - 12.5px) !important;
        min-height: 250px;
    }

    .ag-categories-grid:has(.ag-category-card.expanded) .ag-category-card {
        width: calc(50% - 12.5px) !important;
    }

    .ag-categories-grid:has(.ag-category-card.expanded) .ag-category-card.expanded {
        width: 100% !important;
        min-height: 600px;
    }

    .ag-slide {
        flex-direction: column;
    }

    .ag-slide-img-container {
        width: 100%;
        height: 45%;
        padding: 20px 20px 0 20px;
    }

    .ag-slide-info {
        width: 100%;
        height: 55%;
        padding: 20px 30px;
        align-items: flex-start;
        text-align: left;
    }

    .ag-carousel-btn.next {
        right: 10px;
        left: auto;
    }

    .ag-carousel-btn.prev {
        left: 10px;
    }

    .ag-dots {
        left: 50%;
        top: 45%;
        bottom: auto;
        transform: translate(-50%, -10px);
    }
}

@media (max-width: 768px) {

    /* Diseño Móvil: 1 columna, 100% */
    .ag-category-card,
    .ag-category-card:nth-child(n) {
        width: 100% !important;
        min-height: 250px;
    }

    .ag-categories-grid:has(.ag-category-card.expanded) .ag-category-card,
    .ag-categories-grid:has(.ag-category-card.expanded) .ag-category-card.expanded {
        width: 100% !important;
    }

    .ag-category-card.expanded {
        min-height: 700px;
    }

    .ag-slide-img-container img {
        max-width: 70%;
        max-height: 90%;
        transform: scale(1);
    }

    .ag-slide-info h4 {
        font-size: 1.6rem;
    }

    .ag-btn-cotizar {
        width: 100%;
        margin-top: 10px;
    }

    .ag-carousel-btn {
        top: 22.5%;
        transform: translateY(-50%);
    }
}