/* ==============================
   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';
    background-color: #e8e8e8;
    color: #333;
    line-height: 1.6;
}

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

.section.alt {
    background-color: #e0f7ff;
}

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

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

/* ==============================
   Cards
============================== */
.card {
    background-color: #fff;
    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;

    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: #00bfff;
    color: #fff;
    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: #009acd;
    transform: translateY(-2px);
}

/* ==============================
   Banner
============================== */
.banner {
    height: 400px; /* altura del banner */
    background: url('../images/banner.jpg') center/cover no-repeat 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;
}

/* Texto adicional dentro del banner */
.banner h1 {
    text-align: center;
    max-width: 80%;
}

/* ==============================
   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: rgba(139, 193, 211, 0.672); /* 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;
    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; 
}

.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;
}

