@font-face {
    font-family: robotogsm;
    src: url(fuentes/roboto/robotobold.ttf);
}

@font-face {
    font-family: Raleway;
    src: url(fuentes/raleway/raleway.ttf);
}

@font-face {
    font-family: Titillium Web;
    src: url(fuentes/titilliumweb/titillium.ttf);
}

@font-face {
    font-family: poppins;
    src: url(fuentes/poppins/Poppins-Regular.ttf)
}

:root {
    --padding-container: 100px 0;
    --color-title: #999;
}

body {
    font-family: 'Titillium Web', sans-serif;
}

.main_container {
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Enforce minimum width for desktop/tablet */
@media (min-width: 768px) {

    body,
    .main_container {
        min-width: 1200px;
        overflow-x: auto;
    }
}

.contenedor-header {
    width: 100%;
    height: 184px;
    max-height: 100vh;
    flex-shrink: 0;
}

.container {
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
    overflow: hidden;
    padding: var(--padding-container);
    z-index: 1;
    flex: 1;
}

.contenedor-logo {
    width: 100%;
    height: 104px;
    background-color: #525050;
    position: absolute;
    z-index: -2;

}


.hero,
.herobis,
.hero1,
.hero2 {
    width: 100%;
    height: 100vh;
    min-height: 600px;
    max-height: 800px;
    position: relative;
    display: grid;
    grid-template-rows: 100px 1fr;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(180deg, #0000008c 0%, #0000008c 100%), url('../img/joystick.jpg');
    background-size: cover;
    clip-path: ellipse(100% 57% at 68% 34%);
    z-index: -1;
}

.herobis::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(180deg, #0000008c 0%, #0000008c 100%), url('../img/joystick.jpg');
    background-size: cover;
    clip-path: inset(0 0 87% 0);
    z-index: -1;
}

.hero1::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(180deg, #0000008c 0%, #0000008c 100%), url('../img/joystick.jpg');
    background-size: cover;
    clip-path: inset(0 0 87% 0);
    z-index: -1;
    animation-name: menu_sin_imagen;
    animation-duration: 1s;
    animation-iteration-count: 1;
    animation-timing-function: ease-in;
}

.hero2::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(180deg, #0000008c 0%, #0000008c 100%), url('../img/joystick.jpg');
    background-size: cover;
    clip-path: ellipse(100% 57% at 68% 34%);
    z-index: -1;
    animation-name: menu_con_imagen;
    animation-duration: 1s;
    animation-iteration-count: 1;
    animation-timing-function: ease-in;
}

@keyframes menu_sin_imagen {
    from {
        clip-path: ellipse(100% 57% at 68% 34%);
    }

    86% {
        clip-path: ellipse(100% 9% at 52% 4%);
    }

    to {
        clip-path: inset(0 0 87% 0);
    }
}

@keyframes menu_con_imagen {
    from {
        clip-path: inset(0 0 87% 0);
    }

    14% {
        clip-path: ellipse(100% 9% at 52% 4%);
    }

    to {
        clip-path: ellipse(100% 57% at 68% 34%);
    }
}

a {
    text-decoration: none;
    color: #999;
}

/* Navigation Styles */
.nav {
    --padding-container: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Base styles: Hide mobile toggle on desktop */
.nav__toggle,
.nav__close {
    display: none;
}

/* Mobile menu toggle button */
.nav__toggle {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 50%;
    transition: all 1.0s ease;
}

/* Pulsing glow animation for mobile menu toggle */
@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
        background-color: rgba(255, 255, 255, 0);
    }

    50% {
        box-shadow: 0 0 15px 3px rgba(255, 255, 255, 0.4);
        background-color: rgba(255, 255, 255, 0.15);
    }
}

/* Apply animation only on mobile devices */
@media (max-width: 768px) {
    .nav__toggle {
        display: block;
    }

    /* Animation applied via JavaScript */
    .nav__toggle.pulse-active {
        animation: pulse-glow 3s ease-in-out;
    }

    .nav__toggle:hover {
        background-color: rgba(255, 255, 255, 0.2);
    }
}

/* Desktop Menu: Visible and horizontal by default */
.nav__menu {
    display: block;
    margin-left: auto;
}

.nav__logo span {
    color: #1abc9c;
}

.nav__logo h1 {
    margin-top: -50px;
    font-size: 80px;
    font-weight: 400;
}

.nav__logo :hover {
    text-decoration: none;
    opacity: .7
}

.nav__logo span:hover {
    opacity: 1;
}

.nav__link {
    margin-left: auto;
    padding: 0;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    gap: 2em;
}

.nav__items {
    list-style: none;
    padding-top: 30px;
}

.nav__links {
    font-size: 20px;
    font-family: 'poppins', 'sans-serif';
    color: white;
    text-decoration: none;
}

.desplegar {
    background: none;
    border: none;
    cursor: pointer;
    outline: 0px;
}

.flecha,
.flecha1 {
    content: "";
    margin: auto;
    width: 2%;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 5px solid #2727278c;
    bottom: 100%;
    opacity: 0;
    visibility: hidden;
}


.mega-menu {
    margin-left: -7.5%;
    width: 115%;
    background-color: #2727278c;
    max-width: 600px;
    border-radius: 3px;
    opacity: 0;
    visibility: hidden;
}

.mega-menu1 {
    margin-left: -15%;
    width: 130%;
    background-color: #2727278c;
    max-width: 600px;
    border-radius: 3px;
    opacity: 0;
    visibility: hidden;
}

.tienda {
    position: relative;
    left: 25px;

}

.mega-menu2 {
    margin-left: -15%;
    width: 130%;
    background-color: #2727278c;
    max-width: 600px;
    border-radius: 3px;
    opacity: 0;
    visibility: hidden;
}

.desplegar:hover .mega-menu,
.desplegar:hover .mega-menu1,
.desplegar:hover .mega-menu2 {
    opacity: 1;
    visibility: visible;
    transition: all 300ms ease-out;
}

.desplegar:hover .flecha {
    opacity: 1;
    visibility: visible;
    transition: all 300ms ease-out;
}


.container:hover {
    overflow: visible;
    transition: all 300ms ease-out;
}

.lista a {
    font-size: 80%;
    display: block;
    text-decoration: none;
    color: white;
}

.lista a:hover {
    color: #6161618c;
}



.product-big-title-area {
    width: 100%;
    height: 80px;
    background: url(../img/style/crossword.png) repeat scroll 0 0 #1ABC9C;
    z-index: -2;
    text-align: center;
}

.product-title {
    font-family: Raleway;
    color: #ffffff;
    font-size: 120%;
    width: 25%;
    padding-top: 20px;
    margin-left: 37.5%;

}

/* Mostrar el título solo en la página index (móvil), ocultar en escritorio */
@media (min-width: 769px) {
    .product-big-title-area-index {
        display: none;
    }
}

@media (max-width: 768.98px) {
    .product-big-title-area-index {
        display: block;
        height: auto;
        /* permitir ajuste en móviles */
        text-align: center;
    }

    .product-big-title-area-index .product-title {
        width: 100%;
        margin-left: 0;
        padding-top: 0px;
    }

}

@media (max-width: 1410px) {
    .nav__links {
        font-size: 18px;
    }

    .nav__link {
        gap: 1.2em;
    }

    .nav__logo h1 {
        font-size: 70px;
    }
}



/* Mobile Menu Cart Adjustment */
@media (max-width: 768px) {

    /* Override top position for mobile (desktop is 150px) */
    .float-cart {
        top: 70px !important;
        right: 20px;
        /* Ensure consistent right spacing on mobile */
    }

    /* When menu is open, slide cart to the LEFT */
    body.menu-open .float-cart {
        /* Keep original position/top, just slide it */
        right: 75% !important;
        /* Move to the left side (approx 15% from left) */
        /* Ensure transition works (it is already in cart_widget.php) */
    }
}

@media (max-width: 1200px) {
    .nav__links {
        font-size: 17px;
    }

    .nav__link {
        gap: 0.8em;
    }

    .nav__logo h1 {
        font-size: 60px;
    }
}





@media (max-width: 768px) {
    .contenedor-header {
        height: auto;
    }

    .hero,
    .herobis,
    .hero1,
    .hero2 {
        min-height: 360px;
        height: auto;
        grid-template-rows: auto 1fr;
    }

    .nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
        padding-top: 12px;
    }

    .nav__logo {
        margin-top: 7px;
    }

    .nav__logo h1 {
        font-size: 42px;
        text-align: center;
    }

    .nav__link {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px 16px;
    }

    .nav__items {
        padding-top: 12px;
    }

    .product-big-title-area,
    .product-big-title-area-index {
        height: 35px;
        padding: 5px 0;
        /* Minimal padding */
        min-height: auto;
        /* Remove min-height constraint */
        background: url(../img/style/crossword.png) repeat scroll 0 0 #1ABC9C;
    }

    .product-title {
        width: 100%;
        /* Full width */
        margin: 0;
        padding: 0;
    }

    .product-title h2 {
        font-size: 18px;
        /* Significantly smaller */
        margin: 0;
        font-weight: normal;
    }

    /* Duplicate rules removed. Keeping the minimalist version above. */

    .mega-menu,
    .mega-menu1,
    .mega-menu2 {
        margin-left: 0;
        width: 100%;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .nav__logo h1 {
        font-size: 34px;
    }

    .nav__links {
        font-size: 16px;
    }
}


/* footer */

.footer-area {
    width: 100%;
    padding-bottom: 0;
}

.footer-about-us {
    display: inline-block;
    width: 40%;
    position: absolute;
    left: 10%;
    color: #999;
    top: 20%;
    margin-left: 10%;
    line-height: 0.8
}

.footer-about-us h2 {
    font-weight: 100;
    font-size: 30px;
    color: #999;
}

.footer-about-us span {
    color: #1abc9c;
}

.footer-social a {
    background: none repeat scroll 0 0 #1abc9c;
    color: #fff;
    display: inline-block;
    border-radius: 3em;
    font-size: 20px;
    height: 40px;
    margin-right: 10px;
    padding-top: 8px;
    text-align: center;
    width: 40px;
    border: 2px solid #1abc9c;
}

.footer-social a:hover {
    background-color: #222;
    border-color: #666
}

.footer-social {
    margin-top: 20px
}

.footer-menu {

    background-color: rgb(59, 59, 59);
    display: inline;
    position: absolute;
    z-index: -1;
    left: 60%;
    top: 30%;
    z-index: 1;

}


.primer_pie {
    width: 100%;
    height: 500px;
    min-height: 300px;
    max-height: 400px;
    position: relative;
    display: grid;
    bottom: 0;

}

.primer_pie::before {
    content: "";
    position: relative;
    width: 100%;
    height: 100%;
    background-color: rgb(59, 59, 59);
    clip-path: polygon(0 0, 100% 20%, 100% 100%, 0% 100%);
    z-index: 0;

}

.segundo_pie {
    width: 100%;
    height: 100px;
    min-height: 70px;
    max-height: 100px;
    position: relative;
    display: inline-block;
    background-color: rgb(59, 59, 59);
    margin-top: -1px;
}

.segundo_pie::before {
    content: "";
    top: 0;
    left: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgb(0, 0, 0);
    clip-path: polygon(0 0, 100% 35%, 100% 100%, 0% 100%);
    z-index: 2;

}

.footer-rights {
    width: 40%;
    display: inline;
    position: absolute;
    top: 40%;
    left: 10%;
    color: white;
    z-index: 3;
}

.footer-card-icon {
    width: 30%;
    max-width: 50%;
    display: inline;
    position: absolute;
    top: 40%;
    left: 70%;
    font-size: 30px;
    text-align: left;
    color: white;
    z-index: 4;
}

/* Fade Body*/
.fadeIn {
    animation: fadeIn 2s;
}

.fadeOut {
    animation: fadeOut 2s;
    z-index: -3;
}

/* CONOCENOS */

.container-about-us {
    width: 100%;
    min-height: 400px;
    padding-top: 20px;
    padding-bottom: 80px;
    display: block;
}

/* Contenedor específico para la página Desarrollo: anula colores heredados y controla padding */
.container-desarrollo {
    color: #222;
    padding-top: 40px;
    padding-bottom: 60px;
}

/* Recuadros/tarjetas claros dentro de desarrollo (sobrescriben .recuadro-about-us global) */
.container-desarrollo .recuadro-about-us {
    background-color: #646464;
    /* tarjeta blanca/very light */
    color: #cecece;
    /* texto normal en container */
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
    border-radius: 6px;
}

.container-desarrollo .dev-card,
.container-desarrollo .case-item {
    background-color: #868686;
}

/* h2 dentro de este contenedor en negro */
.container-desarrollo h2,
.container-desarrollo .recuadro-about-us h2 {
    color: #c2c2c2;
    /*titulos*/
    font-weight: 700;
    font-family: 'Raleway', sans-serif;
}

.container-desarrollo .dev-card h3 {
    font-weight: 600;
    font-size: 19px;
}

/* Ajustes menores para texto de las tarjetas */
.container-desarrollo .case-text,
.container-desarrollo .case-result,
.container-desarrollo .dev-card p {
    color: #2e2e2e;
    /* texto normal en tarjetas */
}

/* Mantener acentos (tags/links) en teal para coherencia con hero */
.container-desarrollo .case-item h3,
.container-desarrollo .desarrollo-box h3,
.container-desarrollo .tag,
.container-desarrollo .dev-btn {}

.recuadro-about-us {
    display: block;
    margin: 0 auto;
    width: 100%;
    max-width: 600px;
    min-height: 300px;
    border-radius: 4px;
    background-color: rgba(34, 34, 34, 0.7);
    color: white;
    padding: 20px;

}

.recuadro-about-us h2 {
    font-size: 30px;
    color: #1ABC9C;
}

/* Recuadro usado en la página de consultar orden (coincide con recuadro-about-us) */
.card.recuadro-form {
    background-color: rgba(34, 34, 34, 0.7);
    color: white;
    border: 0;
    border-radius: 4px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.card.recuadro-form .card-body {
    background: transparent;
    color: white;
    padding: 20px;
}

/* Ajustes de color para orden.php */
.card.recuadro-form .card-body h2 {
    color: #1ABC9C;
    /* mismo color que .recuadro-about-us h2 */
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 900px;
    max-height: 80vh;
    object-fit: contain;
    animation-name: zoom;
    animation-duration: 0.3s;
}

@keyframes zoom {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

.close-lightbox {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-lightbox:hover,
.close-lightbox:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Responsiveness for lightbox */
@media only screen and (max-width: 700px) {
    .lightbox-content {
        width: 100%;
    }
}

.card.recuadro-form .card-body .text-muted {
    color: #ffffff !important;
    /* asegura texto en blanco dentro del recuadro */
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .container-about-us {
        padding-top: 10px;
        padding-bottom: 40px;
    }

    .container-desarrollo {
        padding-top: 20px;
        padding-bottom: 40px;
    }

    .recuadro-about-us,
    .card.recuadro-form {
        max-width: 90%;
        padding: 15px;
    }

    .recuadro-about-us h2,
    .card.recuadro-form .card-body h2 {
        font-size: 24px;
    }
}

@media (max-width: 420px) {

    .recuadro-about-us,
    .card.recuadro-form {
        max-width: 95%;
        padding: 12px;
    }

    .recuadro-about-us p,
    .card.recuadro-form .card-body p {
        font-size: 14px;
    }
}

/* Header, hero and nav responsive adjustments */


@media (max-width: 768px) {
    .nav__logo h1 {
        font-size: 34px;
        margin-top: 0;
    }

    .nav__link {
        display: flex;
        flex-direction: column;
        gap: .5rem;
        margin-left: 0;
        padding-top: 10px;
    }

    .nav__items {
        padding-top: 0;
    }

    .nav__links {
        font-size: 18px;
    }

    .contenedor-header {
        height: auto !important;
    }




    .container {
        padding: 20px 0;
    }

    .nav {
        align-items: flex-start;
        padding-top: 6px;
    }
}

@media (max-width: 480px) {
    .nav__logo h1 {
        font-size: 28px;
    }

    .nav__links {
        font-size: 16px;
    }

    .contenedor-logo {
        height: 70px;
    }

    .hero,
    .herobis,
    .hero1,
    .hero2 {
        min-height: 300px;
    }

    .container {
        padding: 25px 0;
    }
}

/* Strong header compacting for small devices */
@media (max-width: 768px) {

    header.hero .container,
    .nav.container {
        padding: 0 !important;
    }


    .herobis,
    .hero2 {
        grid-template-rows: 56px !important;
        min-height: 56px !important;
        max-height: 56px !important;
    }

    .hero1,
    .hero {
        grid-template-rows: 56px !important;
        min-height: 300px !important;
        max-height: 500px !important;
    }

    .hero::before {
        display: block !important;
        content: "";
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        height: 100%;
        /* Raw image without gradient */
        background-image: linear-gradient(180deg, #0000008c 0%, #0000008c 100%), url('../img/joystick.jpg') !important;
        background-size: cover;
        background-position: center;
        /* Remove effects */
        clip-path: none !important;
        animation: none !important;
        z-index: -1;
    }

    .herobis::before,
    .hero1::before,
    .hero2::before {
        display: none !important;
    }


    .contenedor-logo {
        display: block !important;
        height: 56px !important;
        z-index: 0 !important;
    }

    .hero,
    .herobis,
    .hero1,
    .hero2 {
        margin-bottom: 56px;
        z-index: 2 !important;
    }

    .nav__logo h1 {
        font-size: 22px !important;
        margin-top: 0 !important;
        line-height: 1 !important;
    }

    .nav {
        align-items: center !important;
    }

    /* Mobile Menu Container - RESTORED */
    .nav__menu {
        position: fixed;
        background-color: #272727;
        /* Dark background */
        top: 0;
        right: -100%;
        width: 70%;
        height: 100%;
        padding: 4rem 1rem 0;
        z-index: 1000;
        transition: .4s;
        box-shadow: -2px 0 4px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
        display: block;
        /* Ensure it's a block to contain items */
    }

    .show-menu {
        right: 0;
    }

    .nav__close {
        color: white;
        font-size: 1.5rem;
        position: absolute;
        top: 1rem;
        right: 1.25rem;
        cursor: pointer;
        display: block;
        /* Ensure visibility */
    }

    .nav__toggle {
        display: block;
        /* Ensure hamburger is visible */
        font-size: 1.5rem;
        color: #999;
        background: transparent !important;
        border: none;
        cursor: pointer;
    }

    .nav__link {
        display: flex !important;
        flex-direction: column !important;
        /* Stack vertically */
        align-items: flex-start !important;
        width: 100%;
        margin-left: 0 !important;
        padding-top: 6px !important;
        gap: 1rem !important;
    }

    .tienda {
        left: 0;
        /* Reset left offset */
    }

    /* Fix Menu Items Alignment */
    .nav__items {
        width: 100%;
    }

    .nav__links {
        display: block;
        width: 100%;
        text-align: left;
        padding: 10px 0;
    }

    /* Uniform style for buttons posing as links */
    button.nav__links.desplegar {
        background: transparent;
        border: none;
        padding: 10px 0;
        text-align: left;
        width: 100%;
        font-family: 'poppins', 'sans-serif';
        font-size: 18px;
        /* Match font size */
        color: white;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    /* Fix Mobile Dropdowns */
    .mega-menu,
    .mega-menu1,
    .mega-menu2 {
        position: relative;
        /* Flow smoothly in mobile list */
        width: 100%;
        max-width: none;
        margin-left: 0px;
        margin-top: 0;
        opacity: 0;
        visibility: hidden;
        height: 0;
        transition: all 0.3s ease;
    }

    /* JS toggled state */
    .mega-menu-visible {
        opacity: 1 !important;
        visibility: visible !important;
        height: auto !important;
        margin-top: 10px;
    }
}

/* Footer responsive tweaks */
@media (max-width: 768px) {

    /* Footer Restructuring for Mobile */
    .footer-area {
        position: static;
        padding-top: 20px;
        /* Ensure container is stable */
    }

    .primer_pie {
        display: flex;
        flex-direction: column;
        height: auto;
        min-height: auto;
        padding: 30px 10px;
        text-align: center;
        gap: 20px;
        background-color: rgb(59, 59, 59);
        /* Ensure bg color */
    }

    .primer_pie::before {
        display: none;
        /* Hide the absolute bg shape on mobile */
    }

    .footer-about-us {
        display: block;
        position: relative;
        /* Reset from absolute */
        left: auto;
        top: auto;
        width: 100%;
        margin: 0;
        max-width: none;
    }

    .footer-menu {
        display: block;
        position: relative;
        /* Reset from absolute */
        left: auto;
        top: auto;
        z-index: 1;
        width: 100%;
    }

    .footer-menu iframe {
        width: 100% !important;
        max-width: 300px;
        height: 200px !important;
        margin: 0 auto;
        display: block;
    }

    .segundo_pie {
        display: flex;
        flex-direction: column;
        height: auto;
        min-height: auto;
        padding: 20px 10px;
        gap: 15px;
    }

    .segundo_pie::before {
        display: none;
        /* Simplify mobile bg */
    }

    .footer-rights,
    .footer-card-icon {
        display: block;
        position: relative;
        /* Reset from absolute */
        left: auto;
        top: auto;
        width: 100%;
        text-align: center;
        max-width: none;
    }

    .footer-card-icon {
        display: flex;
        justify-content: center;
        gap: 15px;
    }

    .footer-card-icon img {
        max-width: 80px;
        height: min-content;
    }
}

@media (max-width: 420px) {
    .footer-about-us p {
        font-size: 14px;
    }
}

/* PRODUCTOS */

.productos-area {
    position: relative;
    width: 100%;
    z-index: 0;
}

.contenedor-productos {
    display: block;
    width: 70%;
    margin-left: 15%;
    margin-top: 10px;
    z-index: -2;
}

.mobile-filters-toggle {
    background-color: #1ABC9C;
    color: #fff;
    border: 0;
    border-radius: 10px;
    padding: 0.8rem 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}

.mobile-filters-toggle:hover,
.mobile-filters-toggle:focus,
.mobile-filters-toggle:active {
    background-color: #169f84 !important;
    color: #fff !important;
}

@media (max-width: 768px) {
    .contenedor-productos {
        width: calc(100% - 16px);
        margin-left: auto;
        margin-right: auto;
    }

    .contenedor-productos .row {
        --bs-gutter-x: 0.5rem;
        --bs-gutter-y: 0.75rem;
    }

    .contenedor-productos .card-body {
        padding: 0.85rem 0.7rem 0.55rem;
    }

    .contenedor-productos .card-title {
        font-size: 0.88rem;
        line-height: 1.15;
        margin-bottom: 0;
    }

    .contenedor-productos .price,
    .contenedor-productos .lastprice {
        width: auto;
        margin-left: 8%;
        margin-right: 8%;
    }

    .contenedor-productos .price {
        font-size: 1rem;
    }

    .contenedor-productos .lastprice {
        font-size: 0.9rem;
    }

    .contenedor-productos .col button {
        width: 84%;
        margin-left: 8%;
        font-size: 0.9rem;
        line-height: 1.15;
    }

    .contenedor-productos .col.sin-stock .card::after {
        padding: 8px 14px;
        font-size: 0.9rem;
    }

    #catalogFilters {
        margin-bottom: 0.5rem;
    }

}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

.card-img-top {
    cursor: pointer;
}

.card-img-top:hover {
    opacity: .7;
}

.col .card-title {
    font-weight: 700;
    color: #1ABC9C;
    cursor: pointer;
}

.col .card-title:hover {
    color: #3f3e3e;
}

.col button {
    color: white;
    background-color: #1ABC9C;
    height: 40px;
    margin-left: 5%;
    width: 90%;
    border: 0;
    border-radius: 5px;
    margin-bottom: 10px;
}

.col button:hover {
    background-color: black;
}

/* Estilos para productos sin stock */
.col.sin-stock .card-img-top {
    filter: opacity(0.4) brightness(0.8);
}

.col.sin-stock .card {
    position: relative;
}

.col.sin-stock .card::after {
    content: "Sin Stock";
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
    z-index: 10;
    pointer-events: none;
}

.col.sin-stock button {
    background-color: #cccccc;
    color: #666666;
    cursor: not-allowed;
}

.col.sin-stock button:hover {
    background-color: #cccccc;
    color: #666666;
}

.col .precios {
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-start;
}

.col .price {
    left: 0;
    width: 80%;
    color: #4478e7;
    font-weight: 800;
    font-size: 20px;
    margin-left: 5%;
    margin-bottom: 5px;
}

.col .lastprice {
    width: 80%;
    color: black;
    font-weight: 500;
    margin-left: 5%;
    text-decoration: line-through;
    margin-bottom: 5px;
}

/* Ajuste gradual de tamaños de precio en pantallas de escritorio
   Entre 769px y 1605px reducimos las fuentes progresivamente para evitar
   que los números se vean amontonados al reducir ancho del navegador. */
@media (min-width: 768px) and (max-width: 1605px) {

    /* Apilar precios verticalmente: lastprice arriba, price abajo */
    .col .precios {
        display: flex;
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 6px;
    }

    /* Reset anchos para apilamiento y mantener espaciado similar */
    .col .price,
    .col .lastprice {
        width: auto;
        margin-left: 5%;
        margin-bottom: 0;
    }

    .col .price {
        font-size: clamp(15px, calc(0.9vw + 9px), 20px);
        font-weight: 800;
    }

    .col .lastprice {
        font-size: clamp(13px, calc(0.7vw + 8px), 16px);
        font-weight: 500;
        text-decoration: line-through;
    }

    .card-title {
        font-size: clamp(10px, calc(0.42vw + 9.3px), 20px);
    }
}

@media (min-width: 768px) and (max-width: 1400px) {
    button {
        font-size: clamp(13px, calc(0.95vw + 2.7px), 15px);

    }
}


/* DIALOG DETALLES */

.details_dialog {
    position: fixed;
    inset: 0;
    margin: auto;
    width: 1350px;
    height: 650px;
    background-color: rgb(255, 255, 255);
    border: 0;
    border-radius: 5px;
    overflow: hidden;
}

.container-dialog-detalles {
    width: 100%;
    height: 100%;
    display: inline-block;
}

.btn-close {
    position: relative;
    left: 97%;
}

.imagen_dialog {
    width: 30%;
    height: 100%;
    display: inline-block;
}

.imagen_dialog > img,
.gallery-stage img {
    width: 95%;
    height: 80%;
    margin-top: 15%;
    border-radius: 5px;
    object-fit: contain;
}

/* Imagen sin stock en modal */
.product-gallery.sin-stock-modal .gallery-stage img,
.imagen_dialog.sin-stock-modal img {
    filter: opacity(0.4) brightness(0.8);
}

.product-gallery.sin-stock-modal,
.imagen_dialog.sin-stock-modal {
    position: relative;
}

.product-gallery.sin-stock-modal::after,
.imagen_dialog.sin-stock-modal::after {
    content: "Sin Stock";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 18px;
    white-space: nowrap;
    z-index: 10;
}

.product-gallery {
    width: 100%;
    height: 100%;
}

.gallery-stage {
    position: relative;
    width: 100%;
    height: 82%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.gallery-slide {
    display: none;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.gallery-slide.active {
    display: flex;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    z-index: 3;
}

.gallery-prev {
    left: 12px;
}

.gallery-next {
    right: 12px;
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    padding: 10px 12px 0;
    flex-wrap: wrap;
}

.gallery-thumb {
    width: 62px;
    height: 62px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 10px;
    background: #f4f4f4;
    overflow: hidden;
}

.gallery-thumb.active {
    border-color: #1ABC9C;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
    border-radius: 8px;
}

.detalles_dialog {
    position: absolute;
    display: inline-block;
    width: 65%;
    padding-left: 5%;
    height: 100%;
}

.text-details {
    margin-top: 20px;
    height: 100%;
}

.title-details {
    font-weight: 700;
    font-size: 30px;
}

.descripcion_detalles {
    padding-top: 35px;
    height: 100%;
}

.productos-descripcion {
    height: 40%;
    width: 100%;
}

.descripcion_detalles button {
    position: relative;
    color: white;
    background-color: #1ABC9C;
    height: 40px;
    width: 200px;
    border: 0;
    border-radius: 5px;
    margin-bottom: 10px;
    left: 70%;
}

.descripcion_detalles button:hover {
    background-color: black;
}

/* Botón sin stock en modal */
.descripcion_detalles button[data-stock="0"] {
    background-color: #cccccc;
    color: #666666;
    cursor: not-allowed;
}

.descripcion_detalles button[data-stock="0"]:hover {
    background-color: #cccccc;
    color: #666666;
}

.precios-dialog {
    display: flex;
    align-items: flex-end;
    width: 100%;
    height: 30%;
}

.precios-dialog .lastprice {
    width: 35%;
    color: black;
    font-weight: 500;
    font-size: 50px;
    text-decoration: line-through;
}

.precios-dialog .price {
    left: 0;
    width: 30%;
    color: #4478e7;
    font-weight: 700;
    font-size: 50px;
}


/* Contenedor del Carrito */
.carrito-container {
    width: 60%;
    /* Ajusta el ancho según prefieras */
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    /* Color de fondo opcional */
    border-radius: 8px;
    /* Bordes redondeados */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* Sombra opcional */
}

/* Tabla del Carrito */
table.shop_table {
    width: 100%;
    /* Ocupa el ancho completo del contenedor */
    border-collapse: collapse;
    /* Elimina espacios entre bordes */
    border-bottom: 1px solid #ddd;
    border-right: 1px solid #ddd;
    margin-bottom: 50px;
}

/* Encabezados y Celdas de la Tabla */
table.shop_table th,
table.shop_table td {
    padding: 10px;
    /* Ajuste de padding */
    font-size: 14px;
    /* Ajuste de tamaño de fuente */
    border-left: 1px solid #ddd;
    border-top: 1px solid #ddd;
    text-align: center;
}

table.shop_table th {
    background-color: #f4f4f4;
    font-size: 15px;
    text-transform: uppercase;
}

/* Estilo de Links y Botones */
table.shop_table td.product-remove a {
    display: inline-block;
    padding: 0 5px 2px;
    text-transform: uppercase;
    cursor: pointer;
}

table.shop_table td.product-remove a:hover {
    color: #fff;
    background: red;
    text-decoration: none;
}

table.shop_table td.product-name a {
    color: #222;
}

table.shop_table td.product-name a:hover {
    color: #1ABC9C;
    text-decoration: none;
}

.add_to_cart_button1 {
    background-color: #1abc9c;
    border: none;
    margin-right: 5px;
    color: #fff;
    padding: 11px 25px;
    display: inline-block;
}

.add_to_cart_button1:hover {
    background-color: #222;
    color: #fff;
    text-decoration: none;
}

/* Formulario del Carrito */
form.cart {
    margin-bottom: 25px;
}

/* Contenedor de la Sección de Cupón y Checkout */
.coupon-checkout-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

/* Estilos para la Sección del Cupón */
.coupon-section {
    display: flex;
    align-items: center;
}

.coupon-section input[type="text"] {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-right: 10px;
    width: 200px;
    /* Ajusta el ancho según prefieras */
}

.apply-button,
.checkout-button {
    background-color: #1abc9c;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 14px;
}

.apply-button:hover,
.checkout-button:hover {
    background-color: #222;
    color: #fff;
}

/* Estilo específico para el botón de checkout */
.checkout-button {
    margin-left: auto;
}


/* CONTACT-US */

.contact-form-container {
    width: 60%;
    margin: 0 auto 30px auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-form h2 {
    text-align: center;
    color: #333;
}

.contact-form p {
    text-align: center;
    color: #555;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    color: #333;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.submit-btn {
    width: 100%;
    background-color: #1abc9c;
    color: white;
    border: none;
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #16a085;
}

/* WhatsApp Button */
.btn-whatsapp {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    transition: all 0.3s ease;
    animation: float-whatsapp 3s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    /* Ensure no underline */
}

.btn-whatsapp:hover {
    text-decoration: none;
    color: #FFF;
    transform: scale(1.1);
    background-color: #20ba5a;
}

.btn-whatsapp i {
    margin-top: 2px;
    /* Slight adjustment for visual centering */
}

/* Mobile responsiveness */
@media screen and (max-width: 768px) {
    .btn-whatsapp {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 25px;
    }

    .contact-form-container {
        width: 85%;
    }
}

@keyframes float-whatsapp {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0);
    }
}

/* Responsive Cart Table */
@media screen and (max-width: 768px) {

    /* Force table to not be like tables anymore */
    .shop_table,
    .shop_table thead,
    .shop_table tbody,
    .shop_table th,
    .shop_table td,
    .shop_table tr {
        display: block;
    }

    /* Hide table headers (but not display: none;, for accessibility) */
    .shop_table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .shop_table tr {
        border: 1px solid #ccc;
        margin-bottom: 15px;
        background: #fff;
        position: relative;
        border-radius: 8px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }

    .shop_table td {
        /* Behave  like a "row" */
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 50% !important;
        text-align: right;
    }

    .shop_table td:before {
        /* Now like a table header */
        position: absolute;
        /* Top/left values mimic padding */
        top: 50%;
        left: 10px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        transform: translateY(-50%);
        text-align: left;
        font-weight: bold;
    }

    /* Label the data */
    .shop_table td.product-remove:before {
        content: "Eliminar";
    }

    .shop_table td.product-thumbnail:before {
        content: "Producto";
    }

    .shop_table td.product-name:before {
        content: "Nombre";
    }

    .shop_table td.product-price:before {
        content: "Precio";
    }

    .shop_table td.product-quantity:before {
        content: "Cantidad";
    }

    .shop_table td.product-subtotal:before {
        content: "Subtotal";
    }

    /* Special overrides */
    .shop_table td.product-thumbnail {
        text-align: center;
        padding-left: 10px !important;
    }

    .shop_table td.product-thumbnail:before {
        display: none;
    }

    .shop_table td.product-remove {
        text-align: right;
        border-bottom: 0;
        position: absolute;
        top: 0;
        right: 0;
        width: auto;
        padding: 10px 15px !important;
        /* Increase touch area */
        z-index: 10;
        /* Ensure on top */
    }

    .shop_table td.product-remove:before {
        display: none;
    }

    .product-remove a.remo {
        color: red;
        font-size: 24px;
        /* Larger icon */
        font-weight: bold;
        line-height: 1;
        display: block;
        padding: 5px;
        /* Hitbox padding */
    }

    .actions {
        padding: 10px !important;
    }

    /* Flex adjustments for mobile actions */
    .coupon-checkout-container {
        flex-direction: column;
        gap: 20px;
    }

    .checkout-buttons {
        flex-direction: column;
        width: 100%;
    }

    .checkout-buttons>* {
        width: 100%;
        margin: 5px 0;
        display: block;
        text-align: center;
        /* Ensure buttons themselves are centered if they are inline-blocks */
        margin-left: auto;
        margin-right: auto;
    }

    .coupon-wrapper {
        width: 100%;
        justify-content: center !important;
        /* Center the coupon button/input flex */
    }

    .cart-totals {
        text-align: center !important;
        padding-right: 0 !important;
    }

    /* Actions Row Overrides: Remove card look */
    .shop_table tr.cart-actions-row {
        border: none;
        box-shadow: none;
        background: transparent;
        margin-bottom: 0;
    }

    .shop_table tr.cart-actions-row td {
        padding-left: 0 !important;
        border: none;
        text-align: center;
    }

    .shop_table tr.cart-actions-row td:before {
        display: none;
    }
}

/* Responsive Details Dialog */
@media (max-width: 900px) {
    .details_dialog {
        width: 90%;
        height: auto;
        max-height: 90vh;
        overflow-y: auto;
        padding-bottom: 20px;
    }

    .container-dialog-detalles {
        display: flex;
        flex-direction: column;
        height: auto;
    }

    .imagen_dialog {
        width: 100%;
        height: auto;
        display: flex;
        justify-content: center;
        padding: 10px;
    }

    .imagen_dialog > img,
    .gallery-stage img {
        width: auto;
        height: auto;
        max-width: 100%;
        max-height: 300px;
        margin-top: 0;
    }

    .detalles_dialog {
        width: 100%;
        height: auto;
        position: static;
        padding: 10px 20px;
        display: block;
    }

    .btn-close {
        position: absolute;
        top: 12px;
        right: 12px;
        left: auto;
        z-index: 10;
    }

    .gallery-stage {
        height: auto;
        min-height: 260px;
    }

    .gallery-nav {
        width: 38px;
        height: 38px;
    }

    .gallery-thumb {
        width: 54px;
        height: 54px;
    }

    .descripcion_detalles {
        padding-top: 10px;
    }

    .productos-descripcion {
        height: auto;
        margin-bottom: 20px;
    }

    .text-details {
        margin-top: 0;
        height: auto;
    }

    .precios-dialog {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        height: auto;
        margin-bottom: 20px;
    }

    .precios-dialog .price,
    .precios-dialog .lastprice {
        width: auto;
        text-align: center;
        margin: 5px 0;
        left: auto;
    }

    .precios-dialog .price {
        font-size: 36px;
    }

    .precios-dialog .lastprice {
        font-size: 24px;
    }

    .boton-descripcion {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .descripcion_detalles button {
        left: auto;
        /* Reset positioning */
        margin: 0 auto;
        width: 100%;
        max-width: 250px;
    }
}

/* =====================================
   POPUP AVISO (Global Styles)
   ===================================== */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* Semi-transparent background like a modal backdrop */
    z-index: 10000;
    display: none;
    /* JS will toggle this to flex */
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(2px);
}

.popup-content {
    /* Match usage of dialog-like container */
    background-color: rgb(255, 255, 255);
    width: 90%;
    max-width: 900px;
    /* Comparable to details_dialog but maybe smaller/responsive */
    height: auto;
    min-height: 400px;
    max-height: 80vh;
    /* Prevent overflow on small screens */
    border: 0;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    animation: popupFadeIn 0.3s ease-out;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #555;
    cursor: pointer;
    z-index: 10002;
    background: transparent;
    border: none;
    line-height: 1;
}

.popup-close:hover {
    color: #000;
}

.popup-slider {
    width: 100%;
    height: 100%;
    flex: 1;
    position: relative;
    display: flex;
}

.popup-slide {
    display: none;
    /* Toggled by JS */
    width: 100%;
    height: 100%;
    flex-direction: row;
    /* Default row layout like details_dialog */
}

.popup-slide.active {
    display: flex;
}


/* Layout for Image + Text (Column layout as requested: Text Top, Image Bottom) */
.popup-slide-inner {
    display: flex;
    width: 100%;
    height: 100%;
    flex-direction: column;
    /* Changed to column */
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.popup-text-content {
    width: 100%;
    /* height: auto;  Let content dictate height */
    padding: 10px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    /* Center text */
    flex-shrink: 0;
    /* detailed text shouldn't shrink too much */
}

/* Image container should be flexible */
.popup-image-container {
    width: 100%;
    flex: 1;
    /* Take remaining space */
    min-height: 0;
    /* Allow shrinking */
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    /* Remove grey bg */
    padding: 10px 0;
    margin-top: 10px;
}

.popup-image-container img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 300px;
    /* Limit height */
    object-fit: contain;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.popup-title {
    font-weight: 700;
    font-size: 28px;
    color: #1ABC9C;
    margin-bottom: 15px;
    font-family: 'Raleway', sans-serif;
}

.popup-description {
    font-family: 'Titillium Web', sans-serif;
    font-size: 16px;
    color: #555;
    line-height: 1.5;
}

/* No Image Layout - Adapts size automatically due to flex column */
.popup-no-image {
    width: 100%;
    height: 100%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Ensure content resizes */
.popup-content {
    width: 90%;
    max-width: 600px;
    /* Reduce max-width for better portrait feel */
    height: auto;
    /* Allow auto height */
    min-height: 200px;
    /* Smaller min-height */
    max-height: 90vh;
    animation: popupFadeIn 0.3s ease-out;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .popup-content {
        width: 95%;
        overflow-y: auto;
    }


    .popup-slide,
    .popup-slide-inner {
        flex-direction: column;
    }

    .popup-image-container {
        width: 100%;
        height: 200px;
    }

    .popup-text-content {
        width: 100%;
        height: auto;
        padding: 20px;
        justify-content: flex-start;
    }

    .popup-title {
        font-size: 24px;
        text-align: center;
    }

}

/* =====================================
   POPUP TYPE VARIATIONS
   ===================================== */

/* Desktop Layouts (min-width: 769px) */
@media (min-width: 769px) {

    /* Importante & Promo: Image Left, Text Right */
    .popup-slide-inner.type-importante,
    .popup-slide-inner.type-promo {
        flex-direction: row-reverse;
    }

    .popup-slide-inner.type-importante .popup-text-content,
    .popup-slide-inner.type-promo .popup-text-content {
        width: 50%;
        text-align: left;
        align-items: flex-start;
    }

    .popup-slide-inner.type-importante .popup-image-container,
    .popup-slide-inner.type-promo .popup-image-container {
        width: 50%;
        margin-top: 0;
        padding-right: 20px;
    }
}

/* Importante Style: Red Title */
.type-importante .popup-title {
    color: red;
}

/* Banner Style: Only Image */
.type-banner .popup-text-content {
    display: none;
}

.type-banner .popup-image-container {
    width: 100%;
    margin-top: 0;
    padding: 0;
}

.type-banner .popup-image-container img {
    max-height: 80vh;
    /* Allow taller images for banners */
    width: 100%;
    object-fit: cover;
}

/* Vacaciones: Default (no extra rules needed) */

/* ===== HERO CONTENT SOBRE EL ::before ===== */
.hero__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 900px;
    padding-top: 60px;
}

.hero__title {
    color: #fff;
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 64px;
    line-height: 1.05;
    margin: 0 0 14px 0;
}

.hero__subtitle {
    color: rgba(255, 255, 255, .78);
    font-size: 18px;
    margin: 0 0 22px 0;
}

.hero__cta {
    display: flex;
    gap: 14px;
    margin-bottom: 26px;
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    padding: 0 18px;
    border-radius: 8px;
    font-family: 'poppins', sans-serif;
    font-size: 16px;
    border: 1px solid transparent;
    transition: all .2s ease;
    text-decoration: none;
}

.btn-primary {
    background: #1abc9c;
    color: #fff;
    border-color: #1abc9c;
}

.btn-primary:hover {
    opacity: .92;
    transform: translateY(-1px);
}

.btn-outline {
    background: rgba(0, 0, 0, .25);
    color: #fff;
    border-color: rgba(255, 255, 255, .35);
}

.btn-outline:hover {
    background: rgba(0, 0, 0, .35);
}

.hero__highlights {
    display: flex;
    gap: 18px;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(0, 0, 0, .35);
    backdrop-filter: blur(4px);
    width: fit-content;
}

.hero__highlights .hi {
    color: rgba(255, 255, 255, .86);
    font-size: 14px;
    white-space: nowrap;
}

/* Mobile */
@media (max-width: 768px) {
    .hero__content {
        z-index: 0;
    }

    .hero__title {
        font-size: 34px;
        padding-top: 20px;
    }


    .hero__cta {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero__highlights {
        flex-direction: column;
        width: 100%;
    }
}


/* ================================
   DESARROLLO
   ================================ */

.desarrollo-box h3 {
    margin: 0;
    font-size: 18px;
    color: #1ABC9C;
    font-family: 'Raleway', sans-serif;
}

/* --------- Servicios --------- */

.dev-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 14px;
}

.dev-card {
    background: rgba(0, 0, 0, .18);
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 6px;
    padding: 12px 14px;
}

.dev-card p {
    margin: 6px 0 0 0;
    color: rgba(255, 255, 255, .85);
}

/* --------- Casos reales --------- */

.case-list {
    display: grid;
    gap: 12px;
    margin-top: 10px;
}

.case-item {
    background: rgba(0, 0, 0, .18);
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 6px;
    padding: 12px 14px;
}

/* Imagen del caso */
.case-media img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, .10);
}

.case-media-placeholder {
    width: 100%;
    height: 160px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .06);
    border: 1px dashed rgba(255, 255, 255, .15);
    color: rgba(255, 255, 255, .7);
    font-size: 12px;
}

.case-head {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.case-item h3 {
    margin: 0;
    font-size: 20px;
    color: #1ABC9C;
    font-weight: 600;
}

.case-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(26, 188, 156, .15);
    border: 1px solid rgba(26, 188, 156, .35);
    color: rgba(255, 255, 255, .9);
    font-size: 12px;
}

.case-text {
    margin: 10px 0 0 0;
    color: rgba(255, 255, 255, .88);
}

.case-result {
    margin-top: 10px;
    color: rgba(255, 255, 255, .88);
}

.case-actions {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.case-actions a {
    color: #1ABC9C;
    text-decoration: none;
    font-family: 'poppins', sans-serif;
    font-size: 14px;
}

.case-actions a:hover {
    opacity: .85;
}

/* --------- CTA --------- */

.dev-cta {
    display: flex;
    justify-content: center;
    margin-top: 14px;
}

.dev-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 46px;
    padding: 0 18px;
    border-radius: 8px;
    background: #1abc9c;
    color: #fff;
    font-family: 'poppins', sans-serif;
    border: 1px solid #1abc9c;
    transition: all .2s ease;
}

.dev-btn:hover {
    opacity: .92;
    transform: translateY(-1px);
    color: #fff;
}

/* --------- Desktop --------- */
@media (min-width: 769px) {
    .dev-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .case-head {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

/* --------- Mobile --------- */
@media (max-width: 768px) {

    .case-media img,
    .case-media-placeholder {
        height: 180px;
    }
}

/* --------- Desktop: mejorar visualizado de miniaturas (evitar recortes excesivos) --------- */
@media (min-width: 769px) {
    .case-media {
        aspect-ratio: 16 / 9;
        overflow: hidden;
        max-height: 380px;
        margin-left: auto;
        margin-right: auto;
    }

    .case-media img,
    .case-media img.case-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        border-radius: 6px;
        border: 1px solid rgba(255, 255, 255, .10);
    }

    /* Clase para imágenes cuadradas si se decide aplicarla desde el servidor o JS */
    .case-media--square {
        aspect-ratio: 1 / 1;
    }

    /* Fallback para navegadores sin soporte aspect-ratio: limitar altura */
    @supports not (aspect-ratio: 1/1) {
        .case-media {
            max-height: 360px;
        }

        .case-media img {
            height: auto;
            max-height: 360px;
            width: 100%;
        }
    }
}

/* =================================
   DESARROLLO – contenedor más ancho
   ================================= */

@media (min-width: 1024px) {
    .desarrollo-box {
        max-width: 900px;
    }
}

@media (min-width: 1400px) {
    .desarrollo-box {
        max-width: 1100px;
    }
}

/* =================================
   FORMULARIO DE CONTACTO
   ================================= */

.contact-form-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 18px 20px;
    background: #646464;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 6px;
}

.contact-form-container h2 {
    color: #C2C2C2;
    margin: 0 0 6px 0;
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
}

.contact-form-container>p {
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 18px 0;
    font-size: 15px;
    line-height: 1.5;
}

.contact-form {
    display: flex;
    flex-direction: column;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: rgba(0, 0, 0, 0.7);
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 16px;
    font-family: 'poppins', sans-serif;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    padding: 9px 5px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    font-family: 'Titillium Web', sans-serif;
    font-size: 15px;
    background: #868686;
    color: rgba(255, 255, 255, 0.9);
    transition: border-color 0.2s, background-color 0.2s;
}

.form-group input[type="text"]::placeholder,
.form-group input[type="email"]::placeholder,
.form-group input[type="tel"]::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(26, 188, 156, 0.6);
    background: rgba(0, 0, 0, 0.35);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Métodos de contacto */
.contact-method-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.radio-label {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 12px 16px;
    border-radius: 10px;

    background: #868686;
    border: 1px solid rgba(0, 0, 0, 0.15);

    cursor: pointer;
    user-select: none;

    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.05s ease;
}

/* 🔴 Ocultamos el radio nativo */
.radio-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Estado seleccionado */
.radio-label:has(input:checked) {
    background: #9c9c9c;
    /* un poco más claro */
    border-color: rgba(26, 188, 156, 0.7);
    box-shadow: 0 0 0 2px rgba(26, 188, 156, 0.25);
}

/* Hover */
.radio-label:hover {
    background: #8f8f8f;
}

/* Click */
.radio-label:active {
    transform: scale(0.98);
}


/* Estado seleccionado */
.radio-label:has(input:checked) {
    background-color: rgba(26, 188, 156, 0.12);
    border-color: rgba(26, 188, 156, 0.55);
    box-shadow: 0 0 0 1px rgba(26, 188, 156, 0.2);
}

/* Feedback al click */
.radio-label:active {
    transform: scale(0.98);
}

/* Textos de ayuda y error */
.help-text {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 3px;
}

.error-text {
    display: block;
    color: #ff6b6b;
    font-size: 11px;
    margin-top: 3px;
    min-height: 14px;
}

.char-count {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    text-align: right;
    margin-top: 3px;
}

/* Alertas */
.alert {
    padding: 10px 12px;
    border-radius: 4px;
    margin-bottom: 14px;
    border-left: 3px solid;
    font-size: 12px;
    line-height: 1.4;
}

.alert.alert-hidden {
    display: none;
}

.alert.alert-error {
    background: rgba(255, 107, 107, 0.12);
    border-left-color: #ff6b6b;
    color: rgba(255, 200, 200, 0.95);
}

.alert.alert-success {
    background: rgba(26, 188, 156, 0.12);
    border-left-color: #1ABC9C;
    color: rgba(200, 255, 240, 0.95);
}

/* Botón de envío */
.submit-btn {
    padding: 10px 18px;
    background-color: #1ABC9C;
    color: white;
    border: 1px solid #1ABC9C;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    font-family: 'poppins', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.submit-btn:hover:not(:disabled) {
    opacity: 0.92;
    transform: translateY(-1px);
}

.submit-btn:active:not(:disabled) {
    transform: translateY(0);
}

.submit-btn:disabled {
    background: rgba(26, 188, 156, 0.5);
    border-color: rgba(26, 188, 156, 0.5);
    cursor: not-allowed;
    opacity: 0.6;
}

/* Información del formulario */
.form-info {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 10px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Responsive */
@media (max-width: 768px) {
    .contact-form-container {
        margin: 20px;
        padding: 14px 16px;
    }

    .contact-method-group {
        flex-direction: column;
        gap: 8px;
    }

    .submit-btn {
        width: 100%;
    }
}

/* Modal de Contacto */
.contact-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(2px);
}

.contact-modal-overlay.show {
    display: flex;
}

.contact-modal-content {
    background-color: #2a2a2a;
    border: 1px solid rgba(255, 255, 255, 0.10);
    width: 90%;
    max-width: 500px;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: contactModalFadeIn 0.3s ease-out;
    position: relative;
}

@keyframes contactModalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.contact-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 20px;
    font-family: 'Raleway', sans-serif;
    color: #fff;
}

.contact-modal-header.success {
    color: #1ABC9C;
}

.contact-modal-header.error {
    color: #ff6b6b;
}

.contact-modal-header i {
    font-size: 24px;
}

.contact-modal-message {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.contact-modal-details {
    background: rgba(0, 0, 0, 0.2);
    padding: 12px 14px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    max-height: 200px;
    overflow-y: auto;
}

.contact-modal-details p {
    margin: 6px 0;
}

.contact-modal-details strong {
    color: #1ABC9C;
}

.contact-modal-button {
    width: 100%;
    padding: 12px;
    background-color: #1ABC9C;
    color: white;
    border: 1px solid #1ABC9C;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'poppins', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
}

.contact-modal-button:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.contact-modal-button.error {
    background-color: transparent;
    border-color: #ff6b6b;
    color: #ff6b6b;
}

.contact-modal-button.error:hover {
    background-color: rgba(255, 107, 107, 0.1);
}



/* Estado de función en desarrollo */
.dev-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .55);
    z-index: 99999;
    padding: 18px;
}

.dev-modal {
    width: min(520px, 92vw);
    background: #1f1f1f;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 14px;
    padding: 18px 18px 16px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, .35);
    position: relative;
}

.dev-modal h3 {
    margin: 0 0 8px;
    font-size: 1.15rem;
}

.dev-modal p {
    margin: 0;
    opacity: .9;
    line-height: 1.4;
}

.dev-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
}

.dev-close:hover {
    background: rgba(255, 255, 255, .14);
}

.dev-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 14px;
}

.dev-ok {
    border: 1px solid rgba(26, 188, 156, 0.55);
    background: rgba(26, 188, 156, 0.18);
    color: #fff;
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
}

.dev-ok:hover {
    background: rgba(26, 188, 156, 0.26);
}
