/*
Theme Name: ASSI Custom Theme
Theme URI: https://assi.com.co
Author: Juan Sebastián Almendra
Description: Tema personalizado de alto rendimiento para ASSI - Soluciones en Sistemas e Informática.
Version: 1.0
*/

/* =========================================
   1. VARIABLES Y DISEÑO BASE (DESIGN TOKENS)
   ========================================= */
:root {
    --color-primary: #0A2540; /* Azul Marino Oscuro */
    --color-accent: #00D8FF;  /* Cian */
    --color-text: #333333;
    --color-text-light: #666666;
    --color-bg: #FFFFFF;
    
    /* Escala de espaciado base 8px */
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 32px;
    --space-6: 48px;
    --space-8: 64px;

    --font-main: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.5;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* =========================================
   2. COMPONENTES COMPARTIDOS
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    text-align: center;
    transition: all 0.3s ease;
    min-height: 44px; /* Botones accesibles */
    border: none;
    cursor: pointer;
}

.btn--primary {
    background-color: var(--color-accent);
    color: var(--color-primary);
}

.btn--primary:hover {
    background-color: #00b3d6;
}

.btn--secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn--secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-bg);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-6);
}

.section-title {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: var(--space-2);
    font-weight: 700;
}

.section-subtitle {
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* =========================================
   3. HEADER Y NAVEGACIÓN (Móvil por defecto)
   ========================================= */
.header {
    background-color: var(--color-bg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Corrección para que el Header no quede oculto bajo la barra de administración de WordPress */
body.admin-bar .header {
    top: 32px; /* Altura estándar de la barra de admin en escritorio */
}

@media screen and (max-width: 782px) {
    body.admin-bar .header {
        top: 46px; /* Altura de la barra de admin en pantallas móviles */
    }
}







.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    text-decoration: none;
}

.logo img {
    max-height: 45px; 
    width: auto;      
    display: block;
}

.logo__text-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo__text {
    font-size: 30px;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}

.logo__slogan {
    font-size: 0.7rem;
    color: var(--color-text-light);
    font-weight: 400;
    margin-top: 2px;
}

.nav-toggle {
    display: block;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 44px; 
    height: 44px;
    position: relative;
    z-index: 200;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-primary);
    position: absolute;
    left: 10px;
    transition: all 0.3s ease;
}

.hamburger::before { content: ''; top: -8px; left: 0; }
.hamburger::after { content: ''; top: 8px; left: 0; }

.nav {
    position: fixed;
    top: 80px; 
    left: -100%; 
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--color-primary);
    transition: left 0.3s ease;
    z-index: 99;
    overflow-y: auto;
}

.nav.is-active {
    left: 0;
}

.nav__list {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: var(--space-8);
    list-style: none;
    gap: var(--space-4);
}

.nav__link {
    text-decoration: none;
    color: var(--color-bg);
    font-weight: 600;
    font-size: 1.25rem;
}

/* =========================================
   4. SECCIÓN HERO (INICIO)
   ========================================= */
.hero {
    padding: var(--space-8) 0;
    background-color: #f8f9fa;
}

.hero__inner {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.hero__title {
    font-size: 2.5rem;
    color: var(--color-primary);
    line-height: 1.2;
    margin-bottom: var(--space-2);
}

.hero__description {
    font-size: 1.125rem;
    color: var(--color-text-light);
    margin-bottom: var(--space-4);
}

.hero__actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.hero__image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* =========================================
   5. TARJETAS
   ========================================= */
.services, .about {
    padding: var(--space-8) 0;
}

.about { background-color: #F0F4F8; }
.services { background-color: var(--color-bg); }

.services__grid, .about__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-4);
}

.card {
    background-color: #ffffff;
    padding: var(--space-4); 
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(10, 37, 64, 0.04);
    border: 1px solid #e1e8ed;
    border-top: 4px solid var(--color-primary); 
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden; 
    text-align: left; 
}

.card__image {
    width: calc(100% + (var(--space-4) * 2));
    margin: calc(var(--space-4) * -1) calc(var(--space-4) * -1) var(--space-4) calc(var(--space-4) * -1);
    height: 180px; 
    overflow: hidden;
}

.card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transition: transform 0.5s ease; 
}

.card__body {
    padding: 0; 
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card:hover, .card.is-active {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(10, 37, 64, 0.1);
    border-top-color: var(--color-accent); 
}

.card:hover .card__image img {
    transform: scale(1.08);
}

.card__title {
    font-size: 1.25rem;
    color: var(--color-primary);
    margin-bottom: var(--space-2);
}

.card__text {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* =========================================
   6. SECCIÓN CLIENTES
   ========================================= */
.clients {
    padding: 80px 0; 
    background-color: #f8f9fa; 
    position: relative;
    border-top: 1px solid #e1e8ed;
}

.clients::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background-color: var(--color-accent);
    border-radius: 0 0 6px 6px;
    box-shadow: 0 4px 10px rgba(0, 216, 255, 0.2);
}

.clients__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--space-4);
    align-items: center;
}

.client-logo {
    background-color: #ffffff;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    padding: var(--space-3);
    height: 110px; 
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(10, 37, 64, 0.02);
    transition: all 0.3s ease;
}

.client-logo a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.client-logo img {
    max-width: 80%;
    max-height: 100px; 
    object-fit: contain;
    transition: filter 0.3s ease, transform 0.3s ease;
}

.client-logo:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(10, 37, 64, 0.08);
    border-color: var(--color-accent); 
}

.client-logo:hover img {
    transform: scale(1.05);
}

/* =========================================
   7. SECCIÓN CONTACTO
   ========================================= */
.contact {
    padding: var(--space-8) 0; 
    background-color: #F0F4F8; 
}

.contact__inner {
    display: grid;
    gap: var(--space-6);
    grid-template-columns: 1fr;
    align-items: start;
}

.contact__info h3, .contact__form-wrapper h3 {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: var(--space-4);
    font-weight: 700;
}

.info-block { margin-bottom: var(--space-6); }

.info-block h3 {
    border-bottom: 2px solid var(--color-accent);
    display: inline-block;
    padding-bottom: 4px;
}

.info-block ul {
    list-style: none;
    color: var(--color-text-light);
}

.info-block li {
    margin-bottom: var(--space-3);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.05rem;
}

.map-container {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(10, 37, 64, 0.08);
    border: 1px solid #e1e8ed;
    background-color: #f8fafc;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.social-links {
    display: flex;
    gap: var(--space-3);
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 48px; 
    height: 48px;
    background-color: #ffffff;
    color: var(--color-primary);
    border-radius: 50%;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(10, 37, 64, 0.05);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--color-primary);
    color: var(--color-bg);
    transform: translateY(-4px);
    box-shadow: 0 8px 15px rgba(10, 37, 64, 0.15);
}

.contact__form-wrapper {
    background-color: var(--color-bg);
    padding: var(--space-6);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(10, 37, 64, 0.08);
    border-top: 6px solid var(--color-primary);
}

.contact__form {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-primary);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 14px;
    background-color: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--color-text);
    transition: all 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    background-color: #ffffff;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 4px rgba(0, 216, 255, 0.15); 
}

.contact__form .btn {
    margin-top: var(--space-2);
    font-size: 1.1rem;
    padding: 14px 24px;
}

.form-legal {
    text-align: center;
    margin-top: var(--space-2);
    font-size: 0.85rem; 
    color: var(--color-text-light); 
}

.form-legal a {
    color: var(--color-primary); 
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.3s ease;
}

.form-legal a:hover {
    color: var(--color-accent); 
}

/* =========================================
   8. PIE DE PÁGINA (FOOTER)
   ========================================= */
.footer {
    background-color: var(--color-primary);
    color: var(--color-bg);
    padding: var(--space-4) 0;
    text-align: center;
    width: 100%;
    margin-top: auto;
}

.footer__inner {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* =========================================
   10. ANIMACIONES AL SCROLL (INTERSECTION OBSERVER)
   ========================================= */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform; 
}

.fade-in {
    opacity: 0;
    transition: opacity 0.8s ease-out;
    will-change: opacity;
}

.fade-up.is-visible, .fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

/* =========================================
   11. BOTÓN FLOTANTE DE WHATSAPP
   ========================================= */
.whatsapp-float {
    position: fixed;
    bottom: var(--space-4); 
    right: var(--space-4); 
    width: 60px; 
    height: 60px;
    background-color: #25D366; 
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    z-index: 1000; 
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.whatsapp-float:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    background-color: #1ebe5d; 
    color: #ffffff;
}

@media (max-width: 767px) {
    .whatsapp-float {
        bottom: var(--space-3);
        right: var(--space-3);
        width: 52px;
        height: 52px;
    }
    
    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}

/* =========================================
   12. MODAL DE POLÍTICA DE PRIVACIDAD
   ========================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 37, 64, 0.8); 
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000; 
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--color-bg);
    width: 90%;
    max-width: 500px;
    padding: var(--space-6);
    border-radius: 12px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    transform: translateY(20px); 
    transition: transform 0.3s ease;
}

.modal-overlay.is-active .modal-content {
    transform: translateY(0); 
}

.modal-content h3 {
    color: var(--color-primary);
    margin-bottom: var(--space-3);
    font-size: 1.5rem;
}

.modal-content p {
    color: var(--color-text-light);
    margin-bottom: var(--space-2);
    font-size: 0.95rem;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #f0f4f8;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.25rem;
    color: var(--color-primary);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
}

.modal-close:hover {
    background-color: #e1e8ed;
}

/* =========================================
   13. SECCIÓN DEL FUNDADOR (Corregida y Responsiva)
   ========================================= */
.founder {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
    align-items: center;
    background-color: var(--color-bg);
    padding: var(--space-6);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(10, 37, 64, 0.04);
    border: 1px solid #e1e8ed;
    border-top: 4px solid var(--color-primary);
    margin-bottom: var(--space-8);
}

.founder__image {
    position: relative; 
    width: 100%;
    max-width: 100%;
    height: 380px; /* Altura controlada y proporcional para dispositivos móviles */
    margin: 0 auto;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.founder__image img.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%; 
    opacity: 0; 
    transition: opacity 1s ease-in-out; 
}

.founder__image img.slide.active {
    opacity: 1; 
}

.founder__content {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.founder__tag {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-primary);
    background-color: rgba(0, 216, 255, 0.15);
    padding: 4px 10px;
    border-radius: 4px;
    width: fit-content;
}

.founder__title {
    font-size: 1.6rem;
    color: var(--color-primary);
    font-weight: 700;
}

.founder__text {
    color: var(--color-text-light);
    font-size: 1rem;
    line-height: 1.6;
    font-style: italic;
}

.founder__author {
    margin-top: var(--space-2);
    display: flex;
    flex-direction: column;
}

.founder__author strong {
    font-size: 1rem;
    color: var(--color-primary);
}

.founder__author span {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

@media (min-width: 768px) {
    .founder {
        grid-template-columns: 360px 1fr;
        gap: var(--space-8);
        padding: var(--space-8);
    }
    
    .founder__image {
        margin: 0;
        height: 480px; /* Altura elegante y proporcional para escritorio */
    }
}






/* =========================================
   14. MEDIA QUERIES (ESCRITORIO)
   ========================================= */
@media (min-width: 768px) {
    .nav-toggle { display: none; }
    
    .nav {
        position: static;
        width: auto;
        height: auto;
        background-color: transparent;
        overflow-y: visible;
    }
    
    .nav__list {
        flex-direction: row; 
        padding-top: 0;
    }

    .nav__link {
        color: var(--color-text); 
        font-size: 1rem;
    }

    .hero__inner {
        flex-direction: row;
        align-items: center;
    }

    .hero__content {
        flex: 1;
        padding-right: var(--space-4);
    }

    .hero__image {
        flex: 1;
    }

    .hero__actions {
        flex-direction: row;
    }

    .contact__inner {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-8);
    }
    
    .contact__form-wrapper {
        max-width: 520px;
        margin: 0 auto;
        width: 100%;
    }
}