/* VARIABLES DE COLOR */
:root {
    --primary-blue: #004481;
    --secondary-blue: #002a50;
    --accent-gold: #e6b800;
    --accent-green: #25D366;
    --text-dark: #333;
    --text-light: #666;
    --white: #fff;
    --gray-bg: #f9f9f9;
}

/* RESET BÁSICO */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

html {
    scroll-padding-top: 70px; /* el menú fijo no tapa los títulos al navegar */
}

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

/* BARRA SUPERIOR */
.top-bar {
    background-color: var(--secondary-blue);
    color: var(--white);
    padding: 10px 0;
    font-size: 0.9rem;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.top-facebook {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

.top-facebook:hover {
    color: var(--accent-gold);
}

/* NAVEGACIÓN */
.navbar {
    background-color: var(--primary-blue);
    padding: 5px 0; /* BARRA DELGADA */
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* LOGO: sin fondo, alargado y dentro de la barra azul */
.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 54px;   /* alto: cabe dentro de la barra */
    width: 190px;   /* ancho: más alargado (baja/sube para ajustar) */
    display: block;
    object-fit: fill;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-gold);
}

/* HERO SECTION */
.hero {
    background: linear-gradient(rgba(0, 42, 80, 0.85), rgba(0, 68, 129, 0.85)), url('https://images.unsplash.com/photo-1518770660439-4636190af475?w=1200&h=600&fit=crop');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 100px 0;
    text-align: center;
}

.experience-badge {
    background-color: var(--accent-gold);
    color: var(--secondary-blue);
    padding: 8px 20px;
    font-weight: bold;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.hero h1 {
    font-size: 3.4rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.btn-hero {
    text-decoration: none;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.05rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s, background-color 0.3s, color 0.3s;
}

.btn-hero:hover {
    transform: translateY(-3px);
}

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

.btn-hero-primary:hover {
    background-color: #128C7E;
}

.btn-hero-outline {
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-hero-outline:hover {
    background-color: var(--white);
    color: var(--primary-blue);
}

.shipping-banner {
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--white);
    padding: 15px 30px;
    border-radius: 8px;
    display: inline-block;
    font-size: 1.1rem;
    font-weight: bold;
}

.shipping-banner i {
    margin-right: 10px;
}

/* SECCIONES GENERALES */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--accent-gold);
    margin: 10px auto 0;
}

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

.bg-dark {
    background-color: var(--secondary-blue);
    color: var(--white);
}

.text-white {
    color: var(--white) !important;
}

/* GRID DE PRODUCTOS */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* IMAGEN DE LA TARJETA: diseño elegante; si existe una foto en /img se muestra encima */
.card-visual {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    position: relative;
    color: rgba(255,255,255,0.92);
    font-size: 3.4rem;
    background:
        radial-gradient(circle at 78% 18%, rgba(230,184,0,0.28), transparent 45%),
        linear-gradient(135deg, var(--secondary-blue) 0%, var(--primary-blue) 100%);
    background-size: cover;
    background-position: center;
}

.card-visual::before {
    content: '';
    position: absolute;
    width: 130px;
    height: 130px;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 50%;
}

.card-visual i {
    position: relative;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.35));
}

.card-visual.has-photo i,
.card-visual.has-photo::before {
    display: none;
}

.card-info {
    padding: 20px;
    text-align: center;
}

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

.card-info p {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.btn-wa {
    background-color: var(--accent-green);
    color: var(--white);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s;
}

.btn-wa:hover {
    background-color: #128C7E;
}

/* SERVICIO TÉCNICO */
.service-list {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.service-item {
    text-align: center;
    padding: 20px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    flex: 1;
    min-width: 200px;
}

.service-item i {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.btn-wa-large {
    background-color: var(--accent-green);
    color: var(--white);
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* NOSOTROS */
.about-intro {
    text-align: center;
    font-size: 1.2rem;
    max-width: 760px;
    margin: 0 auto 40px;
    color: var(--text-light);
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto 60px;
}

.stat {
    background: var(--gray-bg);
    border-radius: 10px;
    padding: 25px 20px;
    text-align: center;
    border-top: 4px solid var(--accent-gold);
}

.stat-number {
    display: block;
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1.2;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.95rem;
}

.timeline {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 3px;
    background: linear-gradient(var(--primary-blue), var(--accent-gold));
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    display: flex;
    gap: 25px;
    margin-bottom: 35px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -38px;
    top: 10px;
    width: 14px;
    height: 14px;
    background: var(--white);
    border: 3px solid var(--primary-blue);
    border-radius: 50%;
}

.timeline-year {
    flex: 0 0 80px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.timeline-content h3 {
    color: var(--secondary-blue);
    margin-bottom: 6px;
    font-size: 1.15rem;
}

.timeline-content p {
    color: var(--text-light);
    font-size: 0.98rem;
}

/* CONTACTO */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.contact-info i {
    margin-right: 10px;
    color: var(--accent-gold);
}

/* HORARIO */
.schedule {
    background-color: rgba(255,255,255,0.08);
    border-left: 4px solid var(--accent-gold);
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 15px;
}

.schedule p {
    margin-bottom: 6px;
    font-size: 1rem;
}

.schedule p:last-child {
    margin-bottom: 0;
}

.schedule .schedule-title {
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--accent-gold);
}

.schedule .schedule-title i {
    margin-right: 8px;
}

/* Estilo para el código Plus */
.plus-code {
    font-family: monospace;
    background-color: rgba(255,255,255,0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
    letter-spacing: 1px;
}

/* Estilo para el contenedor del mapa */
.map-container {
    width: 100%;
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* FACEBOOK */
.btn-facebook {
    background-color: #1877F2;
    color: var(--white);
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    transition: background-color 0.3s, transform 0.3s;
}

.btn-facebook:hover {
    background-color: #0f5fcc;
    transform: translateY(-2px);
}

.contact-info .btn-facebook i {
    color: var(--white);
    margin-right: 0;
}

.footer-facebook {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-top: 12px;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    transition: background-color 0.3s, border-color 0.3s;
}

.footer-facebook:hover {
    background-color: #1877F2;
    border-color: #1877F2;
}

/* FOOTER */
footer {
    background-color: #001a33;
    color: var(--white);
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
}

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

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

/* BOTÓN MENÚ MÓVIL */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.6rem;
    cursor: pointer;
    padding: 6px 10px;
}

/* ANIMACIÓN AL APARECER */
.js-reveal .reveal {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.js-reveal .reveal.visible {
    opacity: 1;
    transform: none;
}

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

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background-color: var(--secondary-blue);
        box-shadow: 0 8px 15px rgba(0,0,0,0.2);
    }

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

    .nav-links li a {
        display: block;
        padding: 14px 5%;
        border-top: 1px solid rgba(255,255,255,0.1);
    }

    .section {
        padding: 60px 0;
    }

    .timeline-item {
        flex-direction: column;
        gap: 4px;
    }

    .timeline-year {
        flex: none;
    }

    .hero {
        padding: 70px 0;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .logo-img {
        height: 44px;
        width: 154px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .top-bar .container {
        justify-content: center;
        text-align: center;
    }
}