/* =========================================================
   CONFIGURACIÓN DE FUENTES LOCALES (PANGRAM OTF)
========================================================= */
@font-face {
    font-family: 'Pangram';
    src: url('Pangram-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Pangram';
    src: url('Pangram-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

/* VARIABLES DEL MANUAL DE IDENTIDAD */
:root {
    --color-fondo: #FFFFFF;
    --color-texto-principal: #333333;
    --color-azul-confianza: #0056D2;
    --color-azul-hover: #0046AB;
    --color-naranja-solucion: #FF7A00;
    --color-naranja-hover: #E06C00;
    --color-borde: #E0E0E0;
    --color-gris-claro: #F9F9F9;
    --color-topbar: #0A0A0A;
}

/* RESETEO Y CONFIGURACIÓN BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px; 
}

body {
    background-color: var(--color-fondo);
    color: var(--color-texto-principal);
    line-height: 1.6;
    overflow-x: hidden;
    font-family: 'Roboto', sans-serif; 
}

h1, h2, h3, h4, h5, h6, .nav-links a, .btn, .social-text {
    font-family: 'Pangram', sans-serif;
}

a {
    text-decoration: none;
}

/* PROTECCIÓN DE IMÁGENES MEDIANTE CSS */
img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

.hero-section .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 2;
    flex-wrap: wrap; 
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.relative-z {
    position: relative;
    z-index: 2;
}

/* BARRA SUPERIOR */
.top-bar {
    background-color: var(--color-topbar);
    color: #FFFFFF;
    padding: 5px 0;
    font-size: 0.85rem;
}

.top-bar-content {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
}

.social-text {
    font-weight: 300;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a {
    display: flex;
    align-items: center;
}

.social-png-top {
    width: 18px;
    height: 18px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.social-png-top:hover {
    transform: scale(1.3);
}

/* ENCABEZADO FIJO */
.sticky-header {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    border-bottom: 1px solid var(--color-borde);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0; 
}

.logo {
    max-width: 100px; 
    height: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-links a {
    color: var(--color-texto-principal);
    font-weight: 700;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--color-azul-confianza);
}

/* HERO SECTION */
.hero-section {
    position: relative;
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #FFFFFF;
    overflow: hidden; 
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('fondo_redes.jpg');
    background-size: cover; 
    background-position: right center;
    background-repeat: no-repeat;
    opacity: 0.15; 
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    z-index: 1;
}

.hero-content {
    max-width: 700px;
    padding: 40px 0;
    text-align: left;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--color-texto-principal);
}

.highlight {
    color: var(--color-azul-confianza);
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 40px;
    color: #555555;
}

.hero-animation {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    max-width: 500px;
    width: 100%;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-up {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

/* BOTONES */
.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: 700;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--color-azul-confianza);
    color: #FFFFFF;
}

.btn-primary:hover {
    background-color: var(--color-azul-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--color-naranja-solucion);
    color: #FFFFFF;
}

.btn-secondary:hover {
    background-color: var(--color-naranja-hover);
    transform: translateY(-2px);
}

/* TÍTULOS DE SECCIÓN */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 50px;
    color: var(--color-texto-principal);
}

/* SECCIÓN SOLUCIONES */
.services-section {
    padding: 100px 0 80px 0;
    background-color: var(--color-fondo);
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px 30px;
}

.service-card {
    background-color: transparent;
    border: 1px solid var(--color-borde);
    border-radius: 8px;
    padding: 40px 30px;
    width: calc(33.333% - 20px);
    min-width: 300px;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative; 
    margin-top: 40px; 
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-azul-confianza);
    box-shadow: 0 10px 30px rgba(0, 86, 210, 0.08);
}

.icon-circle {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    background-color: var(--color-fondo);
    border: 1px solid var(--color-borde);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    z-index: 5;
}

.service-card:hover .icon-circle {
    border-color: var(--color-azul-confianza);
    box-shadow: 0 10px 20px rgba(0, 86, 210, 0.15);
}

.static-icon {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.icon-circle + .center-title {
    margin-top: 30px;
}

.center-title {
    text-align: center;
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--color-texto-principal);
    line-height: 1.3;
}

.service-card p {
    font-size: 0.95rem;
    font-weight: 300;
    color: #666666;
    margin-bottom: 30px;
    flex-grow: 1;
    text-align: center;
}

.btn-card {
    display: block;
    padding: 12px 15px;
    background-color: transparent;
    color: var(--color-azul-confianza);
    border: 1px solid var(--color-azul-confianza);
    border-radius: 5px;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin: 0 auto;
    width: 100%;
}

.btn-card:hover {
    background-color: var(--color-azul-confianza);
    color: #FFFFFF;
}

/* SECCIÓN NOSOTROS */
.about-section {
    padding: 80px 0;
    background-color: var(--color-gris-claro);
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    align-items: center;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--color-azul-confianza);
}

.about-text p {
    margin-bottom: 15px;
    color: #555555;
    text-align: justify;
}

.bio-card {
    flex: 0 0 350px;
    background-color: #FFFFFF;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    text-align: center;
}

.bio-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 25px; 
    border: 3px solid var(--color-azul-confianza);
    background-color: #FFFFFF;
    position: relative;
    z-index: 10;
    transition: transform 0.4s ease;
    transform-origin: center bottom; 
}

.bio-photo:hover {
    transform: scale(1.4);
}

.bio-title {
    color: var(--color-naranja-solucion);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 15px;
}

/* SECCIÓN TESTIMONIOS */
.reviews-section {
    padding: 80px 0;
    background-color: #FFFFFF;
    overflow: hidden; 
}

/* SECCIÓN CLIENTES */
.clients-section {
    padding: 60px 0;
    background-color: var(--color-gris-claro);
    text-align: center;
    overflow: hidden; 
}

.clients-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
}

.clients-slider::before,
.clients-slider::after {
    content: "";
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.clients-slider::before {
    left: 0;
    background: linear-gradient(to right, var(--color-gris-claro) 0%, rgba(249, 249, 249, 0) 100%);
}

.clients-slider::after {
    right: 0;
    background: linear-gradient(to left, var(--color-gris-claro) 0%, rgba(249, 249, 249, 0) 100%);
}

.clients-track {
    display: flex;
    align-items: center;
    gap: 75px; 
    width: max-content;
    animation: scrollLogos 25s linear infinite;
}

.clients-track:hover {
    animation-play-state: paused;
}

.client-logo {
    max-width: 165px; 
    max-height: 95px; 
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.client-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.25);
}

@keyframes scrollLogos {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 37.5px)); } 
}

/* CONTACTO Y SIMETRÍA */
.contact-section {
    padding: 80px 0;
    background-color: #FFFFFF;
}

.contact-wrapper {
    max-width: 800px; 
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
}

.contact-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.contact-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-right {
    display: flex;
    flex-direction: column;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.input-group.h-100 {
    height: 100%;
}

.input-group label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-texto-principal);
}

.input-group input, .input-group textarea {
    padding: 12px;
    border: 1px solid var(--color-borde);
    border-radius: 5px;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    background-color: var(--color-gris-claro);
    transition: border-color 0.3s ease;
}

.input-group.h-100 textarea {
    flex-grow: 1;
    resize: none; 
}

.input-group input:focus, .input-group textarea:focus {
    outline: none;
    border-color: var(--color-azul-confianza);
}

.btn-submit {
    margin-top: 30px;
    width: 100%;
}

/* FOOTER */
footer {
    background-color: var(--color-topbar);
    color: #FFFFFF;
    padding: 40px 0 20px 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
    font-size: 0.9rem;
}

.footer-social {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-social span {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-social .social-icons {
    gap: 20px;
}

.footer-social .social-icons a {
    position: relative; 
    display: flex;
    flex-direction: column;
    align-items: center;
}

.social-png-footer {
    width: 22px;
    height: 22px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.footer-social .social-icons a:hover .social-png-footer {
    transform: scale(1.3);
}

.footer-social .social-icons a::after {
    content: attr(title);
    position: absolute;
    top: 30px; 
    font-family: 'Pangram', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: #FFFFFF; 
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: all 0.3s ease;
    white-space: nowrap;
    pointer-events: none;
}

.footer-social .social-icons a:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* RESPONSIVE DESIGN: MÓVIL */
@media (max-width: 900px) {
    .service-card {
        width: calc(50% - 15px);
    }
    .about-content {
        flex-direction: column;
    }
    .bio-card {
        flex: auto;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .hero-section .container {
        justify-content: center;
        flex-direction: column; 
        gap: 40px;
    }
    .hero-animation {
        justify-content: center;
        margin-top: 0;
    }
    .hero-content {
        text-align: center;
        transform: translateX(0);
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .nav-links {
        display: none;
    }
    .top-bar-content {
        justify-content: center;
    }
    .service-card {
        width: 100%;
    }
    .contact-columns {
        grid-template-columns: 1fr;
    }
    .input-group.h-100 textarea {
        min-height: 150px;
    }
    
    /* Corrección táctil en móviles para evitar tooltips atascados */
    .footer-social .social-icons a::after {
        display: none !important;
    }
    /* Anula el zoom atascado del fundador en pantallas táctiles */
    .bio-photo:hover {
        transform: scale(1);
    }
}