/* ========================= */
/* RESET */
/* ========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f5f7fa;
    color: #333;
}

/* ========================= */
/* HEADER */
/* ========================= */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 30px;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 999;
}

header img {
    height: 65px;
}

/* NAV */
nav a {
    margin-left: 20px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
}

/* ========================= */
/* HERO */
/* ========================= */
.hero {
    height: 60vh;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}

.hero-content {
    position: relative;
    color: white;
    text-align: center;
}

.hero-content h1 {
    font-size: 42px;
    margin-bottom: 10px;
}

.hero-content p {
    margin-bottom: 20px;
}

/* ========================= */
/* BOTONES */
/* ========================= */
.btn {
    background: linear-gradient(135deg, #ff6b00, #ff8c42);
    color: white;
    padding: 10px 22px;
    border-radius: 25px;
    text-decoration: none;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255,107,0,0.4);
}

/* ========================= */
/* SECCIONES */
/* ========================= */
.section {
    padding: 60px 30px;
}

.section h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 40px;
    position: relative;
}

.section h2::after {
    content: "";
    width: 60px;
    height: 4px;
    background: #ff6b00;
    display: block;
    margin: 10px auto 0;
    border-radius: 10px;
}

/* ========================= */
/* CARDS */
/* ========================= */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.card {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

/* IMAGEN */
.card img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
}

/* CONTENIDO (SIN FLEX PARA EVITAR BUG) */
.card-content {
    padding: 18px;
}

/* TEXTO */
.card-content p {
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;
}

/* ========================= */
/* BOTONES EN TARJETAS */
/* ========================= */
.card-btn {
    margin-top: 15px;
    text-align: center;
}

.card-btn .btn {
    display: inline-block;
    padding: 10px 18px;
    font-size: 14px;
    border-radius: 25px;
    width: auto;
}

/* ========================= */
/* FORMULARIO */
/* ========================= */
form {
    max-width: 500px;
    margin: auto;
}

form input,
form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

/* ========================= */
/* FOOTER */
/* ========================= */
footer {
    background: #111;
    color: white;
    padding: 30px;
    text-align: center;
}

footer a {
    color: #ff6b00;
    text-decoration: none;
}

/* ========================= */
/* WHATSAPP */
/* ========================= */
.whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #25d366, #1ebe5d);
    color: white;
    padding: 12px 18px;
    border-radius: 30px;
    font-weight: bold;
    z-index: 999;
}

/* ========================= */
/* MODAL */
/* ========================= */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 750px;
    border-radius: 20px;
    padding: 30px;
    position: relative;
    max-height: 85vh;
    overflow-y: auto;
}

/* ========================= */
/* RESPONSIVE */
/* ========================= */
@media(max-width:768px){

    header {
        flex-direction: column;
    }

    header img {
        height: 55px;
    }

    nav {
        margin-top: 10px;
    }

    .hero {
        height: 50vh;
    }

    .modal-content {
        width: 95%;
    }
}

/* ========================= */
/* 🔥 BOTÓN CERRAR MODAL FIX */
/* ========================= */

.close {
    position: absolute;
    top: 12px;
    right: 12px;

    width: 35px;
    height: 35px;

    background: #ffffff;
    color: #333;

    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 18px;
    font-weight: bold;

    cursor: pointer;

    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
}

/* HOVER */
.close:hover {
    background: #ff6b00;
    color: #fff;
    transform: scale(1.1);
}