/* ====== Reset y base ====== */
body {
    margin: 0;
    font-family: 'Figtree', 'Montserrat', 'Poppins', sans-serif;
    color: #1f2937;
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    background: transparent;
}

/* ====== Fondo ====== */
.background {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: 
    linear-gradient(rgba(0,36,80,0.40), rgba(31,41,55,0.70)),
    url('../img/fondoInicio3.png') center center/cover no-repeat;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
}

/* ====== Header ====== */
header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4vw;
    height: 86px;
    background: rgba(17, 24, 39, 0.70);
    box-shadow: 0 4px 32px rgba(31,41,55,0.18);
    backdrop-filter: blur(8px);
    transition: height 0.2s, padding 0.2s;
}
header .logo {
    display: flex;
    align-items: center;
    font-weight: 800;
    font-size: 2.1rem;
    color: #fff;
    letter-spacing: 2px;
    user-select: none;
    transition: font-size 0.2s;
}
header .logo img {
    height: 48px;
    margin-right: 14px;
    transition: height 0.2s, margin-right 0.2s;
}
header nav {
    display: flex;
    gap: 1.2rem;
}
header nav a {
    background: #3b82f6;
    color: #fff;
    font-size: 1.28rem;
    font-weight: 700;
    border-radius: 32px;
    padding: 12px 32px;
    text-decoration: none;
    box-shadow: 0 2px 12px rgba(30,64,175,0.11);
    transition: background 0.16s, transform 0.13s, font-size 0.2s, padding 0.2s;
    display: inline-block;
    letter-spacing: .5px;
}
header nav a:hover {
    background: #2563eb;
    transform: translateY(-2px) scale(1.04);
}

/* ====== Main y container ====== */
main {
    flex: 1 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    position: relative;
    margin-top: 120px; 
    padding-top: 0;
    transition: margin-top 0.2s;
}
.container {
    margin-top: 0;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 2;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 24px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.13);
    padding: 48px 36px 36px 36px;
    max-width: 700px;
    width: 90%;
    transition: padding 0.2s, border-radius 0.2s;
}

/* ====== Tipografía ====== */
.welcome {
    font-size: 5rem;
    color: #2563eb;
    font-weight: 700;
    letter-spacing: 1.7px;
    margin-bottom: 0;
    text-shadow: 0 2px 8px rgba(37,99,235,0.07);
    transition: font-size 0.2s;
}
h1 {
    font-size: 4.5rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 0.5rem;
    letter-spacing: 3px;
    text-shadow: 0 2px 8px rgba(31,41,55,0.10);
    transition: font-size 0.2s;
}
h2 {
    font-size: 2.2rem;
    color: #374151;
    font-weight: 700;
    margin-bottom: 1.2rem;
    letter-spacing: 1.2px;
    text-shadow: 0 1px 4px rgba(31,41,55,0.07);
    transition: font-size 0.2s;
}
p {
    font-size: 1.45rem;
    color: #4b5563;
    max-width: 650px;
    margin: 0 auto 2.7rem;
    font-weight: 500;
    text-shadow: none;
    transition: font-size 0.2s;
}

/* ====== Footer Contacto ====== */
.footer-contacto {
    flex-shrink: 0;
    background: rgba(0,44,83,0.72);
    color: #fff;
    padding: 32px 16px 16px 16px;
    text-align: center;
    font-size: 1rem;
    font-family: 'Figtree', sans-serif;
    box-shadow: 0 -2px 16px rgba(0,0,0,0.06);
    letter-spacing: 0.5px;
    margin-top: 40px;
    position: relative;
    z-index: 3;
    transition: font-size 0.2s, padding 0.2s;
}
.footer-contacto .footer-content > div {
    margin-bottom: 6px;
    word-break: break-word;
}
.footer-contacto a {
    color: #60a5fa;
    text-decoration: underline;
    transition: color 0.2s;
}
.footer-contacto a:hover {
    color: #fff;
}

/* ====== Responsive: tablet ====== */
@media (max-width: 900px) {
    h1 { font-size: 3.1rem; }
    h2 { font-size: 1.4rem; }
    .welcome { font-size: 2.2rem; }
    header .logo { font-size: 1.35rem; }
    header { height: 68px; padding: 0 2vw; }
    .footer-contacto {
        font-size: 0.96rem;
        padding: 22px 8px 10px 8px;
    }
    main {
        margin-top: 90px;
        padding-top: 0;
    }
    .container {
        padding: 28px 18px 20px 18px;
        border-radius: 18px;
    }
    header .logo img {
        height: 34px;
        margin-right: 8px;
    }
    header nav a {
        font-size: 1.06rem;
        padding: 10px 22px;
    }
    p { font-size: 1.15rem; }
}

/* ====== Responsive: móvil ====== */
@media (max-width: 600px) {
    header {
        flex-direction: column;
        align-items: flex-start;
        height: auto;
        padding: 10px 6vw 7px 6vw;
        gap: 7px;
    }
    .container {
        margin-top: 0;
        padding: 20px 6px 12px 6px;
        border-radius: 11px;
    }
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.1rem; }
    .welcome { font-size: 1.13rem; }
    header nav a {
        font-size: 1.04rem;
        padding: 10px 18px;
    }
    .footer-contacto {
        font-size: 0.93rem;
        padding: 13px 2px 8px 2px;
    }
    main {
        margin-top: 70px;
        padding-top: 0;
    }
    p { font-size: 1em; }
    header .logo img {
        height: 28px;
        margin-right: 6px;
    }
}

@media (max-width: 420px) {
    h1 { font-size: 1.38rem; }
    .welcome { font-size: 0.92rem; }
    header .logo { font-size: 1.09rem; }
    .container {
        padding: 11px 3px 6px 3px;
        border-radius: 7px;
    }
}