/* =========================================
   VARIABLES DE COLOR Y TIPOGRAFÍA
========================================= */
:root {
    --primary-color: #0B2B46; /* Azul marino profundo del logo */
    --secondary-color: #007BFF; /* Azul brillante para botones */
    --text-color: #333333; /* Gris oscuro para lectura */
    --bg-light: #F4F7F6; /* Gris muy claro para secciones alternas */
    --white: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--white);
    color: var(--text-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: var(--text-color);
}

/* =========================================
   ENCABEZADO Y NAVEGACIÓN 
========================================= */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    background-color: var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 80px; /* Altura compacta y fija para la barra */
}

/* Contenedor principal del logo */
.logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 14px; /* Espacio equilibrado entre el icono y el texto */
    text-decoration: none;
}

/* Estilo para el nuevo isotipo transparente */
.logo-img {
    height: 52px; /* Tamaño perfecto para destacar sin romper la barra */
    width: auto;  /* Mantiene la proporción exacta del gráfico */
    object-fit: contain;
    display: block;
}

/* Bloque de texto corporativo a un lado */
.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: 0.5px;
}

.brand-subtitle {
    font-size: 0.56rem;
    font-weight: 700;
    color: #64748B; /* Gris corporativo formal */
    letter-spacing: 0.7px;
    margin-top: 2px;
}

.navbar ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.navbar a {
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: var(--secondary-color);
}

.btn-llamanos {
    background-color: var(--secondary-color);
    color: var(--white) !important;
    padding: 8px 20px;
    border-radius: 5px;
    font-weight: bold;
}

.btn-llamanos:hover {
    background-color: #0056b3;
}

/* =========================================
   SECCIÓN HERO (Fondo azul oscuro)
========================================= */
.hero-section {
    background-color: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4rem 10%;
    gap: 2rem;
}

.hero-content {
    flex: 1;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.hero-image {
    flex: 1;
    text-align: right;
}

.hero-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.cta-button {
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #0056b3;
}

/* =========================================
   SECCIÓN DE SERVICIOS (Fondo azul oscuro)
========================================= */
.services-section {
    background-color: var(--primary-color);
    padding: 5rem 10%;
    text-align: center;
}

.services-section h2 {
    color: var(--white);
    margin-bottom: 3rem;
    font-size: 2rem;
}

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

.service-card {
    background-color: var(--white);
    padding: 2.5rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
}

.service-card .icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

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

/* =========================================
   SECCIÓN NOSOTROS (Fondo blanco)
========================================= */
.about-section {
    display: flex;
    align-items: center;
    padding: 5rem 10%;
    gap: 3rem;
    background-color: var(--white);
}

.about-image {
    flex: 1;
}

.about-image img {
    max-width: 100%;
    border-radius: 10px;
}

.about-content {
    flex: 1;
}

.about-content h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

/* =========================================
   GALERÍA BÁSICA
========================================= */
.gallery-section {
    background-color: var(--bg-light);
    padding: 5rem 10%;
    text-align: center;
}

.gallery-section h2 {
    color: var(--primary-color);
    margin-bottom: 3rem;
    font-size: 2rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.gallery-grid img:hover {
    transform: scale(1.05);
}

/* =========================================
   SECCIÓN DE CONTACTO (Fondo azul oscuro)
========================================= */
.contact-section {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 5rem 10%;
}

.contact-section h2 {
    text-align: center;
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 3rem;
}

.contact-wrapper {
    display: flex;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-form {
    flex: 2;
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-form input, 
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #CBD5E0;
    border-radius: 5px;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.form-submit {
    width: 100%;
}

.contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    justify-content: center;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-top: 5px;
}

.info-item strong {
    display: block;
    margin-bottom: 0.2rem;
}

/* =========================================
   PIE DE PÁGINA
========================================= */
.footer {
    background-color: #061B2E;
    color: #A0AEC0;
    text-align: center;
    padding: 3rem 10%;
}

.footer-logo {
    height: 40px;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

.privacy-link {
    display: block;
    color: var(--white);
    margin-bottom: 1rem;
}

.privacy-link:hover {
    text-decoration: underline;
}

/* =========================================
   BOTÓN DE WHATSAPP FLOTANTE
========================================= */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 100;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: #FFF;
}

/* =========================================
   DISEÑO RESPONSIVO (Para móviles)
========================================= */
.menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: var(--primary-color);
    cursor: pointer;
}

html {
    scroll-behavior: smooth;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .navbar ul {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: -120%;
        width: 100vw;
        background-color: var(--white);
        text-align: center;
        padding: 2rem 0;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        transition: left 0.3s ease;
        z-index: 999;
    }

    .navbar ul.active {
        left: -5vw; 
    }
    
    .navbar ul li {
        margin: 1rem 0;
    }

    .hero-section, .about-section, .contact-wrapper {
        flex-direction: column;
    }
    
    .hero-image, .about-image {
        text-align: center;
        margin-top: 2rem;
    }
    
    .form-row {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 42px;
    }
    .brand-title {
        font-size: 0.8rem;
    }
    .brand-subtitle {
        font-size: 0.45rem;
        letter-spacing: 0.4px;
    }
    .brand-logo {
        gap: 8px;
    }
}

.rf-digital-badge {
    position: fixed;
    bottom: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-family: sans-serif;
    z-index: 9999;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    backdrop-filter: blur(5px);
    transition: opacity 0.3s ease;
    text-decoration: none;
}

.rf-digital-badge:hover {
    opacity: 0.9;
    color: #ffffff;
}

.rf-digital-badge strong {
    color: #38bdf8;
}