/* --- Paleta de Colores y Variables --- */
:root {
    --primary-dark: #0a192f;
    --primary-light: #172a46;
    --secondary: #52796f;
    --accent: #64ffda;
    --text-light: #ccd6f6;
    --text-dark: #8892b0;
    --font-sans: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

/* --- Reseteo y Estilos Base --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-sans);
    margin: 0;
    background-color: var(--primary-dark);
    color: var(--text-dark);
    line-height: 1.6;
}
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
img { max-width: 100%; height: auto; }

/* --- Header --- */
.header {
    background-color: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: sticky; top: 0; z-index: 1000;
}
.header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; text-decoration: none; color: var(--text-light); font-weight: 600; }
.logo img { height: 40px; width: 40px; border-radius: 50%; margin-right: 12px; border: 2px solid var(--accent); }
.logo span { font-size: 1.4rem; }
.nav-links a { color: var(--text-light); text-decoration: none; padding: 8px 15px; transition: color 0.3s; margin: 0 5px; font-weight: 400; }
.nav-links a:hover { color: var(--accent); }
.hamburger-btn { display: none; background: none; border: none; cursor: pointer; padding: 5px; z-index: 1001; }
.hamburger-btn .line { display: block; width: 25px; height: 2px; background-color: var(--text-light); margin: 6px 0; transition: transform 0.3s, opacity 0.3s; }

/* --- Hero Section (Página de Inicio) --- */
.hero { position: relative; height: 80vh; display: flex; align-items: center; justify-content: center; text-align: center; color: white; background-size: cover; background-position: center; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 25, 47, 1), rgba(10, 25, 47, 0.6)); }
.hero-content { position: relative; z-index: 1; max-width: 800px; padding: 0 20px; }
.hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 1rem; font-weight: 700; color: var(--text-light); }
.hero p { font-size: clamp(1rem, 2.5vw, 1.25rem); margin-bottom: 2rem; color: var(--text-dark); font-weight: 300; }

/* --- Botón Principal (CTA) --- */
.cta-button {
    display: inline-block; width: 100%; text-align: center;
    background-color: transparent; color: var(--accent); padding: 14px 32px;
    text-decoration: none; border-radius: 4px; font-weight: 600;
    transition: background-color 0.3s; border: 1px solid var(--accent); cursor: pointer;
}
.cta-button:hover { background-color: rgba(100, 255, 218, 0.1); }

/* --- Secciones Generales --- */
.services-section { padding: 5rem 0; }
.content-section { padding: 5rem 0; }
.section-title { text-align: center; font-size: 2.8rem; margin-top: 0; margin-bottom: 2rem; font-weight: 600; color: var(--text-light); }
.section-subtitle { text-align: center; max-width: 800px; margin: 0 auto 4rem auto; font-size: 1.1rem; }

/* --- Cards con Efecto Glassmorphism --- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.card {
    background: rgba(23, 42, 70, 0.5); backdrop-filter: blur(10px);
    border-radius: 10px; border: 1px solid rgba(136, 146, 176, 0.2);
    overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-10px); box-shadow: 0 20px 30px rgba(0,0,0,0.2); }
.card img { width: 100%; height: 200px; object-fit: cover; opacity: 0.8; transition: opacity 0.3s; }
.card:hover img { opacity: 1; }
.card-content { padding: 1.5rem; flex-grow: 1; display: flex; flex-direction: column; }
.card h3 { font-size: 1.5rem; margin-top: 0; margin-bottom: 1rem; color: var(--text-light); }
.card p { color: var(--text-dark); flex-grow: 1; }
.card-link { margin-top: 1rem; color: var(--accent); font-weight: 600; text-decoration: none; transition: color 0.3s; }
.card-link:hover { color: white; }

/* --- Estilos para Páginas de Texto (Nosotros, Política) --- */
.text-card {
    max-width: 800px; margin: 0 auto;
    background: rgba(23, 42, 70, 0.5); backdrop-filter: blur(10px);
    border-radius: 10px; border: 1px solid rgba(136, 146, 176, 0.2);
    padding: 2rem 3rem;
}
.text-card h2 { color: var(--text-light); margin-top: 2rem; }
.text-card p { color: var(--text-dark); }
.text-card a { color: var(--accent); text-decoration: none; }
.text-card a:hover { text-decoration: underline; }

/* --- Estilos para Página de Contacto --- */
.contact-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; max-width: 900px; margin: 0 auto; }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.contact-form input, .contact-form textarea {
    width: 100%; padding: 12px; font-family: var(--font-sans); font-size: 1rem;
    background-color: var(--primary-dark); border: 1px solid rgba(136, 146, 176, 0.3);
    border-radius: 4px; color: var(--text-light); transition: border-color 0.3s, box-shadow 0.3s;
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none; border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(100, 255, 218, 0.2);
}
.contact-info { list-style: none; padding: 0; margin: 0; }
.contact-info li { margin-bottom: 1rem; }
.contact-info a { color: var(--text-dark); text-decoration: none; transition: color 0.3s; }
.contact-info a:hover { color: var(--accent); }

/* --- Footer --- */
.footer { background-color: #0d1e34; color: var(--text-dark); padding: 3rem 0; text-align: center; }
.footer a { color: var(--text-dark); text-decoration: none; transition: color 0.3s; }
.footer a:hover { color: var(--accent); }
.social-links { margin-bottom: 1.5rem; }
.social-links a { margin: 0 15px; display: inline-block; transition: transform 0.3s; }
.social-links a:hover { transform: translateY(-5px); }
.social-links img { height: 24px; filter: invert(62%) sepia(13%) saturate(928%) hue-rotate(115deg) brightness(91%) contrast(87%); }

/* --- Animaciones de Scroll --- */
.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.animate-on-scroll.is-visible { opacity: 1; transform: translateY(0); }
.hero-content > *:nth-child(2) { transition-delay: 100ms; } .hero-content > *:nth-child(3) { transition-delay: 200ms; }
.grid .card:nth-child(2), .contact-grid .card:nth-child(2) { transition-delay: 100ms; }
.grid .card:nth-child(3) { transition-delay: 200ms; }

/* --- Responsividad --- */
@media (max-width: 768px) {
    .nav-links {
        display: flex; position: fixed; top: 0; right: 0;
        height: 100vh; width: min(75vw, 400px); flex-direction: column;
        justify-content: center; align-items: center; gap: 2rem;
        background-color: var(--primary-light); transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
    }
    .nav-links.active { transform: translateX(0); }
    .nav-links a { font-size: 1.2rem; }
    .hamburger-btn { display: block; }
    .hamburger-btn.is-active .line:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger-btn.is-active .line:nth-child(2) { opacity: 0; }
    .hamburger-btn.is-active .line:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    .contact-grid { grid-template-columns: 1fr; }
    .text-card { padding: 1.5rem; }
}