/* ======== VARIABLES Y ESTILOS GLOBALES ======== */
:root {
    --bg-color: #12181F;
    --primary-surface: #1A222C;
    --accent-color-1: #2fb4e4;
    --accent-color-2: #6DD5FA;
    --text-color: #fdfdfd;
    --light-gray: #a0b1c5;
    --font-family: 'PT Sans Caption', sans-serif;
    --video-overlay-color: rgba(18, 24, 31, 0.85);
    --header-bg-color: rgba(26, 34, 44, 0.5);
    --card-bg-color: rgba(26, 34, 44, 0.6);
    --shadow-color: rgba(0, 0, 0, 0.4);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* ======== VIDEO DE FONDO GLOBAL ======== */
.video-background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--video-overlay-color);
    z-index: -1;
}

.page-content {
    position: relative;
    z-index: 1;
    background-color: transparent;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 6rem 0;
    position: relative;
    background-color: transparent;
}

.section-title {
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
}

.section-title p {
    color: var(--light-gray);
    font-size: 1.1rem;
    font-weight: 400;
    text-align: center;
}

/* ======== HEADER ======== */
.header {
    background-color: var(--header-bg-color);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.header nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.header nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

.header nav a:hover {
    color: var(--accent-color-1);
}

/* SELECTOR DE IDIOMA */
.lang-switcher {
    display: flex;
    gap: 0.5rem;
    background-color: var(--card-bg-color);
    padding: 0.5rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lang-switcher a {
    color: var(--light-gray);
    text-decoration: none;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.lang-switcher a:hover {
    color: var(--text-color);
    background-color: rgba(255, 255, 255, 0.1);
}

.lang-switcher a.active {
    background-color: var(--accent-color-1);
    color: #ffffff;
    cursor: default;
}


/* ======== HERO SECTION ======== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-text-box {
    background: var(--card-bg-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 20px var(--shadow-color);
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 auto 1rem;
    max-width: 800px;
    background: linear-gradient(90deg, var(--accent-color-1), var(--accent-color-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero .subtitle {
    font-size: 1.3rem;
    color: var(--light-gray);
    max-width: 650px;
    margin: 0 auto 2.5rem;
    font-weight: 400;
}

.cta-button {
    background: var(--accent-color-1);
    color: #ffffff;
    padding: 14px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.cta-button:hover {
    background: var(--text-color);
    color: var(--accent-color-1);
    transform: translateY(-3px);
}

/* ======== NOSOTROS SECTION ======== */
#nosotros {
    background-color: var(--primary-surface);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-color-1);
    margin-bottom: 1rem;
}

.about-text p {
    color: var(--light-gray);
    margin-bottom: 1rem;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* ======== SERVICES SECTION ======== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--card-bg-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px var(--shadow-color);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color-1);
}

.service-card i {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, var(--accent-color-1), var(--accent-color-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* ======== CONTACT SECTION ======== */
#contactanos {
    background-color: var(--header-bg-color);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4rem 0;
}

#contactanos .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#contactanos .section-title {
    margin-bottom: 2.5rem;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    align-items: center;
}

.contact-item {
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
}

.contact-item a {
    text-decoration: none;
    color: var(--accent-color-1);
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--text-color);
}

.contact-item i {
    font-size: 1.5rem;
    color: currentColor;
}

/* ======== FOOTER ======== */
.footer {
    background-color: var(--header-bg-color);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer .social-links a {
    color: var(--light-gray);
    font-size: 1.5rem;
    margin: 0 0.75rem;
    transition: color 0.3s ease;
}

.footer .social-links a:hover {
    color: var(--accent-color-1);
}

/* ======== LOGO ======== */
.logo { perspective: 1000px; }
.logo a { display: inline-block; position: relative; overflow: hidden; border-radius: 8px; }
.logo-img { height: 40px; width: auto; transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); transform-style: preserve-3d; }
.logo a:hover .logo-img { transform: rotateY(360deg); }
.logo a::after { content: ''; position: absolute; top: -50%; left: -100%; width: 30%; height: 200%; background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100%); transform: rotate(25deg); transition: left 1s ease-in-out; }
.logo a:hover::after { left: 100%; }

/* ======== RESPONSIVIDAD ======== */
@media (max-width: 992px) {
    .services-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}
@media (max-width: 768px) {
    .header .container { flex-direction: column; gap: 1.5rem; }
    .nav-wrapper { flex-direction: column; gap: 1.5rem; }
    .hero h1 { font-size: 2.8rem; }
    .hero .subtitle { font-size: 1.1rem; }
    .about-content { grid-template-columns: 1fr; }
    .about-image { order: -1; margin-bottom: 2rem; }
    .contact-info { flex-direction: column; align-items: center; gap: 1.5rem; }
}
@media (max-width: 480px) {
    .section-title h2 { font-size: 2.2rem; }
    .services-grid { grid-template-columns: 1fr; }
}

/* ======== ANIMACIÓN DE ENTRADA PARA EL HERO ======== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero-text-box {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}