/* ==========================================
   RESET Y VARIABLES
   ========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary: #06b6d4;
    --accent: #f59e0b;
    --accent-dark: #d97706;
    --dark: #0f172a;
    --dark-lighter: #1e293b;
    --dark-lightest: #334155;
    --light: #f8fafc;
    --light-gray: #e2e8f0;
    --white: #ffffff;
    --gradient-blue: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
    --gradient-warm: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --gradient-light: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    background: white;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ==========================================
   NAVEGACIÓN
   ========================================== */

nav {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: var(--transition);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

nav.scrolled {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    padding: 0.8rem 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.logo-img:hover {
    filter: drop-shadow(0 0 10px rgba(37, 99, 235, 0.3));
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--dark);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.cta-button {
    background: var(--gradient-blue);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: var(--transition);
}

/* ==========================================
   HERO SECTION
   ========================================== */

.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    padding-bottom: 4rem;
}

.hero::before {
    content: '';
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    top: -200px;
    right: -200px;
    animation: pulse 8s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -150px;
    left: -150px;
    animation: pulse 6s ease-in-out infinite reverse;
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1); 
        opacity: 0.5; 
    }
    50% { 
        transform: scale(1.2); 
        opacity: 0.8; 
    }
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 4rem;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -2px;
}

.gradient-text {
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 50%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.primary-btn {
    background: var(--gradient-blue);
    color: white;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    display: inline-block;
    border: none;
    cursor: pointer;
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(37, 99, 235, 0.5);
}

.secondary-btn {
    background: transparent;
    color: white;
    padding: 1.2rem 2.5rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
}

.secondary-btn:hover {
    background: white;
    color: var(--dark);
    border-color: white;
    transform: translateY(-3px);
}

.hero-image {
    position: relative;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px); 
    }
    50% { 
        transform: translateY(-20px); 
    }
}

.hero-image svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 102, 255, 0.3));
}

/* ==========================================
   SERVICES SECTION
   ========================================== */

.services {
    padding: 8rem 2rem;
    background: linear-gradient(to bottom, #ffffff 0%, #f8fafc 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-tag {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    display: inline-block;
}

.section-title {
    font-size: 3rem;
    color: var(--dark);
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.services-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    transition: var(--transition);
    border: 1px solid var(--light-gray);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-blue);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:nth-child(2)::before {
    background: var(--gradient-warm);
}

.service-card:nth-child(3)::before {
    background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
}

.service-card:nth-child(5)::before {
    background: var(--gradient-warm);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--gradient-blue);
    transform: scale(1.1);
}

.service-card:nth-child(2):hover .service-icon {
    background: var(--gradient-warm);
}

.service-card:nth-child(3):hover .service-icon {
    background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
}

.service-card:nth-child(5):hover .service-icon {
    background: var(--gradient-warm);
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 1rem;
    font-weight: 700;
}

.service-card p {
    color: #64748b;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.service-link {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.service-link:hover {
    gap: 1rem;
    color: var(--primary-dark);
}

/* ==========================================
   PROCESS SECTION
   ========================================== */

.process {
    padding: 8rem 2rem;
    background: white;
}

.process-container {
    max-width: 1400px;
    margin: 0 auto;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.step {
    text-align: center;
    position: relative;
}

.step::after {
    content: '→';
    position: absolute;
    right: -1.5rem;
    top: 40px;
    font-size: 2rem;
    color: var(--primary);
    opacity: 0.3;
}

.step:last-child::after {
    display: none;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--gradient-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
    transition: var(--transition);
}

.step:nth-child(2) .step-number {
    background: var(--gradient-warm);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.3);
}

.step:nth-child(3) .step-number {
    background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.3);
}

.step:hover .step-number {
    transform: scale(1.1) rotate(5deg);
}

.step h3 {
    font-size: 1.3rem;
    color: var(--dark);
    margin-bottom: 1rem;
    font-weight: 700;
}

.step p {
    color: #64748b;
    line-height: 1.6;
}

/* ==========================================
   GALLERY SECTION
   ========================================== */

.gallery {
    padding: 8rem 2rem;
    background: var(--dark);
    position: relative;
}

.gallery .section-tag {
    color: var(--secondary);
}

.gallery .section-title {
    color: white;
}

.gallery .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

/* Gallery Container */
.gallery-container {
    max-width: 1400px;
    margin: 4rem auto 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

/* Gallery Category */
.gallery-category {
    display: flex;
    flex-direction: column;
}

.category-title {
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Gallery Items */
.gallery-preview {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.gallery-preview .gallery-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    pointer-events: none;
}

.gallery-preview .gallery-item.active {
    opacity: 1;
    position: relative;
    pointer-events: auto;
}

.gallery-extra {
    margin-top: 1.5rem;
    opacity: 1;
    max-height: 1000px;
    transition: all 0.4s ease;
}

.gallery-extra.hidden {
    opacity: 0;
    max-height: 0;
    margin-top: 0;
    overflow: hidden;
}

/* Slideshow Dots */
.slideshow-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.slideshow-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slideshow-dots .dot.active {
    background: var(--primary);
    width: 30px;
    border-radius: 5px;
}

.slideshow-dots .dot:hover {
    background: rgba(255, 255, 255, 0.5);
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.85), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-text {
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

/* View More Button */
.view-more-btn {
    margin-top: 1.5rem;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-more-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.view-more-btn .hidden {
    display: none;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    max-width: 1400px;
    width: 90%;
    padding: 2rem;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-title {
    color: white;
    font-size: 1.8rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 2rem;
}

.modal-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10000;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-image-wrapper {
    width: 100%;
}

.modal-image-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.modal-image-container img {
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-nav {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.modal-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.desktop-nav {
    position: absolute;
}

.desktop-nav.modal-prev {
    left: 2rem;
}

.desktop-nav.modal-next {
    right: 2rem;
}

.modal-nav-mobile {
    display: none;
}

.modal-caption {
    text-align: center;
    margin-top: 2rem;
}

.modal-caption p {
    color: white;
    margin: 0.5rem 0;
}

.modal-caption p:first-child {
    font-size: 1.2rem;
    font-weight: 600;
}

.modal-caption p:last-child {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive */
@media (max-width: 1024px) {
    .gallery-container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .gallery-category {
        max-width: 600px;
        margin: 0 auto;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .gallery {
        padding: 5rem 1.5rem;
    }

    .gallery-container {
        gap: 3rem;
    }

    .category-title {
        font-size: 1.2rem;
    }

    /* Modal Mobile Adjustments */
    .modal {
        padding: 0.5rem;
    }

    .modal-content {
        padding: 1rem;
        width: 95%;
    }

    .modal-title {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .modal-close {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 2rem;
    }

    .modal-image-container {
        min-height: auto;
    }

    .modal-image-container img {
        max-height: 60vh;
    }

    /* Ocultar botones desktop en móvil */
    .desktop-nav {
        display: none;
    }

    /* Mostrar botones móvil */
    .modal-nav-mobile {
        display: flex;
        justify-content: center;
        gap: 3rem;
        margin-top: 1.5rem;
    }

    .mobile-nav {
        position: relative;
        width: 55px;
        height: 55px;
        font-size: 2.5rem;
        background: rgba(37, 99, 235, 0.3);
        border: 2px solid rgba(37, 99, 235, 0.6);
        backdrop-filter: none;
    }

    .mobile-nav:active {
        background: rgba(37, 99, 235, 0.5);
        transform: scale(0.95);
    }

    .modal-caption {
        margin-top: 1rem;
    }

    .modal-caption p:first-child {
        font-size: 1rem;
    }

    .modal-caption p:last-child {
        font-size: 0.9rem;
    }

    /* Swipe Hint para móviles */
    .swipe-hint {
        position: fixed;
        bottom: 8rem;
        left: 50%;
        transform: translateX(-50%);
        z-index: 10001;
        opacity: 1;
        transition: opacity 0.5s ease;
    }

    .swipe-hint-content {
        background: rgba(37, 99, 235, 0.9);
        padding: 1rem 2rem;
        border-radius: 50px;
        display: flex;
        align-items: center;
        gap: 1rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        animation: pulseHint 2s ease-in-out infinite;
    }

    @keyframes pulseHint {
        0%, 100% { transform: scale(1); }
        50% { transform: scale(1.05); }
    }

    .swipe-text {
        color: white;
        font-size: 0.9rem;
        font-weight: 600;
        white-space: nowrap;
    }

    .swipe-arrow-left,
    .swipe-arrow-right {
        color: white;
        font-size: 1.5rem;
        font-weight: bold;
        animation: swipeAnimation 1.5s ease-in-out infinite;
    }

    .swipe-arrow-left {
        animation-direction: normal;
    }

    .swipe-arrow-right {
        animation-direction: reverse;
    }

    @keyframes swipeAnimation {
        0%, 100% { transform: translateX(0); opacity: 1; }
        50% { transform: translateX(-10px); opacity: 0.5; }
    }
}

/* ==========================================
   CONTACT SECTION
   ========================================== */

.contact {
    padding: 8rem 2rem;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    top: -200px;
    right: -200px;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    position: relative;
    z-index: 1;
}

.contact-content .section-title {
    color: white;
    margin-bottom: 2rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 3rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateX(5px);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(6, 182, 212, 0.1));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.contact-value {
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
}

.contact-value:hover {
    color: var(--secondary);
}

.contact-form-wrapper {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 1rem 1.5rem;
    border: 2px solid var(--light-gray);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background: var(--gradient-blue);
    color: white;
    padding: 1.2rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.submit-btn .btn-arrow {
    transition: transform 0.3s ease;
}

.submit-btn:hover .btn-arrow {
    transform: translateX(5px);
}

/* ==========================================
   FOOTER
   ========================================== */

.footer {
    background: #0f172a;
    color: white;
    padding: 4rem 2rem 2rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-column h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 50%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.social-link svg {
    width: 20px;
    height: 20px;
    transition: var(--transition);
}

.social-link:hover {
    transform: translateY(-3px);
    color: white;
}

/* Facebook hover */
.social-link:nth-child(1):hover {
    background: #1877f2;
    border-color: #1877f2;
}

/* Instagram hover */
.social-link:nth-child(2):hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: #e6683c;
}

/* WhatsApp hover */
.social-link:nth-child(3):hover {
    background: #25d366;
    border-color: #25d366;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links li {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
    cursor: pointer;
}

.footer-links li:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    max-width: 1400px;
    margin: 2rem auto 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.5);
    transition: var(--transition);
}

.footer-bottom-links a:hover {
    color: white;
}

/* ==========================================
   WHATSAPP BUTTON
   ========================================== */

.whatsapp-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    z-index: 998;
    text-decoration: none;
    overflow: hidden;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
    width: 180px;
    border-radius: 30px;
}

.whatsapp-btn svg {
    width: 32px;
    height: 32px;
    transition: var(--transition);
}

.whatsapp-text {
    position: absolute;
    right: 20px;
    font-weight: 600;
    font-size: 0.95rem;
    opacity: 0;
    white-space: nowrap;
    transition: var(--transition);
}

.whatsapp-btn:hover .whatsapp-text {
    opacity: 1;
}

.whatsapp-btn:hover svg {
    margin-left: -80px;
}

/* Animación de pulso para el botón de WhatsApp */
@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.7), 0 0 0 10px rgba(37, 211, 102, 0.1);
    }
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
}

.whatsapp-btn {
    animation: whatsapp-pulse 2s infinite;
}

.whatsapp-btn:hover {
    animation: none;
}

/* ==========================================
   SCROLL TO TOP BUTTON
   ========================================== */

.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 6rem;
    width: 50px;
    height: 50px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.4);
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .step::after {
        display: none;
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-image {
        order: -1;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .primary-btn,
    .secondary-btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons a {
        width: 100%;
        text-align: center;
    }
    
    .service-card {
        padding: 2rem;
    }
    
    .contact-form-wrapper {
        padding: 2rem;
    }
    
    .whatsapp-btn {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 55px;
        height: 55px;
    }
    
    .whatsapp-btn:hover {
        width: 55px;
        border-radius: 50%;
    }
    
    .whatsapp-text {
        display: none;
    }
    
    .scroll-top {
        bottom: 5.5rem;
        right: 1.5rem;
        width: 45px;
        height: 45px;
    }
}

/* ==========================================
   ANIMATIONS
   ========================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* ==========================================
   UTILITIES
   ========================================== */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

/* =======================================================
   ESTILOS CORREGIDOS Y MEJORADOS PARA SECCIÓN DE ALIADOS
   ======================================================= */

.allies {
    padding: 4rem 2rem;
    background: #f8fafc;
}

.allies .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.allies .service-card {
    display: flex;
    flex-direction: column; /* Mantiene la dirección vertical */
    align-items: center;   /* Centra el botón horizontalmente */
    padding: 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.allies .service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* * LA CLAVE DE LA SOLUCIÓN:
 * 1. Contenedor con altura fija para el logo.
 * 2. Centrado vertical y horizontal del logo dentro de ese espacio.
 */
.ally-logo-container {
    height: 100px; /* ¡IMPORTANTE! Define una altura fija para el espacio del logo */
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem; /* Espacio entre el logo y el botón */
}

/* * El logo se adapta al contenedor sin deformarse.
 */
.ally-logo-container img {
    max-height: 100%;  /* El logo nunca será más alto que el contenedor */
    max-width: 100%;   /* El logo nunca será más ancho que el contenedor */
    object-fit: contain; /* Mantiene las proporciones del logo */
}

/* * LA OTRA CLAVE DE LA SOLUCIÓN:
 * 1. `margin-top: auto` empuja el botón hacia el final del espacio disponible.
 */
.allies .service-card .primary-btn {
    margin-top: auto; /* ¡ESTO ALINEA LOS BOTONES! */
    width: 100%;
    max-width: 200px;
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
    text-decoration: none;
    border-radius: 50px;
}