/* =============================== */
/* VARIABLES */
/* =============================== */
:root {
    --rojo: #d01818;
    --blanco: #ffffff;
    --negro: #111111;
    --gris: #f5f5f5;
}

/* =============================== */
/* GLOBAL */
/* =============================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    background: var(--blanco);
    color: var(--negro);
}

/* =============================== */
/* NAVBAR */
/* =============================== */
.navbar {
    width: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 50;
}

.nav-container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding: 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 22px;
    font-weight: 700;
    color: var(--blanco);
    text-decoration: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-links a {
    color: var(--blanco);
    text-decoration: none;
    font-size: 16px;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--rojo);
    transform: scale(1.08);
    text-shadow: 0 0 8px rgba(208, 24, 24, 0.6);
}

.nav-whatsapp {
    padding: 10px 18px;
    background: var(--rojo);
    border-radius: 6px;
    color: var(--blanco) !important;
    font-weight: 600;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--blanco);
    display: block;
}

.nav-logo img {
    height: 80px;
    width: auto;
    object-fit: contain;
}

/* =============================== */
/* NAVBAR RESPONSIVE */
/* =============================== */
@media (max-width: 850px) {
    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 60%;
        height: 100vh;
        background: rgba(0,0,0,0.8);
        backdrop-filter: blur(8px);
        flex-direction: column;
        padding-top: 40px;
        gap: 30px;
        transition: 0.3s;
        margin-top: 25px;
    }

    .nav-links.open {
        right: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-logo img {
        height: 60px;
    }
}

/* =============================== */
/* HERO CONTACTO */
/* =============================== */
.hero-contacto {
    width: 100%;
    height: 55vh;
    background-image: url("../media/hero_seccion.jpg"); /* Cambia tu imagen */
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-contacto-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
}

.hero-contacto-content {
    position: relative;
    color: white;
    text-align: center;
}

.hero-contacto-content h1 {
    font-size: 48px;
    margin-bottom: 10px;
}

.hero-contacto-content p {
    font-size: 20px;
    opacity: 0.9;
}

@media (max-width: 700px) {
    .hero-contacto-content h1 {
        font-size: 34px;
    }
    .hero-contacto-content p {
        font-size: 16px;
    }
}

/* =============================== */
/* SOBRE NOSOTROS */
/* =============================== */
.contacto-nosotros {
    width: 100%;
    padding: 70px 0;
    background: #ffffff;
    text-align: center;
}

.contacto-nosotros-container {
    width: 90%;
    max-width: 900px;
    margin: auto;
}

.contacto-nosotros h2 {
    font-size: 34px;
    color: var(--rojo);
    margin-bottom: 20px;
}

.contacto-nosotros p {
    font-size: 17px;
    line-height: 1.7;
    color: #333;
    margin-bottom: 15px;
}

/* =============================== */
/* TARJETAS DE CONTACTO */
/* =============================== */
.contacto-tarjetas {
    width: 100%;
    padding: 80px 0;
    background: #f2f2f2;
}

.contacto-tarjetas-container {
    width: 90%;
    max-width: 1200px;
    margin: auto;

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.tarjeta-contacto {
    background: white;
    padding: 30px 20px;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.tarjeta-contacto:hover {
    transform: translateY(-6px);
}

.tarjeta-contacto i {
    font-size: 36px;
    color: var(--rojo);
    margin-bottom: 12px;
}

.tarjeta-contacto h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.tarjeta-contacto p {
    color: #444;
    font-size: 15px;
    margin-bottom: 15px;
}

.tarjeta-contacto a {
    display: inline-block;
    color: white;
    background: var(--rojo);
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 15px;
    transition: 0.3s;
}

.tarjeta-contacto a:hover {
    background: #b31212;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .contacto-tarjetas-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .contacto-tarjetas-container {
        grid-template-columns: 1fr;
    }
}

/* =============================== */
/* FORMULARIO DE CONTACTO */
/* =============================== */
.contacto-formulario {
    width: 100%;
    padding: 80px 0;
    background: #ffffff;
}

.contacto-formulario-container {
    width: 90%;
    max-width: 700px;
    margin: auto;
    text-align: center;
}

.contacto-formulario h2 {
    font-size: 34px;
    color: var(--rojo);
    margin-bottom: 25px;
}

.contacto-formulario form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contacto-formulario input,
.contacto-formulario textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 16px;
}

.contacto-formulario textarea {
    height: 150px;
    resize: none;
}

.contacto-formulario button {
    background: var(--rojo);
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s;
}

.contacto-formulario button:hover {
    background: #b31212;
}

/* =============================== */
/* FORMULARIO CON IMAGEN */
/* =============================== */
.contacto-formulario-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
}

.contacto-formulario-imagen img {
    width: 100%;
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    object-fit: cover;
}

/* Caja del formulario */
.contacto-formulario-box h2 {
    font-size: 34px;
    color: var(--rojo);
    margin-bottom: 20px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .contacto-formulario-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .contacto-formulario-imagen img {
        max-width: 500px;
        margin: 0 auto;
    }
}


/* =============================== */
/* FORMULARIO DE CONTACTO */
/* =============================== */
.contacto-formulario {
    width: 100%;
    padding: 80px 0;
    background: #ffffff;
}

.contacto-formulario-container {
    width: 90%;
    max-width: 900px;
    margin: auto;
}

.contacto-formulario-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
}

.contacto-formulario-imagen img {
    width: 100%;
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    object-fit: cover;
}

.contacto-formulario-box h2 {
    font-size: 34px;
    color: var(--rojo);
    margin-bottom: 25px;
    text-align: center;
}

.contacto-formulario form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contacto-formulario input,
.contacto-formulario textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 16px;
}

.contacto-formulario textarea {
    height: 150px;
    resize: none;
}

.contacto-formulario button {
    background: var(--rojo);
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s;
}

.contacto-formulario button:hover {
    background: #b31212;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .contacto-formulario-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .contacto-formulario-imagen img {
        max-width: 500px;
        margin: 0 auto;
    }
}



/* =============================== */
/* CTA FINAL CONTACTO */
/* =============================== */
.cta-final-contacto {
    width: 100%;
    padding: 80px 0;
    background: var(--rojo);
    text-align: center;
    color: white;
}

.cta-final-container h2 {
    font-size: 34px;
    margin-bottom: 10px;
}

.cta-final-container p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 20px;
}

.cta-final-btn {
    display: inline-block;
    padding: 14px 26px;
    background: white;
    color: var(--rojo);
    border-radius: 10px;
    font-size: 18px;
    text-decoration: none;
    transition: 0.3s;
}

.cta-final-btn:hover {
    background: #f4f4f4;
    transform: scale(1.05);
}



/* =============================== */
/* FOOTER */
/* =============================== */
.footer {
    width: 100%;
    background: #111;
    color: white;
    padding-top: 60px;
}

.footer-container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-brand h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.footer-brand p {
    font-size: 15px;
    line-height: 1.6;
    max-width: 300px;
    color: #ccc;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 18px;
    margin-bottom: 12px;
}

.footer-links a {
    display: block;
    color: #ccc;
    margin-bottom: 8px;
    font-size: 15px;
    text-decoration: none;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--rojo);
}

.footer-contact p {
    color: #ccc;
    margin-bottom: 6px;
    font-size: 15px;
}

.footer-ws-btn {
    display: inline-block;
    margin-top: 12px;
    background: var(--rojo);
    padding: 10px 18px;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 15px;
    transition: 0.3s;
}

.footer-ws-btn:hover {
    background: #b31212;
}

/* PARTE INFERIOR */
.footer-bottom {
    width: 100%;
    padding: 18px 0;
    text-align: center;
    background: #0b0b0b;
}

.footer-bottom p {
    font-size: 14px;
    color: #ccc;
}

.footer-bottom a {
    color: var(--rojo);
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

.footer-contact p i {
    margin-right: 6px;
}

.footer-social {
    margin: 12px 0 18px;
}

.footer-social a {
    font-size: 26px;
    color: white;
    transition: 0.3s;
}

.footer-social a:hover {
    color: var(--rojo);
}


/* =============================== */
/* FOOTER RESPONSIVE */
/* =============================== */
@media (max-width: 800px) {

    .footer-container {
        display: flex;
        flex-direction: column;
        text-align: center;
        gap: 35px;
    }

    .footer-brand p {
        margin: 0 auto;
        max-width: 260px;
    }

    .footer-links a {
        display: block;
        margin: 6px 0;
    }

    .footer-contact p {
        margin: 5px 0;
    }

    .footer-ws-btn {
        margin-top: 14px;
    }

    .footer-social {
        margin-top: 10px;
        margin-bottom: 18px;
    }
}
