/* Importación de fuentes de Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&family=Poppins:wght@600&family=Raleway:wght@700;800&display=swap');

/* Variables CSS con la paleta Neblina Cósmica */
:root {
    /* Base */
    --white: #FFFFFF;
    --light-gray: #F8FAFC;
    --dark-gray: #334155;
    
    /* Acentos */
    --coral: #FF6B6B;
    --deep-blue: #1E40AF;
    --emerald: #10B981;
    
    /* Colores de fondo */
    --bg-primary: var(--white);
    --bg-secondary: var(--light-gray);
    --bg-dark: var(--dark-gray);
    
    /* Colores de texto */
    --text-primary: var(--dark-gray);
    --text-secondary: var(--deep-blue);
    --text-light: var(--white);
    
    /* Colores de botones */
    --btn-primary-bg: var(--coral);
    --btn-primary-text: var(--white);
    --btn-secondary-bg: transparent;
    --btn-secondary-border: var(--deep-blue);
    --btn-secondary-text: var(--deep-blue);
    
    /* Efectos */
    --shadow-light: 0 2px 10px rgba(51, 65, 85, 0.1);
    --shadow-medium: 0 5px 20px rgba(51, 65, 85, 0.15);
    --shadow-heavy: 0 10px 30px rgba(51, 65, 85, 0.2);
    
    /* Transiciones */
    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;
    --transition-slow: 0.8s ease;
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Tipografía */
h1, h2, h3 {
    font-family: 'Raleway', sans-serif;
    font-weight: 800;
    color: var(--text-secondary);
    line-height: 1.2;
}

h4, .lead, .card-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--text-primary);
}

p, a, button, li {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    color: var(--text-primary);
}

/* Contenedor principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navegación */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(30, 64, 175, 0.1);
    z-index: 1000;
    transition: var(--transition-fast);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    height: 50px;
    transition: var(--transition-fast);
}

.logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-secondary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--text-secondary);
    transition: var(--transition-fast);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Menú móvil */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: var(--transition-fast);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('fondo.jpg') center center/cover no-repeat;
    opacity: 0.15;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23E2E8F0" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    z-index: 2;
}

.hero .container {
    text-align: center;
    position: relative;
    z-index: 3;
}

/* Nombre de la marca con efecto eléctrico */
.brand-name {
    font-family: 'Raleway', sans-serif;
    font-weight: 800;
    font-size: 5rem;
    color: var(--white);
    text-shadow: 
        0 0 10px var(--coral),
        0 0 20px var(--coral),
        0 0 30px var(--coral),
        0 0 40px var(--deep-blue),
        0 0 50px var(--deep-blue);
    margin-bottom: 2rem;
    animation: electricGlow 2s ease-in-out infinite alternate;
    letter-spacing: 0.3em;
    position: relative;
    z-index: 4;
}

.brand-name::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 107, 107, 0.3) 50%, transparent 70%);
    animation: electricSweep 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes electricGlow {
    0% {
        text-shadow: 
            0 0 10px var(--coral),
            0 0 20px var(--coral),
            0 0 30px var(--coral),
            0 0 40px var(--deep-blue),
            0 0 50px var(--deep-blue);
    }
    100% {
        text-shadow: 
            0 0 15px var(--coral),
            0 0 25px var(--coral),
            0 0 35px var(--coral),
            0 0 45px var(--deep-blue),
            0 0 55px var(--deep-blue),
            0 0 65px var(--emerald);
    }
}

@keyframes electricSweep {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-secondary), var(--coral));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease;
}

.hero .subtitle {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-weight: 500;
    animation: fadeInUp 1s ease 0.2s both;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition-fast);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    box-shadow: var(--shadow-light);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background: var(--btn-secondary-bg);
    color: var(--btn-secondary-text);
    border: 2px solid var(--btn-secondary-border);
}

.btn-secondary:hover {
    background: var(--btn-secondary-border);
    color: var(--white);
    transform: translateY(-2px);
}

/* Secciones */
section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--coral), var(--deep-blue));
    border-radius: 2px;
}

/* Servicios */
.servicios {
    background: var(--bg-secondary);
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.servicio-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.servicio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--coral), var(--deep-blue));
}

.servicio-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.servicio-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.servicio-card p {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.servicio-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--bg-secondary), var(--white));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--coral);
    box-shadow: var(--shadow-light);
}

/* Quiénes Somos */
.quienes-somos {
    background: var(--white);
}

.quienes-somos-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.quienes-somos-text h2 {
    margin-bottom: 2rem;
}

.quienes-somos-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.quienes-somos-image {
    text-align: center;
}

.quienes-somos-image img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
}

/* Misión y Visión */
.mision-vision {
    background: var(--bg-secondary);
}

.mision-vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.mision-card,
.vision-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition-fast);
}

.mision-card:hover,
.vision-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.mision-card h3,
.vision-card h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.mision-card p,
.vision-card p {
    line-height: 1.8;
    color: var(--text-primary);
}

/* Contacto */
.contacto {
    background: var(--white);
}

.contacto-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contacto-info h3 {
    margin-bottom: 2rem;
}

.contacto-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    transition: var(--transition-fast);
}

.contacto-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-light);
}

.contacto-item i {
    font-size: 1.5rem;
    color: var(--coral);
    margin-right: 1rem;
    width: 30px;
    text-align: center;
}

.contacto-form {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid transparent;
    border-radius: 8px;
    background: var(--white);
    font-family: 'Inter', sans-serif;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--deep-blue);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group select {
    cursor: pointer;
}

/* Footer */
footer {
    background: var(--dark-gray);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-section a:hover {
    color: var(--coral);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Efectos de hover y transiciones */
.servicio-card,
.mision-card,
.vision-card,
.contacto-item {
    animation: fadeIn 0.6s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        transform: translateY(-100%);
        transition: var(--transition-fast);
        box-shadow: var(--shadow-medium);
    }
    
    .nav-links.active {
        transform: translateY(0);
    }
    
    .brand-name {
        font-size: 3.5rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero .subtitle {
        font-size: 1.2rem;
    }
    
    .quienes-somos-content,
    .mision-vision-grid,
    .contacto-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .servicios-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .brand-name {
        font-size: 2.5rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    section {
        padding: 3rem 0;
    }
}

/* Utilidades */
.text-center {
    text-align: center;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* Botón flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--emerald), #059669);
    color: var(--white);
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    animation: whatsappPulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(16, 185, 129, 0.6);
    color: var(--white);
}

.whatsapp-float i {
    transition: transform 0.3s ease;
}

.whatsapp-float:hover i {
    transform: rotate(10deg);
}

@keyframes whatsappPulse {
    0% {
        box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(16, 185, 129, 0.6), 0 0 0 10px rgba(16, 185, 129, 0.1);
    }
    100% {
        box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
    }
}

/* Responsive para WhatsApp */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 25px;
        bottom: 20px;
        right: 20px;
    }
}