@import 'sections.css';
@import 'navigation.css';

/* ===== VARIABLES CSS UNIFICADAS ===== */
:root {
    /* Colores Corporativos Principales */
    --primary-color: #0D253F;
    --secondary-color: #00A896;
    --accent-color: #1a365d;
    --primary-light: #2c5282;
    --secondary-light: #02C39A;
    --primary-dark: #0a1d30;
    --secondary-dark: #008b7a;
    
    /* Colores de Estado */
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    
    /* Colores de Texto */
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --text-muted: #8e9297;
    --text-light: #ffffff;
    --text-dark: #000000;
    
    /* Colores de Fondo */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-light: #f1f3f4;
    --bg-dark: #343a40;
    --bg-gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --bg-gradient-light: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    
    /* Colores con Transparencia */
    --primary-alpha-10: rgba(13, 37, 63, 0.1);
    --primary-alpha-20: rgba(13, 37, 63, 0.2);
    --secondary-alpha-10: rgba(0, 168, 150, 0.1);
    --secondary-alpha-20: rgba(0, 168, 150, 0.2);
    --white-alpha-10: rgba(255, 255, 255, 0.1);
    --white-alpha-20: rgba(255, 255, 255, 0.2);
    --black-alpha-10: rgba(0, 0, 0, 0.1);
    --black-alpha-20: rgba(0, 0, 0, 0.2);
    
    /* Bordes */
    --border-color: #dee2e6;
    --border-light: #e9ecef;
    --border-dark: #adb5bd;
    --border-radius-sm: 0.25rem;
    --border-radius: 0.375rem;
    --border-radius-lg: 0.5rem;
    --border-radius-xl: 1rem;
    --border-radius-full: 50px;
    
    /* Espaciado */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;
    --spacing-xxxl: 4rem;
    --section-padding: 5rem 0;
    --container-padding: 1.5rem;
    
    /* Tipografía */
    --font-family-primary: 'Montserrat', sans-serif;
    --font-family-secondary: 'Lato', sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.7;
    
    /* Sombras */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
    
    /* Transiciones */
    --transition-fast: all 0.15s ease-in-out;
    --transition-normal: all 0.3s ease-in-out;
    --transition-slow: all 0.5s ease-in-out;
    --transition-bounce: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Legacy Variables for Compatibility */
    --primary-color-rgb: 13, 37, 63;
    --secondary-color-rgb: 0, 168, 150;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Lato', sans-serif;
    --transition-fast: 0.2s ease;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --hover-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --focus-ring: 0 0 0 3px rgba(var(--primary-color-rgb), 0.5);
    --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --font-small: 0.875rem;
    --font-normal: 1rem;
    --font-medium: 1.25rem;
    --font-large: 1.5rem;
    --font-xlarge: 2rem;
    --font-xxlarge: 2.5rem;
    --section-spacing: 4rem;
    --title-spacing: 2rem;
    --element-spacing: 1rem;
    --text-color: #333333;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--white);
    transition: background-color 0.3s ease, color 0.3s ease;
}

section {
    padding: var(--section-spacing) 0;
}

section h2 {
    text-align: center;
    margin-bottom: var(--title-spacing);
    font-size: 2.5rem;
    font-family: var(--font-primary);
    font-weight: bold;
    position: relative;
    padding-bottom: 1rem;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* Header & Navigation */
.header {
    position: fixed;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1.5rem 5%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header.scrolled {
    padding: 1rem 5%;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.navbar {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.navbar-brand {
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-brand svg {
    transition: all 0.3s ease;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.2));
}

.navbar-brand:hover svg {
    filter: drop-shadow(3px 3px 6px rgba(0,0,0,0.3));
}

/* Animación sutil para elementos tech del logo */
@keyframes techPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.navbar-brand svg g:last-child circle,
.navbar-brand svg g:last-child line {
    animation: techPulse 3s ease-in-out infinite;
}

/* Mejorar el texto del logo */
.navbar-brand .text-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.navbar-brand small {
    font-weight: 300;
    opacity: 0.8;
    font-size: 10px !important;
}

/* Responsive para el logo */
@media (max-width: 768px) {
    .navbar-brand svg {
        width: 35px;
        height: 35px;
    }
    
    .navbar-brand .text-primary {
        font-size: 16px !important;
    }
    
    .navbar-brand small {
        font-size: 9px !important;
    }
}

.logo {
    position: relative;
    overflow: hidden;
    display: inline-block;
    transform-origin: center;
    animation: logoFloat 6s ease-in-out infinite;
    border-radius: 10px;
    background: linear-gradient(45deg, rgba(var(--primary-color-rgb), 0.1), rgba(var(--secondary-color-rgb), 0.1));
    padding: 10px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo img {
    height: 65px;
    width: auto;
    display: block;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    max-width: 100%;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    opacity: 0;
    transform: translateY(10px);
}

.logo img.loaded {
    opacity: 1;
    transform: translateY(0);
}

.logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    background: linear-gradient(45deg, rgba(var(--primary-color-rgb), 0.15), rgba(var(--secondary-color-rgb), 0.15));
}

.logo:hover img {
    transform: scale(1.05);
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.15));
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.service-card {
    height: 100%;
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .header {
        padding: 0.8rem 5%;
    }

    .header.scrolled {
        padding: 0.3rem 0;
    }
}

/* Hero Section */
.hero {
    min-height: 90vh; /* Ligeramente más corto */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), #0b2035); /* Darker Gradient */
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    display: none;
}

.hero::after {
    display: none;
}

@keyframes backgroundFloat {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-20px, -20px) scale(1.1); }
    100% { transform: translate(0, 0) scale(1); }
}

.hero-content {
    max-width: 800px;
    z-index: 1;
    color: var(--white);
    opacity: 0;
    transform: translateY(30px);
    animation: heroContentReveal 1s ease forwards;
    position: relative;
}

.hero-content::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -100px;
    right: -100px;
    animation: floatingBubble 8s ease-in-out infinite;
}

@keyframes floatingBubble {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-30px, 30px) scale(1.2); }
    100% { transform: translate(0, 0) scale(1); }
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: var(--white);
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    animation: fadeInUp 1s ease 0.3s;
    opacity: 0;
    animation-fill-mode: forwards;
    line-height: 1.6;
}

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

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--white);
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--white);
    animation: fadeInUp 1s ease 0.3s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1.25rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background: linear-gradient(45deg, #2563eb, #3b82f6, #60a5fa);
    background-size: 200% 200%;
    animation: gradientShift 5s ease infinite, pulse 2s infinite;
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
    color: white;
    background-size: 150% 150%;
}

.cta-button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.3);
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 85%;
        max-width: 400px;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 2rem;
        transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.2rem;
        margin: 1rem 0;
        display: block;
        text-align: center;
    }

    body.dark-mode .nav-links {
        background: var(--dark-card);
    }
}

.menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: none;
    border: none;
    padding: 0.8rem;
    color: var(--text-color);
}

@media (max-width: 768px) {
    .header {
        padding: 0.8rem 5%;
    }

    .menu-btn {
        display: block;
        transition: transform 0.3s ease;
    }

    .menu-btn.active {
        transform: rotate(90deg);
    }

    body.menu-open {
        overflow: hidden;
    }

    .header.scrolled {
        padding: 0.3rem 0;
    }
}

.logo {
    position: relative;
    overflow: hidden;
    display: inline-block;
    transform-origin: center;
    animation: logoFloat 6s ease-in-out infinite;
    border-radius: 10px;
    background: linear-gradient(45deg, rgba(var(--primary-color-rgb), 0.1), rgba(var(--secondary-color-rgb), 0.1));
    padding: 10px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo img {
    height: 65px;
    width: auto;
    display: block;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    max-width: 100%;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    opacity: 0;
    transform: translateY(10px);
}

.logo img.loaded {
    opacity: 1;
    transform: translateY(0);
}

.logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    background: linear-gradient(45deg, rgba(var(--primary-color-rgb), 0.15), rgba(var(--secondary-color-rgb), 0.15));
}

.logo:hover img {
    transform: scale(1.05);
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.15));
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
}

.menu-btn:hover {
    transform: scale(1.1);
}

.menu-btn.active {
    transform: rotate(90deg);
}

body.menu-open {
    overflow: hidden;
}

/* Services Section */
.services {
    padding: 5rem 5%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.service-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    width: 120px;
    height: 120px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.service-card h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.6rem;
}

.service-card p {
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.service-card ul {
    list-style: none;
    text-align: left;
    width: 100%;
    margin: 0;
    padding: 0;
}

.service-card li {
    margin: 0.8rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-color);
}

.service-card li:before {
    content: '✓';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 0;
}

/* Solutions Section */
.solutions {
    padding: 5rem 5%;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.solution-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.solution-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    loading: lazy;
    will-change: transform;
}

.solution-content {
    padding: 1.5rem;
}

.solution-content ul {
    list-style: none;
    margin-top: 1rem;
}

.solution-content li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.solution-content li:before {
    content: '✓';
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

/* Contact Section */
.contact {
    padding: 5rem 5%;
    background: var(--light-bg);
}

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

.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group label {
    position: absolute;
    left: 0.8rem;
    top: 0.8rem;
    color: #666;
    transition: var(--transition);
    pointer-events: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -0.5rem;
    left: 0.5rem;
    background: var(--white);
    padding: 0 0.5rem;
    font-size: 0.8rem;
    color: var(--primary-color);
    transform: translateY(0);
}

/* Loading animations */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Form feedback */
.form-success,
.form-error {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    display: none;
}

.form-success {
    background-color: rgba(0, 200, 0, 0.1);
    color: #008000;
}

.form-error {
    background-color: rgba(255, 0, 0, 0.1);
    color: #ff0000;
}

.submit-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    background-color: var(--primary-color-dark);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
.form-group textarea:not(:placeholder-shown) + label {
    top: -0.5rem;
    left: 0.5rem;
    background: var(--white);
    padding: 0 0.5rem;
    font-size: 0.8rem;
    color: var(--primary-color);
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    background: var(--secondary-color);
}

/* Legal Pages Styles */
.legal-content,
.sitemap-content {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.legal-content h1,
.sitemap-content h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

.legal-content section,
.sitemap-content section {
    margin-bottom: 2.5rem;
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
}

.legal-content h2,
.sitemap-content h2 {
    color: var(--secondary-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.legal-content h2::after,
.sitemap-content h2::after {
    left: 0;
    transform: none;
}

.legal-content p,
.sitemap-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.legal-content ul,
.sitemap-content ul {
    list-style-position: inside;
    margin-bottom: 1rem;
    padding-left: 1rem;
}

.legal-content li,
.sitemap-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.sitemap-section ul ul {
    padding-left: 2rem;
}

.sitemap-section a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.sitemap-section a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Dark Mode Styles for Legal Pages */
body.dark-mode .legal-content section,
body.dark-mode .sitemap-content section {
    background: var(--dark-card);
}

body.dark-mode .sitemap-section a {
    color: var(--dark-text);
}

body.dark-mode .sitemap-section a:hover {
    color: var(--primary-color);
}

/* Responsive Styles for Legal Pages */
@media (max-width: 768px) {
    .legal-content,
    .sitemap-content {
        margin: 1rem auto;
    }

    .legal-content h1,
    .sitemap-content h1 {
        font-size: 2rem;
    }

    .legal-content h2,
    .sitemap-content h2 {
        font-size: 1.5rem;
    }

    .legal-content section,
    .sitemap-content section {
        padding: 1.5rem;
    }
}

/* Footer */
.footer {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 3rem 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    align-items: start;
    justify-content: space-between;
}

.footer-section {
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding: 0 1rem;
    }

    .footer-section {
        align-items: center;
        text-align: center;
        padding: 0 1rem;
    }

    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

.footer-section p {
    margin: 0.5rem 0;
    opacity: 0.9;
}

.footer-section i {
    margin-right: 0.5rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
}

.social-icon {
    color: white;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
}

.newsletter {
    margin-top: 1.5rem;
}

.newsletter h5 {
    margin-bottom: 0.5rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    padding: 0.5rem;
    border: none;
    border-radius: 4px;
    flex: 1;
}

.newsletter-form button {
    padding: 0.5rem 1rem;
    background: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.newsletter-form button:hover {
    opacity: 0.9;
}

.footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding: 2rem 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
}

.copyright {
    opacity: 0.8;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding: 0 1rem;
    }

    .footer-section {
        padding: 0 1rem;
    }

    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-icons {
        justify-content: center;
    }

    .newsletter-form {
        max-width: 300px;
        margin: 0 auto;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }

    .footer-bottom {
        padding: 1.5rem 1rem 0;
    }
}

/* --- Fixes for User-Reported Issues --- */

/* Casos de exito - Even Logo Sizes */
.case-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%; /* Make sure cards take full height of the column */
}

.case-card img {
    max-height: 80px; /* Constrain logo height */
    width: auto;      /* Maintain aspect ratio */
    object-fit: contain;
}

/* Tecnologias - Better Grid Layout */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    text-align: center;
}

.tech-item {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.tech-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

/* --- End of Fixes --- */

/* Estilos adicionales para la sección de contacto */

/* WhatsApp Button Floating */
.whatsapp-floating {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25D366;
    color: white;
    border-radius: 50px;
    padding: 15px 20px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: none;
}

.whatsapp-floating:hover {
    background: #128C7E;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-floating i {
    margin-right: 8px;
    font-size: 1.2rem;
}

/* Mostrar botón flotante en móviles */
@media (max-width: 768px) {
    .whatsapp-floating {
        display: inline-flex;
        align-items: center;
    }
    
    /* Ajustar espaciado en móviles */
    .contact-section {
        padding: 3rem 0;
    }
    
    .contact-form-container {
        margin-bottom: 2rem;
    }
    
    .whatsapp-card {
        margin-bottom: 1.5rem;
    }
    
    .contact-method {
        margin-bottom: 1rem;
    }
}

/* Animación de pulso para el botón de WhatsApp */
@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-floating.pulse {
    animation: whatsapp-pulse 2s infinite;
}

/* Mejorar legibilidad en dispositivos pequeños */
@media (max-width: 576px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
    }
    
    .form-title {
        font-size: 1.4rem;
    }
    
    .whatsapp-header h4 {
        font-size: 1.2rem;
    }
    
    .methods-title {
        font-size: 1.1rem;
    }
}

/* ===== PREMIUM FOOTER STYLES ===== */
.premium-footer {
    background: linear-gradient(135deg, #0D253F 0%, #1a365d 50%, #2c5282 100%);
    position: relative;
    overflow: hidden;
    color: white;
    margin-top: auto;
}

/* Footer Background Elements */
.footer-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.footer-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="footer-grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23footer-grid)"/></svg>');
    opacity: 0.3;
}

.footer-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.footer-shape {
    position: absolute;
    background: linear-gradient(135deg, rgba(0, 168, 150, 0.1) 0%, rgba(13, 37, 63, 0.1) 100%);
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
}

.footer-shape-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    right: -150px;
    animation-delay: 0s;
}

.footer-shape-2 {
    width: 200px;
    height: 200px;
    bottom: -100px;
    left: -100px;
    animation-delay: 7s;
}

.footer-shape-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 20%;
    animation-delay: 14s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(90deg);
    }
    50% {
        transform: translateY(10px) rotate(180deg);
    }
    75% {
        transform: translateY(-10px) rotate(270deg);
    }
}

/* Footer Content */
.premium-footer .container {
    position: relative;
    z-index: 2;
}

/* Footer Brand */
.footer-brand {
    position: relative;
}

.footer-logo svg {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.footer-brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #00A896;
    margin-bottom: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.footer-brand-tagline {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

/* Footer Stats */
.footer-stats {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
}

.footer-stats .stat-item {
    text-align: center;
}

.footer-stats .stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: #00A896;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.footer-stats .stat-label {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Footer Titles */
.footer-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #00A896;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #00A896 0%, transparent 100%);
}

/* Footer Menus */
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 0.8rem;
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.footer-menu a:hover {
    color: #00A896;
    transform: translateX(5px);
}

.footer-menu a i {
    width: 20px;
    color: #00A896;
    opacity: 0.7;
}

/* Contact Info Footer */
.contact-info-footer {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.contact-item i {
    font-size: 1.2rem;
    color: #00A896;
    margin-right: 1rem;
    width: 30px;
    text-align: center;
}

.contact-label {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-value {
    display: block;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-value:hover {
    color: #00A896;
}

/* Newsletter */
.newsletter-signup {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.newsletter-title {
    font-size: 1rem;
    font-weight: 600;
    color: #00A896;
    margin-bottom: 0.5rem;
}

.newsletter-description {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
}

.newsletter-form .input-group {
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.newsletter-input {
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
}

.newsletter-input:focus {
    background: white;
    box-shadow: none;
    border: none;
}

.newsletter-btn {
    background: linear-gradient(135deg, #00A896 0%, #0D253F 100%);
    border: none;
    color: white;
    padding: 0.8rem 1.2rem;
    transition: all 0.3s ease;
}

.newsletter-btn:hover {
    background: linear-gradient(135deg, #0D253F 0%, #00A896 100%);
    transform: scale(1.05);
}

/* Footer Divider */
.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    margin: 2rem 0;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-legal {
    text-align: left;
}

.copyright-text {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.legal-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.legal-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: #00A896;
}

.legal-links .separator {
    color: rgba(255, 255, 255, 0.4);
}

/* Footer Social */
.footer-social {
    text-align: right;
}

.social-title {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-link.linkedin::before {
    background: linear-gradient(135deg, #0077B5 0%, #005885 100%);
}

.social-link.twitter::before {
    background: linear-gradient(135deg, #1DA1F2 0%, #0d8bd9 100%);
}

.social-link.github::before {
    background: linear-gradient(135deg, #333 0%, #000 100%);
}

.social-link.youtube::before {
    background: linear-gradient(135deg, #FF0000 0%, #cc0000 100%);
}

.social-link.whatsapp::before {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.social-link:hover::before {
    opacity: 1;
}

.social-link:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.social-link i {
    position: relative;
    z-index: 2;
    font-size: 1.2rem;
}

/* Footer Tech Badges */
.footer-tech {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.tech-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.tech-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.tech-badge:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.tech-badge i {
    color: #00A896;
    font-size: 1.1rem;
}

.tech-badge span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-stats {
        justify-content: space-around;
        gap: 1rem;
    }
    
    .footer-stats .stat-number {
        font-size: 1.5rem;
    }
    
    .footer-social {
        text-align: center;
        margin-top: 2rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-legal {
        text-align: center;
    }
    
    .legal-links {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .tech-badges {
        gap: 1rem;
    }
    
    .tech-badge {
        padding: 0.6rem 1rem;
    }
    
    .footer-shape-1,
    .footer-shape-2,
    .footer-shape-3 {
        opacity: 0.3;
    }
}

@media (max-width: 576px) {
    .footer-stats {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-stats .stat-item {
        padding: 1rem;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 10px;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
    }
    
    .social-link i {
        font-size: 1rem;
    }
    
    .tech-badges {
        flex-direction: column;
        align-items: center;
    }
    
    .newsletter-signup {
        padding: 1rem;
    }
}