@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Nunito:wght@400;600;700&display=swap');

:root {
    --bg: #dceeff;
    --bg-light: #eaf4ff;
    --bg-card: #f0f8ff;
    --accent: #2563c7;
    --accent-dark: #1a3f8f;
    --accent-soft: #93c5fd;
    --text-dark: #0f1f3d;
    --text-mid: #334e7a;
    --text-light: #6b88b0;
    --border: #b8d4f0;
    --shadow: 0 4px 24px rgba(37, 99, 199, 0.12);
    --radius: 16px;
}

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

body {
    font-family: 'Nunito', sans-serif;
    background-color: var(--bg);
    color: var(--text-dark);
    line-height: 1.7;
}

/* ──── HEADER ──── */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(220, 238, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 12px rgba(37, 99, 199, 0.08);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 3rem;
    max-width: 1300px;
    margin: 0 auto;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--accent);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-mid);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    position: relative;
    transition: color 0.2s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    transition: width 0.25s;
}

.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { width: 100%; }

/* ──── HERO ──── */
#hero {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(rgba(10, 30, 70, 0.55), rgba(10, 30, 70, 0.65)),
                url(aaa67c0b-c303-4747-b67a-5233f6155220.jpg);
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 2rem;
    overflow: hidden;
}

#hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 80px;
    background: linear-gradient(transparent, var(--bg));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
    animation: fadeUp 0.9s ease both;
}

.hero-tag {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.35);
    color: #e0f0ff;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

#hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.2rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

#hero p {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.88);
    max-width: 540px;
    margin: 0 auto 2.5rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 0.9rem 2.2rem;
    border-radius: 50px;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(37, 99, 199, 0.45);
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.cta-button svg {
    width: 18px;
    height: 18px;
    transition: transform 0.2s;
}

.cta-button:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(37, 99, 199, 0.5);
}

.cta-button:hover svg {
    transform: translateX(4px);
}

/* ──── SECTION COMMON ──── */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-tag {
    display: inline-block;
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1rem;
    max-width: 560px;
    margin: 0 auto;
}

/* ──── CARDS GRID ──── */
#Identificalos {
    padding: 6rem 2rem;
    max-width: 1280px;
    margin: 0 auto;
}

.identificalos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.tipos-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: transform 0.25s, box-shadow 0.25s;
    display: flex;
    flex-direction: column;
}

.tipos-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(37, 99, 199, 0.18);
}

.card-img-wrap {
    position: relative;
    overflow: hidden;
}

.tipos-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}

.tipos-card:hover img {
    transform: scale(1.04);
}

.card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--accent);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.8rem;
    border-radius: 50px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.card-body {
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.5rem;
}

.tipos-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.4;
}

.actividad {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.85rem;
}

.descripcion {
    color: var(--text-mid);
    font-size: 0.92rem;
    flex: 1;
}

.tipos-card button {
    margin-top: 0.75rem;
    align-self: flex-start;
    padding: 0.5rem 1.4rem;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.tipos-card button:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

/* Video card */
.video-card .card-body { gap: 1rem; }

.video-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: 10px;
    overflow: hidden;
}

.video-wrap iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border-radius: 10px;
}

/* ──── CONTACTO ──── */
#contacto {
    background: var(--bg-light);
    border-top: 1px solid var(--border);
    padding: 6rem 2rem;
}

.contacto-inner {
    max-width: 640px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-weight: 700;
    color: var(--text-mid);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

input, textarea {
    padding: 0.85rem 1.1rem;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    background: var(--bg);
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 199, 0.12);
}

textarea {
    height: 150px;
    resize: vertical;
}

form button {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 1rem;
    border-radius: 50px;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

form button:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

/* ──── FOOTER ──── */
footer {
    background: var(--text-dark);
    padding: 2rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

footer .logo {
    color: var(--accent-soft);
    font-size: 1.2rem;
}

footer p {
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
}

/* ──── ANIMATION ──── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ──── RESPONSIVE ──── */
@media screen and (max-width: 430px) {
    nav {
        flex-direction: column;
        padding: 1rem;
        gap: 0.75rem;
    }
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}
