@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600&display=swap');

:root {
    --primary: #00B4D8;
    --secondary: #0077B6;
    --bg-light: #F0F8FF;
    --text-dark: #03045E;
    --white: #ffffff;
    --accent: #90E0EF;
    --glass: rgba(255, 255, 255, 0.7);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header & Nav */
header {
    background: var(--glass);
    backdrop-filter: blur(10px);
    position: sticky;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.logo {
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--secondary);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 180, 216, 0.2), rgba(0, 119, 182, 0.4)), url('../images/hero.png');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 10%;
    color: var(--white);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    border: 2px solid rgba(255, 255, 255, 0.3); /* Un gris muy suave/blanco translúcido para el fondo oscuro */
    padding: 0.5rem 1.5rem;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 2.5rem;
    border: 2px solid #555555; /* Un gris de tono mayor */
    padding: 1rem;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.2);
}

/* Content Sections */
section {
    padding: 5rem 10%;
}

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

.card {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
}

/* Login Section (The Foldable Cards) */
.login-container {
    max-width: 400px;
    margin: 5rem auto;
    padding: 2rem;
}

.login-card {
    background: var(--white);
    margin-bottom: 1rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-card .card-header {
    padding: 1.5rem;
    background: var(--primary);
    color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.login-card .card-body {
    max-height: 0;
    opacity: 0;
    padding: 0 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-card.active .card-body {
    max-height: 150px;
    opacity: 1;
    padding: 1.5rem;
}

.login-card.active {
    box-shadow: 0 10px 25px rgba(0, 180, 216, 0.2);
}

input {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--bg-light);
    border-radius: 8px;
    outline: none;
    font-family: inherit;
    transition: border-color 0.3s;
}

input:focus {
    border-color: var(--primary);
}

.btn-login {
    display: inline-block;
    padding: 1rem 3rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border: 2px solid var(--white);
    border-radius: 100px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 15px 35px rgba(0, 119, 182, 0.4);
}

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 119, 182, 0.3);
    filter: brightness(1.1);
}

.btn-login:active {
    transform: translateY(-1px);
}

form .btn-login, .btn-full {
    width: 100%;
    margin-top: 1rem;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    header {
        padding: 0.8rem 4%;
    }
    .logo {
        font-size: 1.15rem;
    }
    .hero {
        min-height: calc(100vh - 60px);
        height: auto;
        padding: 6.5rem 5% 4rem 5%;
        justify-content: flex-start;
    }
    .hero h1 {
        font-size: 2.2rem;
        margin-top: 0;
        line-height: 1.3;
    }
    .hero p {
        font-size: 1.1rem;
        padding: 0.8rem;
    }
    section {
        padding: 3rem 5%;
    }
}

@media (max-width: 480px) {
    header {
        padding: 0.6rem 3%;
        flex-direction: row;
        justify-content: space-between;
    }
    .logo {
        font-size: 0.95rem;
        line-height: 1.1;
    }
    header nav a {
        font-size: 0.85rem;
    }
    .hero {
        padding: 6rem 5% 3rem 5%;
        min-height: calc(100vh - 55px);
        justify-content: flex-start;
    }
    .hero h1 {
        font-size: 1.7rem;
    }
}
