/* ==========================================================================
   Variables y Configuración Base
   ========================================================================== */
:root {
    /* Paleta de colores basada en el logo */
    --color-primary: #5a2e85; /* Morado GOMOY */
    --color-secondary: #00a0c6; /* Azul/Cyan MARKETING */
    --color-accent: #f0d53c; /* Amarillo del icono */
    --color-dark: #1a1a1a;
    --color-light: #f8f9fa;
    --color-white: #ffffff;
    --color-text: #4a4a4a;
    --color-text-light: #777777;
    
    /* Fuentes */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Espaciado y otros */
    --transition: all 0.3s ease;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 15px 30px rgba(0, 0, 0, 0.15);
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    line-height: 1.6;
    background-color: var(--color-white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-dark);
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: var(--color-primary);
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--color-light);
}

.text-center {
    text-align: center;
}

/* ==========================================================================
   Componentes Reutilizables
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(90, 46, 133, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

.btn-secondary:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
    transform: translateY(-3px);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.divider {
    height: 4px;
    width: 60px;
    background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
    margin: 0 auto 20px;
    border-radius: 2px;
}

.section-title p {
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   Header & Navbar
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: transparent;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition);
}

.header.sticky {
    background-color: var(--color-white);
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px;
    transition: var(--transition);
}

.header.sticky .logo img {
    height: 50px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--color-white);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
}

.header.sticky .nav-links a {
    color: var(--color-dark);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-secondary);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.social-header {
    display: flex;
    gap: 15px;
}

.social-header a {
    color: var(--color-white);
    font-size: 1.2rem;
}

.header.sticky .social-header a {
    color: var(--color-dark);
}

.social-header a:hover {
    color: var(--color-secondary);
    transform: translateY(-2px);
}

.mobile-menu-btn {
    display: none;
    color: var(--color-white);
    font-size: 1.5rem;
    cursor: pointer;
}

.header.sticky .mobile-menu-btn {
    color: var(--color-dark);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    height: 100vh;
    min-height: 600px;
    background: url('../img/hero_bg.png') 0 0 repeat;
    background-size: cover;
    position: relative;
    display: flex;
    align-items: center;
    text-align: center;
    animation: moveBackground 20s linear infinite;
}

@keyframes moveBackground {
    0% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
    100% {
        background-position: 0% 0%;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--color-white);
    max-width: 800px;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero h1 span {
    color: var(--color-accent);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    font-weight: 300;
}

.hero .btn {
    margin: 0 10px;
}

/* ==========================================================================
   Logos de Clientes
   ========================================================================== */
.clients {
    padding: 40px 0;
    background-color: var(--color-light);
    border-bottom: 1px solid #eaeaea;
}

.clients p {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-text-light);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
}

.clients-grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    color: #cccccc;
}

.clients-grid i {
    transition: var(--transition);
}

.clients-grid i:hover {
    color: var(--color-secondary);
    transform: scale(1.1);
}

/* ==========================================================================
   Servicios Section
   ========================================================================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background-color: var(--color-white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(to bottom, var(--color-primary), var(--color-secondary));
    z-index: -1;
    transition: var(--transition);
    opacity: 0.05;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.card:hover::before {
    height: 100%;
}

.card-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(0, 160, 198, 0.1);
    color: var(--color-secondary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.card:hover .card-icon {
    background-color: var(--color-secondary);
    color: var(--color-white);
    transform: scale(1.1);
}

.card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* ==========================================================================
   Nosotros Section
   ========================================================================== */
.nosotros-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 60px;
}

.nosotros-text p {
    margin-bottom: 20px;
    text-align: justify;
}

.nosotros-img {
    position: relative;
}

.nosotros-img img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.nosotros-img::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--color-primary);
    border-radius: var(--border-radius);
    z-index: -1;
}

.mision-vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 60px;
}

.mv-card {
    background-color: var(--color-white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    border-top: 4px solid var(--color-secondary);
}

.mv-icon {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.mv-card h3 {
    margin-bottom: 15px;
}

.mv-card p {
    color: var(--color-text-light);
}

/* Valores */
.valores-section h3 {
    font-size: 2rem;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.valores-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--color-accent);
}

.valores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.valor-item {
    background-color: var(--color-white);
    padding: 25px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--color-primary);
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.valor-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
    border-left-color: var(--color-secondary);
}

.valor-item h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--color-primary);
}

.valor-item p {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

/* ==========================================================================
   CV Empresarial
   ========================================================================== */
.cv-container {
    background-color: var(--color-white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.pdf-viewer {
    border: 1px solid #eaeaea;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 30px;
    background-color: #f5f5f5;
}

.cv-action {
    text-align: center;
}

/* ==========================================================================
   Testimonios
   ========================================================================== */
.testimonios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.testimonio-card {
    background-color: var(--color-white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    position: relative;
}

.quote-icon {
    font-size: 2rem;
    color: rgba(0, 160, 198, 0.2);
    position: absolute;
    top: 30px;
    right: 30px;
}

.testimonio-card p {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.autor {
    font-weight: 600;
    color: var(--color-primary);
    font-family: var(--font-heading);
}

/* ==========================================================================
   Contacto
   ========================================================================== */
.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item i {
    width: 50px;
    height: 50px;
    background-color: rgba(90, 46, 133, 0.1);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.info-item h4 {
    margin-bottom: 5px;
}

.info-item p, .info-item a {
    color: var(--color-text-light);
}

.info-item a:hover {
    color: var(--color-secondary);
}

.contacto-social h4 {
    margin-bottom: 15px;
    margin-top: 40px;
}

.contacto-social a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border-radius: 50%;
    margin-right: 10px;
    transition: var(--transition);
}

.contacto-social a:hover {
    background-color: var(--color-secondary);
    transform: translateY(-3px);
}

.map-container {
    height: 100%;
    min-height: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--color-dark);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    max-width: 350px;
}

.footer-links h4 {
    color: var(--color-white);
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
}

.footer-links a:hover {
    color: var(--color-secondary);
    padding-left: 5px;
}

.footer-bottom {
    background-color: rgba(0,0,0,0.3);
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* ==========================================================================
   Botones Flotantes (WhatsApp & Top)
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 35px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 100;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: #1ebe57;
    color: #fff;
    transform: scale(1.1);
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.btn-back-to-top {
    position: fixed;
    bottom: 40px;
    left: 40px;
    width: 45px;
    height: 45px;
    background-color: var(--color-primary);
    color: #fff;
    border-radius: 50%;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 100;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.btn-back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.btn-back-to-top:hover {
    background-color: var(--color-secondary);
    transform: translateY(-3px);
}

/* ==========================================================================
   Nuevas Secciones con Imágenes Generadas
   ========================================================================== */
.img-effect {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.img-effect:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-hover);
}

.parallax-banner {
    padding: 120px 0;
    background: url('../img/services_banner.png') center/cover no-repeat;
    background-attachment: fixed;
    position: relative;
    text-align: center;
    color: var(--color-white);
    margin-bottom: 60px;
}
.banner-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(90, 46, 133, 0.7); /* Morado Gomoy con opacidad */
    z-index: 1;
}
.banner-content {
    position: relative;
    z-index: 2;
}
.banner-content h2 {
    color: var(--color-white);
    font-size: 2.8rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.banner-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    font-weight: 300;
}

.cv-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: center;
}
.cv-image {
    position: relative;
}

.testimonios {
    background: url('../img/testimonials_bg.png') center/cover no-repeat;
    position: relative;
    background-attachment: fixed;
}
.testimonios::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(248, 249, 250, 0.9); /* Overlay claro para que el texto sea legible */
    z-index: 0;
}
.testimonios .container {
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   Media Queries (Responsive)
   ========================================================================== */
@media (max-width: 991px) {
    .nosotros-content, .mision-vision-grid, .contacto-grid, .cv-grid {
        grid-template-columns: 1fr;
    }
    
    .cv-image {
        margin-bottom: 30px;
    }
    
    .nosotros-img {
        margin-top: 30px;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background-color: var(--color-white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.4s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links a {
        color: var(--color-dark);
        font-size: 1.2rem;
    }
    
    .mobile-menu-btn {
        display: block;
        z-index: 1001;
    }
    
    .header.sticky .mobile-menu-btn.active {
        color: var(--color-dark);
    }
    
    .mobile-menu-btn.active {
        color: var(--color-dark);
    }
    
    .social-header {
        display: none;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 30px;
    }

    .btn-back-to-top {
        bottom: 20px;
        left: 20px;
    }
}
