/* Botón de WhatsApp */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(22, 36, 71, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(92, 225, 230, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    z-index: 1000;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.whatsapp-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition);
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    border-color: var(--primary-color);
    box-shadow: var(--glow);
}

.whatsapp-btn:hover img {
    transform: rotate(-10deg);
}

/* Estilos generales - Dark Mode */
:root {
    --primary-color: #5CE1E6; /* Turquesa principal (color de AXEL) */
    --secondary-color: #8AEAEE; /* Turquesa secundario más claro */
    --accent-color: #0A1128; /* Azul muy oscuro para acentos (fondo del logo) */
    --dark-color: #0A1128; /* Fondo principal muy oscuro (azul marino) */
    --light-color: #162447; /* Fondo secundario azul oscuro */
    --text-color: #e0e0e0; /* Texto claro para fondos oscuros */
    --text-light: #ffffff;
    --text-muted: #9e9e9e; /* Texto secundario más apagado */
    --transition: all 0.3s ease;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    --glow: 0 0 15px rgba(92, 225, 230, 0.8); /* Actualizado para el nuevo color primario */
    --animation-duration: 3s; /* Duración de las animaciones de scroll */
    --animation-delay-base: 0.2s; /* Retraso base para animaciones escalonadas */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--dark-color);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

section {
    padding: 80px 0;
    margin-top: 30px;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 5px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}



/* Botones */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    outline: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    z-index: -1;
}

.btn:hover::before {
    left: 0;
}

.btn.primary {
    background: var(--primary-color);
    color: var(--accent-color);
    font-weight: bold;
    box-shadow: var(--shadow);
}

.btn.primary:hover {
    box-shadow: var(--glow);
    transform: translateY(-3px);
}

.btn.secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn.secondary:hover {
    background: var(--primary-color);
    color: var(--accent-color);
    font-weight: bold;
}

.btn.small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Selector de idioma */
.language-selector {
    position: fixed;
    top: 90px;
    right: 1%;
    z-index: 1001;
    display: flex;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 5px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.language-selector button {
    background: none;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    font-weight: bold;
    color: var(--dark-color);
    border-radius: 15px;
    transition: var(--transition);
}

.language-selector button.active {
    background: var(--primary-color);
    color: var(--text-light);
}

/* Header y navegación */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 2.5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: rgba(10, 17, 40, 0.6); /* Más transparente para efecto acrílico */
    backdrop-filter: blur(20px); /* Efecto blur aumentado */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.1); /* Sombra mejorada con brillo interior */
    transition: var(--transition);
    border-bottom: 1px solid rgba(92, 225, 230, 0.15); /* Borde más visible */
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* Borde superior sutil para efecto acrílico */
}

header.scrolled {
    padding: 0.5rem 5%;
    background: rgba(10, 17, 40, 0.85); /* Color más azul para el header al hacer scroll pero manteniendo algo de transparencia */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.05); /* Sombra ajustada para estado scrolled */
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    height: 50px;
}

.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    display: inline-block;
    transition: var(--transition);
}

.logo-text:hover {
    color: var(--primary-color);
    text-shadow: var(--glow);
    transform: translateY(-2px);
    transition: var(--transition);
}

header.scrolled .logo {
    height: 40px;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    position: relative;
    font-weight: 500;
    transition: var(--transition);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

nav ul li a:hover {
    color: var(--primary-color);
}

nav ul li a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Sección Hero */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 5%;
    padding-top: -60px; /* Reducido significativamente para mover contenido hacia arriba */
    background: var(--dark-color);
    position: relative;
    overflow: hidden;
    gap: 8%;
}

/* Fondo espacial */
.space-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/fondo.webp') center/cover no-repeat;
    z-index: 0;
    opacity: 0.8;
}

/* Elementos espaciales */
.space-element {
    position: absolute;
    z-index: 1;
    pointer-events: none;
}

.planet-1 {
    top: 15%;
    left: 10%;
    width: 100px;
    height: 100px;
    background: url('assets/planeta_1-removebg-preview.png') center/contain no-repeat;
    animation: float-slow 10s infinite ease-in-out, rotate 30s infinite linear;
}

.planet-2 {
    bottom: 20%;
    right: 15%;
    width: 120px;
    height: 120px;
    background: url('assets/planeta_2-removebg-preview.png') center/contain no-repeat;
    animation: float-medium 15s infinite ease-in-out, rotate-reverse 15s infinite linear;
}

.planet-3 {
    top: 60%;
    left: 20%;
    width: 100px;
    height: 100px;
    background: url('assets/planeta__3-removebg-preview.png') center/contain no-repeat;
    animation: float-fast 8s infinite ease-in-out;
}

.planet-4 {
    top: 30%;
    right: 25%;
    width: 70px;
    height: 70px;
    background: url('assets/planeta_4-removebg-preview.png') center/contain no-repeat;
    animation: float-medium 12s infinite ease-in-out reverse;
}

.planet-5 {
    bottom: 15%;
    left: 30%;
    width: 90px;
    height: 90px;
    background: url('assets/planeta_5-removebg-preview.png') center/contain no-repeat;
    animation: float-slow 15s infinite ease-in-out, rotate 120s infinite linear;
}

.moon {
    top: 25%;
    right: 10%;
    width: 60px;
    height: 60px;
    background: url('assets/Luna-removebg-preview.png') center/contain no-repeat;
    animation: float-medium 8s infinite ease-in-out, orbit 25s infinite linear;
}

.star {
    width: 30px;
    height: 30px;
    background: url('assets/estrella.png') center/contain no-repeat;
    animation: twinkle 2s infinite ease-in-out;
}

.star-1 {
    top: 15%;
    left: 45%;
}

.star-2 {
    top: 70%;
    right: 30%;
    animation-delay: 1s;
}

.star-3 {
    top: 40%;
    left: 15%;
    animation-delay: 0.5s;
}

.star-4 {
    bottom: 20%;
    right: 45%;
    animation-delay: 1.5s;
}

.star-5 {
    top: 30%;
    left: 75%;
    animation-delay: 0.7s;
}

.hero-content {
    max-width: 650px;
    z-index: 10;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    margin-left: 5%;
    margin-top: -120px; /* Aumentado para mover el contenido mucho más arriba */
}

.hero-logo {
    margin-bottom: -12rem; /* Aumentado para mover el logo más arriba */
    width: 600px;
    align-self: flex-start;
}

.logo-img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(92, 225, 230, 0.8)); /* Mejorado el efecto de sombra */
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--text-light);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    color: var(--text-light);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    align-self: flex-start;
}

.hero-mascot {
    position: relative;
    z-index: 10;
}

.axel-img {
    width: 350px;
    height: 350px;
    object-fit: contain;
    animation: float 12s infinite ease-in-out;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 0 20px rgba(92, 225, 230, 0.8));
    box-shadow: 0 0 30px rgba(92, 225, 230, 0.6);
    border-radius: 50%;
}

/* Fondo de estrellas para todas las secciones */
.starry-background {
    position: relative;
    background: var(--dark-color);
    background-image: 
        radial-gradient(1px 1px at 25% 15%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1px 1px at 50% 40%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1.5px 1.5px at 75% 25%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(2px 2px at 20% 60%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(2.5px 2.5px at 40% 80%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(2px 2px at 90% 10%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1px 1px at 10% 30%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1.5px 1.5px at 30% 70%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1px 1px at 60% 30%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(2px 2px at 70% 60%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1px 1px at 80% 85%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1.5px 1.5px at 95% 45%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1px 1px at 5% 80%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1.5px 1.5px at 85% 75%, rgba(255, 255, 255, 0.7), transparent);
    background-size: 550px 550px;
    animation: twinkle-background 20s ease infinite alternate;
}

@keyframes twinkle-background {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 100% 100%;
    }
}

/* Sección Servicios */
.services {
    padding: 6rem 5%;
    background: var(--dark-color);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background-image: 
        radial-gradient(1px 1px at 25% 15%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1px 1px at 50% 40%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1.5px 1.5px at 75% 25%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(2px 2px at 20% 60%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(2.5px 2.5px at 40% 80%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(2px 2px at 90% 10%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1px 1px at 10% 30%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1.5px 1.5px at 30% 70%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1px 1px at 60% 30%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(2px 2px at 70% 60%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1px 1px at 80% 85%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1.5px 1.5px at 95% 45%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1px 1px at 5% 80%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1.5px 1.5px at 85% 75%, rgba(255, 255, 255, 0.7), transparent);
    background-size: 550px 550px;
    animation: twinkle-background 20s ease infinite alternate;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.service-card {
    background: rgba(22, 36, 71, 0.7);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(92, 225, 230, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(to bottom, rgba(30, 136, 229, 0.08) 0%, rgba(13, 71, 161, 0) 100%);
    transition: var(--transition);
    z-index: -1;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

.service-card:hover::before {
    height: 100%;
}

.service-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-family: 'Montserrat', sans-serif;
}

/* Sección Proyectos */
.projects {
    padding: 6rem 5%;
    background: var(--dark-color);
    position: relative;
}

.projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background-image: 
        radial-gradient(1px 1px at 25% 15%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1px 1px at 50% 40%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1.5px 1.5px at 75% 25%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(2px 2px at 20% 60%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(2.5px 2.5px at 40% 80%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(2px 2px at 90% 10%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1px 1px at 10% 30%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1.5px 1.5px at 30% 70%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1px 1px at 60% 30%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(2px 2px at 70% 60%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1px 1px at 80% 85%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1.5px 1.5px at 95% 45%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1px 1px at 5% 80%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1.5px 1.5px at 85% 75%, rgba(255, 255, 255, 0.7), transparent);
    background-size: 550px 550px;
    animation: twinkle-background 20s ease infinite alternate;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.project-card {
    background: rgba(22, 36, 71, 0.7);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--glow);
}

.project-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    margin-bottom: 0.5rem;
    font-family: 'Montserrat', sans-serif;
}

.project-info p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

/* Sección Acerca de Nosotros */
.about {
    padding: 6rem 5%;
    background: var(--dark-color);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background-image: 
        radial-gradient(1px 1px at 25% 15%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1px 1px at 50% 40%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1.5px 1.5px at 75% 25%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(2px 2px at 20% 60%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(2.5px 2.5px at 40% 80%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(2px 2px at 90% 10%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1px 1px at 10% 30%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1.5px 1.5px at 30% 70%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1px 1px at 60% 30%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(2px 2px at 70% 60%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1px 1px at 80% 85%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1.5px 1.5px at 95% 45%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1px 1px at 5% 80%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1.5px 1.5px at 85% 75%, rgba(255, 255, 255, 0.7), transparent);
    background-size: 550px 550px;
    animation: twinkle-background 20s ease infinite alternate;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.about-content {
    background: rgba(22, 36, 71, 0.7);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

.about-text {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* Estilos para la sección del fundador */
.founder-header, .axel-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.founder-header h3, .axel-header h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.founder-header h3::after, .axel-header h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 5px;
}

.founder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.founder-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(92, 225, 230, 0.5);
}

.founder-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.founder-text {
    text-align: center;
}

.founder-text h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.founder-position {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* Estilos para la sección de AXEL */
.axel-section {
    text-align: center;
}

.axel-emotions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.axel-emotion {
    width: 100px;
    height: 100px;
    object-fit: contain;
    cursor: pointer;
    transition: var(--transition);
    filter: grayscale(50%);
}

.axel-emotion:hover {
    transform: scale(1.2);
    filter: grayscale(0%);
}

/* Media queries para responsividad */
@media (max-width: 992px) {
    .about-container {
        grid-template-columns: 1fr;
    }
    
    .founder-bio {
        margin-bottom: 2rem;
    }

    .hero {
        justify-content: center;
        text-align: center;
        padding-top: 80px;
    }

    .hero-content {
        align-items: center;
        margin-left: 0;
    }

    .hero-logo {
        align-self: center;
        width: 80%;
        max-width: 500px;
    }

    .cta-buttons {
        align-self: center;
    }
}

@media (max-width: 768px) {
    .founder-content {
        flex-direction: column;
    }
    
    .founder-image {
        margin-bottom: 1rem;
    }

    .hero-logo {
        width: 90%;
        margin-bottom: -8rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        max-width: 300px;
    }

    .btn {
        width: 100%;
    }
}

/* Sección Contacto */
.contact {
    padding: 6rem 5%;
    background: var(--dark-color);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background-image: 
        radial-gradient(1px 1px at 25% 15%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1px 1px at 50% 40%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1.5px 1.5px at 75% 25%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(2px 2px at 20% 60%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(2.5px 2.5px at 40% 80%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(2px 2px at 90% 10%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1px 1px at 10% 30%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1.5px 1.5px at 30% 70%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1px 1px at 60% 30%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(2px 2px at 70% 60%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1px 1px at 80% 85%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1.5px 1.5px at 95% 45%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1px 1px at 5% 80%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1.5px 1.5px at 85% 75%, rgba(255, 255, 255, 0.7), transparent);
    background-size: 550px 550px;
    animation: twinkle-background 20s ease infinite alternate;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.contact-info {
    background: rgba(22, 36, 71, 0.7);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.info-item a {
    transition: var(--transition);
}

.info-item a:hover {
    color: var(--primary-color);
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 1rem;
}

.social-media {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(92, 225, 230, 0.8);
    color: var(--dark-color);
    border-radius: 50%;
    transition: var(--transition);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-icon:hover {
    transform: translateY(-5px);
    box-shadow: var(--glow);
}

.contact-form {
    background: rgba(22, 36, 71, 0.7);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 0;
    font-size: 1rem;
    border: none;
    border-bottom: 2px solid #ddd;
    background: transparent;
    outline: none;
    transition: var(--transition);
}

.form-group label {
    position: absolute;
    top: 0.8rem;
    left: 0;
    pointer-events: none;
    transition: var(--transition);
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group input:valid,
.form-group textarea:valid {
    border-bottom-color: var(--primary-color);
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:valid + label,
.form-group textarea:valid + label {
    top: -20px;
    font-size: 0.8rem;
    color: var(--primary-color);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

/* Footer */
footer {
    background: rgba(5, 25, 55, 0.8);
    color: var(--text-light);
    padding: 4rem 5% 2rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1
}

.footer-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    min-height: 100%;
}

.footer-logo {
    max-width: 300px;
    flex: 0 0 25%;
}

.footer-logo-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 1rem;
    display: inline-block;
    transition: var(--transition);
}

.footer-logo-text:hover {
    color: var(--primary-color);
    text-shadow: var(--glow);
    transform: translateY(-2px);
}

.footer-links {
    display: flex;
    gap: 3rem;
    flex: 0 0 70%;
    justify-content: space-between;
}

.footer-column h4 {
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
}

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column ul li a {
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

/* Estilos para la información de contacto en el footer */
.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-info-item i {
    color: var(--primary-color);
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.footer-info-item p {
    margin: 0;
    font-size: 0.9rem;
}

.footer-social-media {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.footer-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    transition: var(--transition);
}

.footer-social-icon:hover {
    background: var(--primary-color);
    color: var(--dark-color);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    margin-top: 4rem;
    padding-top: 2rem;
    padding-bottom: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Animaciones para el fondo espacial */
@keyframes float-slow {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes float-medium {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-25px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes float-fast {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-35px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes rotate-reverse {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(-360deg);
    }
}

@keyframes orbit {
    0% {
        transform: rotate(0deg) translateX(100px) rotate(0deg);
    }
    100% {
        transform: rotate(360deg) translateX(100px) rotate(-360deg);
    }
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Media Queries */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 120px 5% 40px;
        height: auto;
        min-height: 100vh;
        justify-content: center;
    }
    
    .hero-content {
        margin: 0 auto;
        align-items: center;
        max-width: 100%;
        padding: 0 20px;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .footer-logo {
        margin-bottom: 2rem;
        text-align: center;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-logo {
        margin-bottom: -8rem;
        width: 100%;
        max-width: 400px;
    }

    .hero-mascot {
        margin-top: 2rem;
    }

    .axel-img {
        width: 250px;
        height: 250px;
    }

    .space-element {
        transform: scale(0.7);
    }
    
    .menu-toggle {
        display: block;
    }
    
    nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(10, 17, 40, 0.7); /* Fondo acrílico que coincide con el header */
        backdrop-filter: blur(20px); /* Efecto blur para efecto acrílico */
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.1); /* Sombra con brillo interior */
        border-top: 1px solid rgba(255, 255, 255, 0.1); /* Borde superior sutil */
        border-bottom: 1px solid rgba(92, 225, 230, 0.15); /* Borde inferior con color primario */
        padding: 1rem 0;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.4s ease;
    }
    
    nav.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav ul li {
        margin: 1rem 0;
    }
    
    .services-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-logo {
        flex: 0 0 100%;
        margin-bottom: 2rem;
    }
    
    .footer-links {
        flex: 0 0 100%;
        flex-direction: column;
        gap: 2rem;
    }
}

@media (max-width: 576px) {
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .axel-emotions {
        gap: 1rem;
        gap: 1rem;
    }
    
    .axel-emotion {
        width: 70px;
        height: 70px;
    }
}
