/* VARIABLES DE COLOR Y ESTILOS GLOBALES */
:root {
    --primary-blue: #0A2540;
    --accent-blue: #007BFF;
    --bright-cyan: #00D2FF;
    --light-bg: #F4F7FA;
    --dark-bg: #0B132B;
    --text-dark: #2B2D42;
    --text-light: #FFFFFF;
    --whatsapp-green: #25D366;
    --whatsapp-green-hover: #1EBE5D;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
    background-color: var(--light-bg);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

/* HEADER Y NAVEGACIÓN */
header {
    background-color: var(--primary-blue);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s, box-shadow 0.3s;
}

header.scrolled {
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.8rem 1.5rem;
}

.logo-container img {
    height: 48px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--bright-cyan);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* HERO SECTION */
.hero {
    background: linear-gradient(135deg, rgba(10,37,64,0.92), rgba(11,19,43,0.95)), url('../img/publicidad-1.jpg') center/cover no-repeat;
    color: var(--text-light);
    padding: 6rem 1.5rem;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero p {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    color: #E0E6ED;
}

/* BOTÓN WHATSAPP */
.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background-color: var(--whatsapp-green);
    color: white;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s, background-color 0.3s;
}

.btn-whatsapp:hover {
    transform: translateY(-3px);
    background-color: var(--whatsapp-green-hover);
}

/* TÍTULOS DE SECCIÓN */
.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: var(--primary-blue);
    margin-bottom: 2.5rem;
    position: relative;
}

.section-title::after {
    content: '';
    width: 70px;
    height: 4px;
    background-color: var(--accent-blue);
    display: block;
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

/* QUIÉNES SOMOS */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.highlight-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    padding: 1.2rem;
    border-left: 4px solid var(--accent-blue);
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.highlight-box i {
    font-size: 1.8rem;
    color: var(--accent-blue);
}

.about-img img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    display: block;
    object-fit: cover;
}

/* SERVICIOS */
.services-wrapper {
    background-color: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #E2E8F0;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--accent-blue);
    margin-bottom: 1rem;
}

.service-card h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-blue);
}

/* TRABAJOS / GALERÍA */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.portfolio-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    aspect-ratio: 4/3;
    background-color: #000;
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

/* OCULTAMOS EL RECUADRO NEGRO CON TEXTO */
.portfolio-overlay {
    display: none !important;
}

/* MODAL LIGHTBOX (VISOR EN GRANDE) */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: fadeIn 0.25s ease;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.15);
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #ffffff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.lightbox-close:hover {
    color: var(--bright-cyan);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* CONTACTO */
.contact-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    margin-bottom: 1.8rem;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--accent-blue);
    margin-top: 0.2rem;
}

.info-item h4 {
    color: var(--primary-blue);
    margin-bottom: 0.2rem;
}

.info-item a {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
}

.info-item a:hover {
    text-decoration: underline;
}

.contact-action {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: var(--light-bg);
    padding: 2.5rem 1.5rem;
    border-radius: 10px;
}

.action-icon {
    font-size: 3.5rem;
    color: var(--whatsapp-green);
    margin-bottom: 1rem;
}

.contact-action h3 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.contact-action p {
    margin-bottom: 1.5rem;
}

/* BOTÓN FLOTANTE WHATSAPP */
.floating-whatsapp {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: var(--whatsapp-green);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 1000;
    text-decoration: none;
    transition: transform 0.3s, background-color 0.3s;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    background-color: var(--whatsapp-green-hover);
}

/* FOOTER */
footer {
    background-color: var(--dark-bg);
    color: white;
    text-align: center;
    padding: 2rem 1rem;
    font-size: 0.9rem;
}

/* RESPONSIVE */
@media (max-width: 850px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary-blue);
        padding: 1.5rem;
        gap: 1.2rem;
        box-shadow: 0 5px 10px rgba(0,0,0,0.2);
    }

    .nav-links.active {
        display: flex;
    }

    .about-grid,
    .contact-card {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.1rem;
    }
}