/* Variables de Terli Graff */
:root {
    --azul: #355C91;
    --verde: #4CE627;
    --blanco: #FFFFFF;
}

/* Fuente personalizada Neon 80s */
@font-face {
    font-family: 'Neon 80s';
    src: url('../img/Neon80S-8jL2.ttf') format('truetype');
}

/* Cursor personalizado (Ruta relativa para producción) */
html, body, a, button, input, textarea, select, .tm-button, .tm-header a, .tm-navigation a, .tm-footer a {
    cursor: url('../images/cursor.png') 0 0, auto !important;
}

body {
    font-family: 'Poppins', sans-serif;
}

/* --- Header --- */
.tm-header .container,
.tm-header .row {
    min-height: 70px;
}
.logo-header {
    max-height: 40px;
}

/* Colores institucionales */
.tm-sectiontitle h2 {
    color: var(--azul);
    font-family: 'Neon 80s', cursive;
}
.tm-button:not(.tm-button-white) {
    background-color: var(--verde);
    color: var(--azul);
    border-color: var(--verde);
}
.tm-button:hover {
    opacity: 0.8;
}

/* Slider Hero */
.tm-heroslider-content h1 {
    font-family: 'Neon 80s', cursive;
    color: var(--blanco);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
.tm-heroslider-content p {
    color: var(--blanco);
}
.manito-hero {
    max-width: 280px;
    margin: auto;
    display: block;
}

/* Header Sticky */
.tm-header.tm-sticky-header {
    background-color: rgba(255, 255, 255, 0.1);
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}
.tm-header .tm-navigation ul li a {
    color: var(--azul);
    font-weight: 700;
}
.tm-header.tm-sticky-header.is-sticky {
    background-color: #ffffff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}
.tm-header .tm-navigation ul li a:hover,
.tm-header .tm-navigation ul li.current > a {
    color: var(--verde);
}

/* --- Servicios (Consolidado y alineado al TOP) --- */
.tm-feature {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
}
.tm-feature-icon {
    flex-shrink: 0;
    width: auto;
    margin-right: 15px;
    margin-top: 5px;
    margin-bottom: 0;
    height: auto;
}
.tm-feature-icon img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    display: block;
}
.tm-feature-content h4 {
    margin-top: 0;
    margin-bottom: 5px;
    line-height: 1.2;
    text-align: left;
}
.tm-feature-content p {
    text-align: left;
    margin: 0;
}

/* --- Contadores (Funfacts) --- */
.tm-funfact-icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}
.tm-funfact-icon {
    display: flex;
    justify-content: center;
    align-items: center;
}
.img-local-funfact {
    filter: none !important;
    opacity: 1 !important;
    width: 100% !important;
    height: auto !important;
}
.tm-funfact-videobox {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}
.tm-funfact-videobox::before,
.tm-funfact-videobox::after {
    display: none !important;
}
.tm-videobox .tm-videobox-roundicon,
.tm-videobox a {
    display: none !important;
}

/* --- Logos Empresas --- */
.tm-screenshots-single {
    margin: 0 30px !important;
}
.tm-screenshots-single img {
    height: 50px !important;
    width: auto !important;
    filter: grayscale(100%) !important;
    transition: filter 0.3s ease;
}
.tm-screenshots-single img:hover {
    filter: grayscale(0%) !important;
}

/* --- Preloader --- */
.custom-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--azul);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.preloader-image {
    width: 120px;
    height: auto;
    animation: fadeInOutManito 2s ease-in-out forwards;
}
.custom-preloader.hidden {
    opacity: 0;
    visibility: hidden;
}
@keyframes fadeInOutManito {
    0% { opacity: 0; transform: scale(0.8); }
    30% { opacity: 1; transform: scale(1); }
    70% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(0.9); }
}

/* --- Modal --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    justify-content: center; align-items: center;
    z-index: 9999;
}
.modal-box {
    background: var(--blanco);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.modal-box h3 {
    color: var(--azul);
    font-family: 'Neon 80s', cursive;
}
.modal-box a.tm-button {
    margin-top: 15px;
    text-decoration: none;
}
/* --- Modal Arreglado --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-box {
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    position: relative;
}

/* Botón de cierre (X) */
.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 5px;
}
.modal-close:hover {
    color: #355C91;
}

/* Botón principal (FORZADO para que el texto se vea) */
.btn-modal-personalizado {
    display: inline-block !important;
    background-color: #355C91 !important;  /* Azul Terli Graff */
    color: #ffffff !important;             /* Texto blanco */
    font-family: 'Poppins', sans-serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: normal !important;
    padding: 14px 30px !important;
    border-radius: 5px !important;
    text-decoration: none !important;
    margin-top: 20px !important;
    border: none !important;
    cursor: pointer !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2) !important;
    transition: all 0.3s ease !important;
}

.btn-modal-personalizado:hover {
    background-color: #4CE627 !important;  /* Verde al pasar el mouse */
    color: #355C91 !important;
}

/* --- Botón Flotante de WhatsApp --- */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: #25D366; /* Verde oficial de WhatsApp */
    border-radius: 50%;        /* Lo hace redondo */
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 9998;             /* Por debajo del modal pero por encima de todo */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Efecto al pasar el mouse */
.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* Ajuste en móviles para que no tape nada importante */
@media (max-width: 576px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }
}
/* --- Página Storni: Cuadrícula de Apps --- */
.app-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr); /* 8 columnas */
    gap: 20px;
    padding: 20px;
    text-align: center;
}

.app-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1); /* Fondo semi-transparente */
    border-radius: 10px;
    padding: 15px 10px;
    transition: background 0.3s ease, transform 0.3s ease;
}

.app-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.app-item img {
    margin-bottom: 10px;
    border-radius: 8px;
}

.app-name {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #ffffff !important; /* Nombre en blanco */
    text-decoration: none;
    display: block;
}

.app-name:hover {
    color: #4CE627 !important; /* Verde al pasar el mouse */
    text-decoration: underline;
}

/* Responsive: Tablet */
@media (max-width: 992px) {
    .app-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 columnas */
    }
}

/* Responsive: Móvil */
@media (max-width: 576px) {
    .app-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas */
        gap: 10px;
    }
    .app-item {
        padding: 10px;
    }
}