html,
body {
    margin: 0;
    padding: 0;

    width: 100%;
    min-height: 100%;

    overflow-x: hidden;

    background: #807b7b;
}

/* ==============================
   Reset y tipografía
============================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'DynaPuff';
    src: url('../fonts/DynaPuff-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: block; /* espera la fuente antes de renderizar texto */
}

@font-face {
    font-family: 'DynaPuffBold';
    src: url('../fonts/DynaPuff-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-Regular.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: 'MontserratBold';
    src: url('../fonts/Montserrat-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: block;
}

body {
    font-family: 'MontserratBold';
    color: #ffffff;
    line-height: 1.6;
}

/* ==============================
   Secciones
============================== */
.section {
    padding: 80px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.section.alt {
    background-color: #3e8cbc;
}

.section.foot {
    background-color: #000000;
    padding: 15px 15px;
    margin-bottom: 30px;
    display: flex;
    gap: 2px;
    align-items: start;
}

.section h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #ffffff;
}

.section.foot h2 {
    font-size: 0.75em;
    color: white;
    font-family: "Montserrat";
    margin-bottom: 0px;
}

.section p {
    font-size: 1.1em;
    max-width: 800px;
    text-align: center;
}

/* ==============================
   Cards
============================== */
.card {
    background-color: #fff;
    border-radius: 15px;
    padding: 20px;
    position: relative;
    box-shadow: 0 6px 5px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    width: 250px;
    color: #000000;

    text-decoration: none;    /* mantiene el color del texto */
    display: block; 
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 7px rgba(0,0,0,0.15);
}

.card img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 15px;
}

/* ==============================
   Botones
============================== */
.btn {
    padding: 12px 30px;
    background-color: #ffffff;
    color: #000000;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    text-decoration: none;
    display: inline-block;
}

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

/* ==============================
   Banner
============================== */
.banner {
    height: 400px;

    background-image: url('../images/IMG_9232.jpeg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;

    display: flex;
    justify-content: center;
    align-items: center;

    text-align: center;

    color: #fff;

    font-size: 3em;
    font-weight: bold;

    text-shadow: 2px 2px 15px rgba(0,0,0,0.5);

    position: relative;

    overflow: hidden;
}

/* Texto */
.banner h1 {
    text-align: center;
    max-width: 80%;
    z-index: 2;
}

/* overlay premium */
.banner::before {
    content: '';

    position: absolute;
    inset: 0;

    background: rgba(0,0,0,0.18);

    z-index: 1;
}

@media (max-width: 768px) {

    .banner {

        height: 250px;

        font-size: 2em;

        background-attachment: scroll;

        background-position: center center;
    }

    .banner h1 {
        max-width: 90%;
    }
}


/* ==============================
   Cintillo
============================== */
.cintillo {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    padding: 10px 20px;
    background: #787878;
    color: white;
    font-family: 'MontserratBold';
    text-align: center;
}

.phone {
    color: inherit;
    text-decoration: none;
    pointer-events: none;
    cursor: default;
}

.clickable-map{
    color: inherit;
    text-decoration: none;
    pointer-events: auto;
    cursor: pointer;
}

@media (max-width: 768px) {

    .cintillo {
        flex-direction: column;
        gap: 5px;
        font-size: 0.8rem;
        padding: 12px;
    }

    .separator {
        display: none;
    }

    .phone {
        pointer-events: auto;
    }

    .clickable-map{
        pointer-events: auto;
    }
}


/* ==============================
   Responsive
============================== */
@media (max-width: 768px) {
    .section h2 {
        font-size: 2em;
    }
    .card {
        width: 200px;
    }
}

nav {
    margin: 0;
    padding: 0;
}

/* Contenedor del dropdown */
.dropdown {
    position: relative;
    display: inline-block;
    padding: 0;
}

/* Botón del dropdown */
.dropbtn {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    padding: 0 10px;
    cursor: pointer;
    display: block;
}

/* Contenido oculto del dropdown */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #78787878; /* azul hielo */
    width: 150px;
    border-radius: 10px;
    overflow: hidden;
    top: 100%; /* justo debajo del botón */
    left: 0;
    padding: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 1000;
    
}

/* Links dentro del dropdown */
.dropdown-content a {
    color: #fff;
    padding: 12px 20px;
    display: block;
    text-decoration: none;
    transition: background 0.3s;
}



/* Mostrar dropdown al hacer hover */
.dropdown:hover .dropdown-content {
    display: block;
}

/* ==============================
   Carousel Cards
============================== */
.ccard {
    background-color: #fff;
    color: #000000;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 6px 5px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    width: 250px;
    min-width: 250px;

    text-decoration: none;    /* mantiene el color del texto */
    display: block; 

    color: inherit;
    -webkit-tap-highlight-color: transparent;
}

.ccard:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 7px rgba(0,0,0,0.15);
}

.ccard img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .ccard {
        background-color: #fff;
        border-radius: 15px;
        padding: 10px;
        box-shadow: 0 6px 5px rgba(0,0,0,0.1);
        text-align: center;
        font-size: small;
        transition: transform 0.3s, box-shadow 0.3s;
        width: 150px;
        min-width: 150px;

        text-decoration: none;    /* mantiene el color del texto */
        display: block;
    }

    .ccard:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 7px rgba(0,0,0,0.15);
    }

    .ccard img {
        width: 100%;
        border-radius: 12px;
        margin-bottom: 15px;
    }
}
