/* ============ RESET ============ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

html {
    scroll-behavior: smooth;
}

/* ============ TOPBAR & HEADER UNIFICADOS ============ */
.top-bar,
.main-header {
    background: #000000;
    color: #ffffff;
    width: 100%;
}

/* ===== TOPBAR ===== */
.top-bar {
    padding: 6px 20px;
    font-size: 14px;
    display: flex;
    justify-content: center;
}

.topbar-info {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    text-align: center;
}

/* ===== HEADER ===== */
.main-header {
    position: sticky;
    top: 0;
    z-index: 999;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.container-header {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo img {
    width: clamp(110px, 14vw, 200px);
    height: auto;
}

/* Navbar Escritorio */
.navbar ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.navbar a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    transition: color .3s ease;
}

.navbar a:hover,
.navbar a.active {
    color: #25d366;
}


/* Botón Hamburguesa (Oculto en escritorio) */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 26px;
    color: #ffffff;
    cursor: pointer;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {

    /* Ocultamos la topbar en móvil */
    .top-bar {
        display: none;
    }

    /* Logo centrado y menú escondido */
    .navbar ul {
        display: none;
    }

    .container-header {
        justify-content: center;
    }

    /* Aparece el menú hamburguesa */
    .menu-toggle {
        display: block;
        position: absolute;
        right: 20px;
    }
}

/* ================= FOOTER ================= */
.footer {
    background: #000;
    color: #fff;
    padding-top: 60px;
    font-family: Arial, sans-serif;
}

/* Grid general centrado */
.footer-content {
    max-width: 1300px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    align-items: start;
    justify-items: center;
    text-align: center;
    padding-bottom: 50px;
}

/* === Columna 1: Logo + Nav === */
.footer-column {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo img {
    width: clamp(130px, 15vw, 200px);
    margin-bottom: 20px;
}

.footer-nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0;
}

.footer-nav a {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: .3s;
}

/* Estado activo + hover */
.footer-nav a:hover,
.footer-nav a.active {
    color: #00b7ff;
    text-decoration: underline;
}

/* === Columna 2: Mapa === */
.footer-map h4 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.footer-map iframe {
    border-radius: 12px;
    width: 100%;
    max-width: 350px;
    height: 250px;
}

.footer-map-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 18px;
    border: 1px solid #fff;
    border-radius: 8px;
    text-decoration: none;
    color: #fff;
    transition: .3s;
}

.footer-map-btn:hover {
    background: #fff;
    color: #000;
}

/* === Columna 3: Contacto === */
.footer-contact-box {
    background: #111;
    padding: 25px;
    border-radius: 14px;
    width: 90%;
    max-width: 320px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-contact-box h4 {
    color: #00b7ff;
    margin-bottom: 14px;
}

.footer-contact-box p {
    margin: 6px 0;
}

/* Botón WhatsApp */
.footer-wpp {
    background: #25d366;
    color: #000;
    padding: 12px 20px;
    font-weight: bold;
    border-radius: 10px;
    margin-top: 14px;
    text-decoration: none;
    transition: 0.3s;
}

.footer-wpp:hover {
    background: #1fa855;
}

/* Copyright */
.footer-bottom {
    background: #080808;
    text-align: center;
    padding: 16px 0;
    font-size: 14px;
}


/* ================== RESPONSIVE ================== */

/* Laptops 1300px hacia abajo */
@media (max-width: 1300px) {
    .footer-content {
        max-width: 1100px;
    }
}

/* Laptops pequeñas */
@media (max-width: 1100px) {
    .footer-content {
        gap: 30px;
    }
}

/* Tablets horizontales */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-map iframe {
        height: 230px;
    }
}

/* Tablets verticales */
@media (max-width: 820px) {
    .footer-content {
        gap: 25px;
    }
}

/* Celulares grandes */
@media (max-width: 700px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-column,
    .footer-contact-box,
    .footer-map {
        width: 100%;
        max-width: 400px;
        margin: auto;
    }
}

/* Celulares medianos */
@media (max-width: 600px) {
    .footer-map iframe {
        height: 210px;
    }

    .footer-logo img {
        width: 150px;
    }

    .footer-nav a {
        font-size: 0.95rem;
    }
}

/* Celulares chicos */
@media (max-width: 480px) {
    .footer-map iframe {
        height: 200px;
    }

    .footer-contact-box {
        padding: 18px;
    }
}

/* MINIS (Galaxy Mini, iPhone 5, etc.) */
@media (max-width: 380px) {
    .footer-contact-box p {
        font-size: 0.85rem;
    }

    .footer-nav a {
        font-size: 0.85rem;
    }
}

/* MUY MUY pequeños */
@media (max-width: 330px) {
    .footer-logo img {
        width: 120px;
    }

    .footer-contact-box {
        padding: 15px;
    }
}

/* Botón Hamburguesa */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 30px;
    color: #ffffff;
    cursor: pointer;
    z-index: 1002;
}

/* Estado activo del botón */
.menu-toggle.active {
    transform: rotate(90deg);
}

/* Overlay del menú móvil */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #000000e8;
    padding-top: 100px;
    text-align: center;
    flex-direction: column;
    gap: 20px;
    z-index: 1001;
}

.mobile-menu a {
    font-size: 22px;
    color: #fff;
    text-decoration: none;
    padding: 10px;
}

.mobile-menu a:hover {
    color: #25d366;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {

    .navbar { display: none; }

    .menu-toggle {
        display: block;
        position: absolute;
        right: 20px;
    }

    /* Activar menú cuando está abierto */
    .mobile-menu.active {
        display: flex;
    }
}


/* ==============================
   SECCIÓN CONTACTO
================================ */

.contacto {
    padding: 80px 20px;
    background: #f5f5f5;
    text-align: center;
}

.contacto-title {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #222;
}

.contacto-subtitle {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 50px;
}

/* Grid principal */
.contacto-grid {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 700px;
    margin: 0 auto;
}

/* ==============================
   FORMULARIO
================================ */

.contacto-form {
    background: #ffffff;
    padding: 40px 35px;
    border-radius: 18px;
    box-shadow: 0px 8px 25px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Inputs */
.contacto-form input,
.contacto-form select,
.contacto-form textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid #cfcfcf;
    font-size: 0.95rem;
    outline: none;
    transition: 0.3s ease;
}

/* Focus */
.contacto-form input:focus,
.contacto-form select:focus,
.contacto-form textarea:focus {
    border-color: #003c80;
    box-shadow: 0 0 0 2px rgba(0, 60, 128, 0.15);
}

/* Textarea */
.contacto-form textarea {
    min-height: 130px;
    resize: none;
}

/* Botón */
.contacto-form button {
    margin-top: 10px;
    padding: 15px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #003c80, #0052b0);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
}

.contacto-form button:hover {
    background: linear-gradient(135deg, #b80000, #e00000);
    transform: translateY(-2px);
}

/* ==============================
   RESPONSIVE
================================ */

/* Tablets */
@media (max-width: 900px) {
    .contacto {
        padding: 60px 16px;
    }

    .contacto-title {
        font-size: 2rem;
    }

    .contacto-form {
        padding: 32px 28px;
    }
}

/* Celulares grandes */
@media (max-width: 600px) {
    .contacto-title {
        font-size: 1.8rem;
    }

    .contacto-subtitle {
        font-size: 1rem;
        margin-bottom: 35px;
    }

    .contacto-form {
        padding: 26px 22px;
        gap: 14px;
    }

    .contacto-form input,
    .contacto-form select,
    .contacto-form textarea {
        font-size: 0.9rem;
        padding: 12px 14px;
    }

    .contacto-form button {
        padding: 14px;
        font-size: 0.95rem;
    }
}

/* Celulares chicos */
@media (max-width: 380px) {
    .contacto-form {
        padding: 22px 18px;
    }

    .contacto-title {
        font-size: 1.6rem;
    }
}



