:root {
    --color-primary: #1A7EC8;
    --color-red: #D72B2B;
    --color-green: #2D9E3A;
    --color-amber: #E8A820;
    --color-bg: #FFFFFF;
    --color-text: #FFFFFF;
    --color-text-dark: #171B26;
    --color-text-muted: rgba(255, 255, 255, 0.8);

    --font-display: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html,
body {
    height: 100%;
    margin: 0;
    overflow: hidden;
    background-color: #000;
    font-family: var(--font-body);
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    position: relative;
    color: var(--color-text);
}

/* Background */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.65) saturate(1.1);
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg,
            rgba(23, 27, 38, 0.3) 0%,
            rgba(23, 27, 38, 0.7) 100%);
    z-index: 2;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

/* Header */
header {
    padding: 2rem 0 0;
    text-align: center;
}

.logo-container {
    display: inline-block;
    width: 100px;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
}

.main-logo {
    width: 100%;
    height: auto;
}

/* Main Content */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 10;
    padding: 0.5rem 0;
}

.hero-content {
    max-width: 900px;
}

.kicker {
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-weight: 800;
    font-size: 0.75rem;
    color: var(--color-amber);
    margin-bottom: 1rem;
    display: block;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

h1 {
    font-size: clamp(2.2rem, 7vw, 6rem);
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.05em;
    margin-bottom: 1.5rem;
    color: var(--color-text);
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

h1 span.institution-name {
    display: block;
    color: var(--color-bg);
}

h1 span.mission {
    font-size: 0.35em;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: block;
    margin-top: 0.6rem;
    font-weight: 600;
    opacity: 0.95;
}

.description {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--color-text-muted);
    max-width: 580px;
    margin: 0 auto 2rem;
}

/* Services */
.services-list {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.service-tag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.2rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    transition: var(--transition);
}

.service-tag svg {
    width: 16px;
    height: 16px;
}

.tag-hospedaje {
    border-color: rgba(232, 168, 32, 0.5);
}

.tag-hospedaje svg {
    fill: var(--color-amber);
}

.tag-alimentacion {
    border-color: rgba(215, 43, 43, 0.5);
}

.tag-alimentacion svg {
    fill: var(--color-red);
}

.tag-educacion {
    border-color: rgba(26, 126, 200, 0.5);
}

.tag-educacion svg {
    fill: var(--color-primary);
}

/* Subscribe Area */
.subscribe-area {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

.honeypot {
    display: none !important;
}

.subscribe-form {
    display: flex;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(15px);
    border-radius: 100px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.subscribe-form:focus-within {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--color-primary);
}

.subscribe-form:focus-within input {
    color: var(--color-text-dark);
}

input[type="email"] {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.7rem 1.5rem;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
    outline: none;
}

input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.subscribe-form:focus-within input::placeholder {
    color: #888;
}

.btn-submit {
    background-color: var(--color-green);
    color: white;
    border: none;
    padding: 0 2rem;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    background-color: #24812f;
    transform: scale(1.05);
}

.privacy-note {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.8rem;
    letter-spacing: 0.05em;
}

/* Footer */
footer {
    padding: 1rem 0 1.5rem;
    text-align: center;
    z-index: 10;
}

.tagline {
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    color: white;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
}

.copyright {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.copyright .registered-symbol {
    font-size: 1.8em;
    vertical-align: middle;
    margin-right: 0.2em;
    display: inline-block;
}

/* Success Message */
.success-message {
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    animation: revealProgressive 0.5s forwards;
}

.success-icon {
    width: 60px;
    height: 60px;
    background: var(--color-green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.success-text {
    font-weight: 800;
    font-size: 1.5rem;
}

/* Progressive Reveal Animation */
@keyframes revealProgressive {
    0% {
        opacity: 0;
        transform: translateY(15px);
        filter: blur(5px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.anim-reveal {
    opacity: 0;
    animation: revealProgressive 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.3s;
}

.delay-3 {
    animation-delay: 0.5s;
}

.delay-4 {
    animation-delay: 0.7s;
}

.delay-5 {
    animation-delay: 0.9s;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    header {
        padding: 1.5rem 0 0;
    }

    .logo-container {
        width: 90px;
    }

    main {
        padding: 0.2rem 0;
    }

    h1 {
        font-size: clamp(2rem, 9vw, 3rem);
        margin-bottom: 1rem;
    }

    .description {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
        padding: 0 1rem;
        line-height: 1.4;
    }

    .services-list {
        gap: 0.5rem;
        margin-bottom: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .service-tag {
        padding: 0.4rem 1rem;
        font-size: 0.75rem;
    }

    .subscribe-area {
        padding: 0 1rem;
        max-width: 100%;
    }

    .subscribe-form {
        flex-direction: column;
        border-radius: 16px;
        padding: 0.4rem;
        gap: 0.4rem;
        background: rgba(255, 255, 255, 0.15);
    }

    input[type="email"] {
        padding: 0.7rem;
        text-align: center;
        font-size: 0.9rem;
    }

    .btn-submit {
        width: 100%;
        padding: 0.7rem 0;
        border-radius: 10px;
        font-size: 0.85rem;
    }

    .privacy-note {
        font-size: 0.7rem;
        margin-top: 0.5rem;
    }

    footer {
        padding: 1rem 0;
    }

    .tagline {
        font-size: 0.75rem;
    }

    .copyright {
        font-size: 0.6rem;
    }
}

/* Very short screens */
@media (max-height: 670px) {
    .description {
        display: none;
    }

    h1 {
        margin-bottom: 0.5rem;
        font-size: 1.8rem;
    }

    .services-list {
        margin-bottom: 1rem;
    }

    header {
        padding: 1rem 0;
    }

    .logo-container {
        width: 75px;
    }
}