:root {
    --primary-blue: #0a1f3a;
    --secondary-blue: #1a3a5f;
    --accent-blue: #2c5282;
    --electric-blue: #3182ce;
    --light-blue: #ebf8ff;
    --dark-blue: #0f2a42;
    --neon-blue: #00a8ff;
    --text-dark: #2d3748;
    --text-light: #a0aec0;
    --white: #ffffff;
    --error-color: #e53e3e;
    --success-color: #38a169;
    --gradient: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 50%, var(--accent-blue) 100%);
    --gradient-light: linear-gradient(135deg, #cbd5e1 0%, #e2e8f0 15%, #f1f5f9 30%, #ffffff 50%, #f1f5f9 70%, #e2e8f0 85%, #cbd5e1 100%);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 20px 50px rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
}

body {
    background-color: #f0f7ff;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(49, 130, 206, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(26, 58, 95, 0.05) 0%, transparent 20%);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background: var(--gradient);
    color: var(--white);
    padding: 2rem 0;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.05) 0%, transparent 20%);
    z-index: 1;
}

.header-content {
    position: relative;
    z-index: 2;
}

.logo-container {
    text-align: center;
    margin-bottom: 1.5rem;
}

.logo {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    background: linear-gradient(to right, var(--light-blue), #a0d2ff, var(--neon-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    text-shadow: 0 0 20px rgba(0, 168, 255, 0.3);
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--neon-blue), transparent);
}

.logo img {
    width: 128px;
    height: 128px;
    object-fit: contain; /* Mantiene la proporción de la imagen */
}

.tagline {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 300;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Hero Section */
.hero {
    padding: 5rem 0;
    background: var(--gradient-light);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(45deg, transparent 49%, rgba(49, 130, 206, 0.03) 50%, transparent 51%),
        linear-gradient(-45deg, transparent 49%, rgba(49, 130, 206, 0.03) 50%, transparent 51%);
    background-size: 20px 20px;
    z-index: 1;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-blue);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    display: inline-block;
}

.hero h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--electric-blue);
    border-radius: 3px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin-bottom: 2rem;
    color: var(--text-dark);
    line-height: 1.8;
}

/* Services Section */
.services {
    padding: 5rem 0;
    background-color: var(--white);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 10% 10%, rgba(49, 130, 206, 0.03) 0%, transparent 20%),
        radial-gradient(circle at 90% 90%, rgba(26, 58, 95, 0.03) 0%, transparent 20%);
    z-index: 1;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-blue);
    position: relative;
    z-index: 2;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: var(--electric-blue);
    margin: 15px auto;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(49, 130, 206, 0.5);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.service-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    border-top: 4px solid var(--electric-blue);
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: all 0.6s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--electric-blue);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px rgba(49, 130, 206, 0.3);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

.service-card p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background: var(--gradient);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.05) 0%, transparent 20%);
    z-index: 1;
}

.contact .section-title {
    color: var(--white);
}

.contact .section-title::after {
    background: var(--neon-blue);
    box-shadow: 0 0 10px rgba(0, 168, 255, 0.7);
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--shadow-heavy);
    position: relative;
    z-index: 2;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-group {
    margin-bottom: 0.1rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.2rem;
    font-weight: 600;
    color: var(--primary-blue);
}

.form-control {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
}

.form-control:focus {
    outline: none;
    border-color: var(--electric-blue);
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.2);
    background: rgba(255, 255, 255, 1);
}

/* Estilos para campos válidos e inválidos */
.form-control.valid {
    border-color: var(--success-color);
    box-shadow: 0 0 0 3px rgba(56, 161, 105, 0.2);
}

.form-control.invalid {
    border-color: var(--error-color);
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.2);
}

.error-message {
    color: var(--error-color);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.error-message.show {
    opacity: 1;
    transform: translateY(0);
}

.error-message i {
    margin-right: 5px;
}

.form-row {
    display: flex;
    gap: 1.5rem;
}

.form-row .form-group {
    flex: 1;
}

.hidden-field {
    display: none;
}

.btn {
    display: inline-block;
    background: var(--gradient);
    color: var(--white);
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: all 0.6s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.btn:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn:disabled:hover::before {
    left: -100%;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Footer */
footer {
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 3rem 0;
    text-align: center;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(45deg, transparent 49%, rgba(255, 255, 255, 0.03) 50%, transparent 51%),
        linear-gradient(-45deg, transparent 49%, rgba(255, 255, 255, 0.03) 50%, transparent 51%);
    background-size: 30px 30px;
    z-index: 1;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, var(--light-blue), #a0d2ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.copyright {
    font-size: 0.95rem;
    color: #a0aec0;
}

/* Animaciones */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 2rem;
    }

    .logo {
        font-size: 2.2rem;
    }
}