:root {
    --bg-color: #050914;
    --bg-gradient: linear-gradient(135deg, #050914 0%, #0a1128 100%);
    --card-bg: rgba(16, 25, 48, 0.4);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-main: #f0f4f8;
    --text-muted: #9aa8c0;
    --accent: #00d2ff;
    --accent-glow: rgba(0, 210, 255, 0.4);
    
    --font-main: 'Inter', sans-serif;
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background: var(--bg-color);
    background-image: var(--bg-gradient);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Background Effects */
.bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.5;
    animation: breathe 10s infinite alternate ease-in-out;
}

@keyframes breathe {
    0% { transform: scale(1) translate(0, 0); opacity: 0.4; }
    50% { transform: scale(1.1) translate(2%, 2%); opacity: 0.6; }
    100% { transform: scale(0.95) translate(-2%, -2%); opacity: 0.5; }
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(0, 210, 255, 0.15) 0%, transparent 70%);
    animation-delay: 0s;
}

.blob-2 {
    bottom: 20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(10, 50, 150, 0.15) 0%, transparent 70%);
    animation-delay: -5s;
}

/* Typography */
h1, h2, h3 {
    font-weight: 600;
    line-height: 1.2;
}

.fw-light {
    font-weight: 300;
}

.highlight {
    color: var(--accent);
    text-shadow: 0 0 15px var(--accent-glow);
}

a {
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition);
}

a:focus-visible, button:focus-visible {
    outline: 2px dashed var(--accent);
    outline-offset: 4px;
    border-radius: 4px;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
    transition: var(--transition);
}

header.scrolled {
    background: rgba(5, 9, 20, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--card-border);
    padding: 10px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Nuevo Logo Globo CSS 3D */
.logo-globe-css {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(0, 50, 100, 0.4) 0%, rgba(5, 9, 20, 0.9) 100%);
    border: 2px solid rgba(0, 210, 255, 0.5);
    box-shadow: 
        inset 0 0 15px rgba(0, 210, 255, 0.6),
        0 0 20px rgba(0, 210, 255, 0.3);
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.globe-grid {
    position: absolute;
    width: 150%;
    height: 150%;
    background-image: 
        linear-gradient(rgba(0, 210, 255, 0.2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 210, 255, 0.2) 1px, transparent 1px);
    background-size: 15px 15px;
    border-radius: 50%;
    opacity: 0.5;
    animation: rotate 20s linear infinite;
}

.globe-line {
    position: absolute;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 8px rgba(0, 210, 255, 0.8);
}

.line-1 {
    width: 80%;
    height: 40%;
    transform: rotate(20deg);
}

.line-2 {
    width: 40%;
    height: 90%;
    transform: rotate(10deg);
}

.line-3 {
    width: 90%;
    height: 90%;
    transform: rotate(15deg) scaleX(0.3);
}

.globe-dot {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 8px 3px rgba(0, 210, 255, 0.9);
}

.dot-1 { top: 20%; left: 30%; animation: pulse-dot 2s infinite alternate; }
.dot-2 { bottom: 30%; right: 25%; animation: pulse-dot 2s infinite alternate 1s; }
.dot-3 { top: 40%; right: 20%; animation: pulse-dot 2s infinite alternate 0.5s; }

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse-dot {
    0% { opacity: 0.3; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1.5); }
}

.logo:hover .logo-globe-css {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 
        inset 0 0 25px rgba(0, 210, 255, 0.8),
        0 0 35px rgba(0, 210, 255, 0.6);
}

.logo-text h1 {
    font-size: 1.8rem;
    letter-spacing: 2.5px;
    margin-bottom: -2px;
}

.slogan {
    font-size: 0.75rem;
    color: var(--accent);
    letter-spacing: 3.5px;
    text-transform: uppercase;
    font-weight: 400;
}

.desktop-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-link {
    font-size: 0.9rem;
    text-transform: lowercase;
    position: relative;
    padding-bottom: 5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
    box-shadow: 0 0 10px var(--accent-glow);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: var(--text-main);
    transition: var(--transition);
    border-radius: 2px;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav Styles - Off-canvas Drawer */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 9, 20, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 99;
    padding: 100px 20px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-nav.open {
    right: 0;
}

.mobile-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.mobile-link {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 2px;
}

.mobile-link::after {
    display: none;
}

.mobile-nav.open .mobile-link {
    animation: slideInRight 0.5s forwards;
    opacity: 0;
}

.mobile-nav.open li:nth-child(1) .mobile-link { animation-delay: 0.1s; }
.mobile-nav.open li:nth-child(2) .mobile-link { animation-delay: 0.2s; }
.mobile-nav.open li:nth-child(3) .mobile-link { animation-delay: 0.3s; }
.mobile-nav.open li:nth-child(4) .mobile-link { animation-delay: 0.4s; }
.mobile-nav.open li:nth-child(5) .mobile-link { animation-delay: 0.5s; }

@keyframes slideInRight {
    from { transform: translateX(50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Sections */
.section-padding {
    padding: 120px 20px 60px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

/* Hero Cards Grid */
.hero-content {
    max-width: 1100px;
    margin: 0 auto;
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    width: 100%;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 15px;
    text-align: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: var(--transition);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, transparent 100%);
    opacity: 0;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 210, 255, 0.4);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 20px rgba(0, 210, 255, 0.1);
}

.card:hover::before {
    opacity: 1;
}

.card-img-wrapper {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    background: linear-gradient(135deg, rgba(20,30,50,0.8) 0%, rgba(10,15,30,0.9) 100%);
    position: relative;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}

.card-img-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, var(--accent-glow) 0%, transparent 60%);
    opacity: 0;
    transition: var(--transition);
    mix-blend-mode: screen;
}

.card:hover .card-img-wrapper::after {
    opacity: 0.5;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.25, 1), filter 0.4s ease;
    opacity: 0.9;
    filter: brightness(0.9) contrast(1.1);
}

.card:hover .card-img-wrapper img {
    transform: scale(1.1);
    opacity: 1;
    filter: brightness(1.1) contrast(1.2);
}

.card h2 {
    font-size: 1.5rem;
    font-weight: 400;
    text-transform: lowercase;
    position: relative;
    z-index: 1;
}

/* Glass Panels (Content Sections) */
.content-section {
    padding: 80px 20px;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.glass-panel {
    background: rgba(16, 25, 48, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 60px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #ffffff;
    text-transform: lowercase;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.5px;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--accent);
    margin-top: 15px;
    box-shadow: 0 0 10px var(--accent-glow);
}

.lead {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 25px;
    font-weight: 300;
}

.content-text p {
    margin-bottom: 20px;
    color: #c4d1e2;
}

/* Custom List */
.custom-list {
    list-style: none;
    margin-top: 30px;
}

.custom-list li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 18px;
    color: #c4d1e2;
    transition: transform 0.3s ease, color 0.3s ease;
    display: flex;
    align-items: center;
}

.custom-list li:hover {
    transform: translateX(5px);
    color: #ffffff;
}

.custom-list li::before {
    content: '';
    position: absolute;
    left: 0;
    width: 20px;
    height: 20px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%2300d2ff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"></path><polyline points="22 4 12 14.01 9 11.01"></polyline></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.8;
}

/* Grids inside content */
.grid-2-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.grid-item h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-left-col {
    display: flex;
    flex-direction: column;
}

.mt-4 {
    margin-top: 30px;
}

.mt-5 {
    margin-top: 50px;
}

.contact-info {
    display: flex;
    gap: 40px;
}

.info-block h3 {
    color: var(--accent);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.info-block p {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #c4d1e2;
}

.info-block a:hover {
    color: var(--accent);
    text-shadow: 0 0 8px var(--accent-glow);
}

/* Formulario de Contacto */
.form-title {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.3rem;
    position: relative;
    display: inline-block;
}

.form-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    position: relative;
}

.form-control {
    width: 100%;
    background: rgba(16, 25, 48, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    color: var(--text-main);
    font-family: var(--font-main);
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
}

.form-control::placeholder {
    color: rgba(154, 168, 192, 0.6);
}

.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.2), inset 0 0 10px rgba(0, 210, 255, 0.1);
    background: rgba(16, 25, 48, 0.6);
}

.submit-btn {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 15px 30px;
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.1);
    align-self: flex-start;
}

.submit-btn:hover {
    background: var(--accent);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.4);
    transform: translateY(-2px);
}

.submit-btn:active {
    transform: translateY(0);
}

.map-container {
    width: 100%;
    height: 100%;
    min-height: 250px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--card-border);
    background: #0d1222;
}

.glow-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.8;
    transition: var(--transition);
}

.map-container:hover .glow-img {
    opacity: 0.9;
    transform: scale(1.02);
}

/* Footer */
footer {
    padding: 60px 20px 30px;
    border-top: 1px solid rgba(255,255,255,0.03);
    margin-top: 50px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.footer-nav {
    display: flex;
    gap: 15px;
    align-items: center;
}

.footer-nav a {
    text-transform: lowercase;
    font-size: 0.9rem;
    color: var(--text-muted);
    position: relative;
    padding: 5px 10px;
    border-radius: 4px;
    transition: var(--transition);
}

.footer-nav a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 210, 255, 0.1);
    border-radius: 4px;
    transform: scale(0.8);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.footer-nav a:hover {
    color: #fff;
    text-shadow: 0 0 15px rgba(0, 210, 255, 0.5);
}

.footer-nav a:hover::before {
    transform: scale(1);
    opacity: 1;
}

.separator {
    color: rgba(255,255,255,0.1);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.sound-toggle {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--card-border);
    color: var(--text-muted);
    padding: 5px 15px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    transition: var(--transition);
}

.sound-toggle:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-color: rgba(255,255,255,0.2);
}

.sound-toggle:active {
    transform: scale(0.95);
}

.sound-icon {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%239aa8c0"><path d="M3 9v6h4l5 5V4L7 9H3zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77z"/></svg>') no-repeat center;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUpAnim 0.8s cubic-bezier(0.25, 1, 0.25, 1) forwards;
}

@keyframes fadeUpAnim {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.25, 1, 0.25, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-2-cols {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .glass-panel {
        padding: 30px 20px;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
}
