/* --- Variables de Diseño Inspiradas en el Logotipo de Lítica --- */
:root {
    --primary-color: #0d1e44;   /* El color azul marino exacto de tu logotipo */
    --accent-color: #0066cc;    /* Azul de Botones y Detalles */
    --text-color: #333333;      /* Gris Oscuro para Textos Legibles */
    --light-bg: #f4f6f9;        /* Fondo claro grisáceo */
    --white: #ffffff;
    --transition: all 0.3s ease;
}

/* --- Resets Estructura Global --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
}

body {
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: 80px 0;
}

.background-light {
    background-color: var(--light-bg);
}

.text-center {
    text-align: center;
}

/* --- Estilos de Títulos y Separadores --- */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.line {
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 15px auto 0;
}

/* --- Grillas de Distribución --- */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* --- Botones --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 30px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #0052a3;
}

.btn-whatsapp-hero {
    background-color: #25d366;
    color: var(--white);
}

.btn-whatsapp-hero:hover {
    background-color: #20ba5a;
}

.btn-block {
    width: 100%;
}

/* --- Menú de Navegación superior (Navbar) --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.navbar-container {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    padding: 10px 4%; 
    width: 100% !important;
    max-width: none !important; 
    margin: 0;
}

.logo {
    display: block;
}

.logo img {
    height: 50px;
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-left: auto; 
}

.nav-link {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-color);
}

.btn-contact-nav {
    background-color: var(--primary-color);
    color: var(--white) !important; 
    padding: 8px 20px;
    border-radius: 4px;
    transition: var(--transition);
}

.btn-contact-nav:hover {
    background-color: var(--accent-color);
    color: var(--white) !important; 
    opacity: 0.9;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* --- Hero / Inicio --- */
.hero-section {
    position: relative;
    height: 100vh;
    background: #0a2540 url(./Imagenes/Grupa\ Photo.png) no-repeat center center/cover;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(10, 37, 64, 0.95), rgba(10, 37, 64, 0.5));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 900px;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    text-transform: uppercase;
}

/* BAJADA EN UNA SOLA LÍNEA CON RELIEVE Y NEGRITA */
.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 35px;
    color: #ffffff;
    letter-spacing: 0.3px;
    white-space: nowrap; /* Fuerza a mantenerse en una sola línea */
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8), 0 0 12px rgba(0, 102, 204, 0.6);
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

/* --- Tarjetas de Servicios --- */
.card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.card:hover {
    transform: translateY(-5px);
    border-bottom-color: var(--accent-color);
}

.card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* --- Formulario e Información de Contacto --- */
.contact-list {
    list-style: none;
    margin-top: 25px;
}

.contact-list li {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.contact-list i {
    color: var(--accent-color);
    margin-right: 15px;
    width: 20px;
}

.contact-form .form-group {
    margin-bottom: 15px;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.contact-form input:focus, .contact-form textarea:focus {
    border-color: var(--accent-color);
}

/* --- Footer & Firma de Diseñador --- */
.footer {
    background-color: #051424;
    color: #8a99ad;
    padding: 15px 0 15px;
    font-size: 0.9rem;
}

.footer-logo {
    margin-bottom: 15px;
}

.footer-logo img {
    height: 45px;
    width: auto;
    object-fit: contain;
    opacity: 0.85;
    transition: var(--transition);
    filter: brightness(0) invert(1);
}

.footer-logo img:hover {
    opacity: 1;
    transform: translateY(-2px);
}

/* Estilo para los Créditos del Diseñador */
.designer-credits {
    margin-top: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.78rem;
    color: #61738a;
    letter-spacing: 0.5px;
}

.designer-logo {
    height: 22px;
    width: auto;
    object-fit: contain;
    opacity: 0.7;
    transition: var(--transition);
}

.designer-credits:hover .designer-logo {
    opacity: 1;
    transform: scale(1.08);
}

/* --- BOTÓN VERDE WHATSAPP CON PALPITACIÓN BLANCA --- */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366; /* Mantiene su verde original */
    width: 85px;
    height: 85px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    animation: palpitacion-blanca 1.8s infinite;
}

.whatsapp-btn img {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    background-color: #20ba5a;
}

/* Animación de palpitación (Solamente la onda expansiva es Blanca) */
@keyframes palpitacion-blanca {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.9), 0 4px 15px rgba(0, 0, 0, 0.3);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 20px rgba(255, 255, 255, 0), 0 6px 20px rgba(0, 0, 0, 0.2);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0), 0 4px 15px rgba(0, 0, 0, 0.3);
    }
}

/* --- ADAPTABILIDAD MÓVIL (RESPONSIVE) COMPLETA --- */
@media (max-width: 992px) {
    .hero-subtitle {
        white-space: normal; /* Permite salto de línea en tablets si es necesario */
        font-size: 1.15rem;
    }
}

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

    .navbar-container {
        width: 90% !important;
        padding: 15px 0;
        margin: 0 auto;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--white);
        flex-direction: column;
        padding-top: 50px;
        margin-left: 0;
        transition: var(--transition);
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-content h1 {
        font-size: 2.3rem;
    }

    /* Adaptación responsive de la bajada para móviles */
    .hero-subtitle {
        font-size: 0.95rem;
        white-space: normal; /* En teléfonos permite ajustarse sin salirse de la pantalla */
        line-height: 1.4;
        margin-bottom: 25px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        border-radius: 30px !important;
    }

    /* Botón flotante ajustado para teléfonos */
    .whatsapp-btn {
        bottom: 20px;
        right: 20px;
        width: 75px;
        height: 75px;
    }

    .whatsapp-btn img {
        width: 60px;
        height: 60px;
    }
}
