@import url('https://fonts.googleapis.com/css2?family=Cal+Sans&display=swap');

/* --- PALETA DE COLORES Y VARIABLES --- */
:root {
    --color-fondo: #FFFFFF;
    --color-primario: #122D42;
    --color-secundario: #07121A;
    --color-acento: #3DD2CC;
    --color-cristal: #1D486A01;
    --borde-cristal: 1px solid #FFFFFF01;
}

/* :root {
    --color-fondo: #0a092d;
    --color-primario: #ffffff;
    --color-secundario: #a9a8c3;
    --color-acento: #ffb13a;
    --color-cristal: rgba(255, 255, 255, 0.05);
    --borde-cristal: 1px solid rgba(255, 255, 255, 0.1);
} */

/* --- ESTILOS GLOBALES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Sora', sans-serif;
    background-color: var(--color-fondo);
    color: var(--color-primario);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

/* Forma de fondo decorativa */
body::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 70vw;
    height: 70vw;
    max-width: 800px;
    max-height: 800px;
    background: radial-gradient(circle, rgba(63,94,251,0.2) 0%, rgba(10,9,45,0) 60%);
    z-index: -1;
    animation: pulse 15s infinite ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 1rem;
}

#navContainer {
    padding: 0 0;
}

section {
    padding: 6rem 0;
    position: relative;
}

h1, h2, h3, h4 {
    font-weight: 600;
}

h2 {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 3rem;
}

p {
    color: var(--color-secundario);
    font-size: 1.1rem;
    max-width: 650px;
}

.text-center {
    text-align: center;
}
.text-center p {
    margin-left: auto;
    margin-right: auto;
}

/* --- BOTONES --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--color-acento);
    color: #000;
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 20px rgba(255, 177, 58, 0.2);
}

/* --- HEADER --- */
.main-header {
    padding: 1.5rem 0;
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    width: 150px;
    text-align: center;
    font-size: 1.15em;
    font-weight: 300;
    color: var(--color-primario);
    line-height: 1.25em;
    text-decoration: none;
}

.brand {
    font-family: "Cal Sans";
    font-size: 2.25em;
}

.main-nav a {
    color: var(--color-secundario);
    text-decoration: none;
    font-weight: 400;
    padding: 0.5rem 1rem;
    transition: color 0.3s;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--color-primario);
}

/* --- HERO SECTION --- */
.hero {
    padding-top: 180px;
    padding-bottom: 120px;
    text-align: center;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--color-primario), #111);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
}

/* --- SECCIONES CON TARJETAS (Glassmorphism) --- */
.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.glass-card {
    background: var(--color-cristal);
    border: var(--borde-cristal);
    border-radius: 15px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.3);
}

.glass-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-acento);
}

.glass-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--color-primario);
}

/* --- SECCIÓN CONTACTO --- */
#contacto .container {
    max-width: 800px;
}

.contact-form {
    margin-top: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 1rem;
    background: var(--color-cristal);
    border: var(--borde-cristal);
    border-radius: 10px;
    color: var(--color-primario);
    font-family: 'Sora', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-acento);
}

.form-control::placeholder {
    color: var(--color-secundario);
}

/* --- FOOTER --- */
.main-footer {
    padding: 4rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.main-footer p {
    font-size: 1rem;
    color: var(--color-secundario);
}

/* --- RESPONSIVIDAD --- */
@media (max-width: 768px) {
    h2 { font-size: 2.2rem; }
    .hero h1 { font-size: 3rem; }
    .main-header .container { flex-direction: column; gap: 1rem; }
}