@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* TRANSICIÓN ENTRE PÁGINAS */
body {
    background: #f3f4f7;
    color: #333;
    opacity: 0;
    transition: opacity .4s ease;
}

body.page-loaded {
    opacity: 1;
}

body.page-exit {
    opacity: 0;
}

/* CONTENEDOR */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

/* HERO PRINCIPAL */
.hero {
    background: linear-gradient(120deg, #005BEA, #00C6FB);
    color: white;
    padding: 70px 20px 80px 20px;
    text-align: center;
}
.hero-inner {
    max-width: 1100px;
    margin: auto;
}
.hero img {
    width: 160px;
    margin-bottom: 20px;
}
.hero h1 {
    font-size: 40px;
    font-weight: 700;
}
.hero p {
    margin-top: 12px;
    font-size: 18px;
    opacity: .95;
}

/* HERO PEQUEÑO PARA PÁGINAS INTERNAS */
.hero-small {
    padding: 35px 20px 40px 20px;
}
.hero-small h1 {
    font-size: 28px;
}
.hero-small img {
    width: 130px;
}

/* NAV */
nav {
    background: white;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 14px rgba(0, 0, 0, .08);
}
.nav-inner {
    display: flex;
    justify-content: center;
    gap: 22px;
    flex-wrap: wrap;
}
.nav-inner a {
    color: #005BEA;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}
.nav-inner a:hover {
    color: #00C6FB;
}

/* SECCIONES (fade al hacer scroll, suave) */
section {
    padding: 50px 0;
    opacity: 0;
    transform: translateY(25px);
    transition: all .7s ease;
}
section.visible {
    opacity: 1;
    transform: translateY(0);
}

h2 {
    font-size: 30px;
    color: #005BEA;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 700;
}

/* GRID & CARDS */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
}
.card {
    background: #ffffff;
    border-radius: 18px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    transition: .3s;
    border: 1px solid #e2e8f0;
}
.card i {
    font-size: 40px;
    color: #00C6FB;
    margin-bottom: 10px;
}
.card h3 {
    font-size: 16px;
    margin-bottom: 6px;
    font-weight: 600;
}
.card p {
    font-size: 14px;
    color: #555;
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
}

/* LISTAS PREMIUM */
ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.list-premium li {
    background: #ffffff;
    margin-bottom: 10px;
    padding: 14px 18px;
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
    border: 1px solid #e2e8f0;
    font-size: 14px;
}

.text-center {
    text-align: center;
}

.subtitulo {
    font-weight: 600;
    margin: 18px 0 10px 0;
    color: #111827;
}

/* MAPAS */
.mapa {
    width: 100%;
    height: 320px;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
    border: 0;
}

/* CONTACTO */
.contacto p {
    font-size: 15px;
    margin: 6px 0;
}

/* WHATSAPP FLOAT */
.whatsapp-btn {
    position: fixed;
    bottom: 22px;
    right: 22px;
    background: #25D366;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .35);
    z-index: 200;
    transition: .25s;
}
.whatsapp-btn:hover {
    transform: scale(1.08);
    background: #1ebe5d;
}

/* FOOTER */
footer {
    background: #003C8F;
    color: white;
    text-align: center;
    padding: 18px 10px;
    font-size: 13px;
    margin-top: 30px;
}

/* RESPONSIVE */
@media(max-width: 768px) {
    .hero h1 { font-size: 30px; }
    .hero p { font-size: 15px; }
}

/* SLIDER */
.slider {
    position: relative;
    max-width: 100%;
    height: 380px;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,.18);
}

.slide {
    display: none;
    width: 100%;
    height: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

/* GALERÍA */
.galeria {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
    gap: 20px;
}

.galeria img {
    width: 100%;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(0,0,0,.15);
    transition: .3s;
}

.galeria img:hover {
    transform: scale(1.05);
    box-shadow: 0 14px 40px rgba(0,0,0,.25);
}

/* SLIDER ANIMACIÓN */
.fade {
    animation: fadeEffect 1.2s;
}

@keyframes fadeEffect {
    from { opacity: .4; }
    to { opacity: 1; }
}

