/* ===== Variables ===== */
:root {
    --primary-color: #00B8D4;
    --secondary-color: #00838F;
    --accent-color: #00E5FF;
    --text-dark: #1A1A1A;
    --text-gray: #6B7280;
    --text-light: #9CA3AF;
    --bg-light: #F9FAFB;
    --white: #FFFFFF;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--white);
}

html {
    scroll-behavior: smooth;
    overflow-y: scroll;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100vw;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
}

.navbar .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    width: 100%;
    gap: 2rem;
}

.logo {
    flex: 0 0 auto;
}

.logo img {
    height: 45px;
    width: auto;
}

.cta-button-small {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
    flex-shrink: 0;
    white-space: nowrap;
}

.cta-button-small:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-image: 
        linear-gradient(135deg, rgba(0, 184, 212, 0.9) 0%, rgba(0, 131, 143, 0.95) 100%),
        url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(0, 229, 255, 0.2) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(0, 184, 212, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    text-align: center;
    color: var(--white);
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

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

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-title .highlight {
    background: linear-gradient(120deg, #00E5FF 0%, #FFFFFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.typed-text {
    background: linear-gradient(120deg, #00E5FF 0%, #FFFFFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    display: inline;
}

.cursor {
    color: #00E5FF;
    animation: blink 0.7s infinite;
    font-weight: 400;
    margin-left: 3px;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-subtitle {
    font-size: 1.35rem;
    font-weight: 300;
    max-width: 700px;
    margin: 0 auto 3rem;
    opacity: 0.95;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.cta-button {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Poppins', sans-serif;
}

.cta-button.primary {
    background: var(--white);
    color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.cta-button.primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.cta-button.secondary {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    margin-bottom: 3rem;
}

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

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 300;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 2px;
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        top: 8px;
    }
    100% {
        opacity: 0;
        top: 20px;
    }
}

/* ===== Services Section ===== */
.services {
    padding: 6rem 0;
    background: var(--bg-light);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    background: rgba(0, 184, 212, 0.1);
    color: var(--primary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-title .highlight {
    color: var(--primary-color);
}

.section-description {
    font-size: 1.2rem;
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

.services-grid {
    display: flex;
    gap: 2rem;
    overflow: hidden;
    position: relative;
    margin-bottom: 5rem;
    width: 100%;
    max-width: 100%;
}

.services-track {
    display: flex;
    gap: 2rem;
    animation: slideCards 50s linear infinite;
    width: max-content;
    will-change: transform;
}

.services-track:hover {
    animation-play-state: paused;
}

@keyframes slideCards {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 1rem));
    }
}

.service-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(0, 184, 212, 0.05) 100%);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    width: 320px;
    max-width: 320px;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(0, 229, 255, 0.1) 100%);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(0, 184, 212, 0.1), rgba(0, 229, 255, 0.1));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.service-description {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.service-features {
    list-style: none;
    padding: 0;
}

.service-features li {
    padding: 0.5rem 0;
    color: var(--text-gray);
    position: relative;
    padding-left: 1.5rem;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

/* ===== 360 Vision ===== */
.vision-360 {
    margin-top: 5rem;
    margin-bottom: 0;
    padding: 4rem 0 4rem 0;
    display: flex;
    justify-content: center;
    perspective: 1200px;
    background: var(--bg-light);
}

.vision-circle {
    position: relative;
    width: 450px;
    height: 450px;
    transform-style: preserve-3d;
}

.vision-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 0 60px rgba(0, 184, 212, 0.8),
        0 0 100px rgba(0, 184, 212, 0.5),
        0 0 140px rgba(0, 229, 255, 0.3),
        inset 0 0 40px rgba(255, 255, 255, 0.3);
    z-index: 10;
    animation: pulse 3s ease-in-out infinite;
    transform-style: preserve-3d;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 
            0 0 60px rgba(0, 184, 212, 0.8),
            0 0 100px rgba(0, 184, 212, 0.5),
            0 0 140px rgba(0, 229, 255, 0.3),
            inset 0 0 40px rgba(255, 255, 255, 0.3);
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        box-shadow: 
            0 0 80px rgba(0, 184, 212, 1),
            0 0 120px rgba(0, 184, 212, 0.7),
            0 0 160px rgba(0, 229, 255, 0.5),
            inset 0 0 50px rgba(255, 255, 255, 0.4);
        transform: translate(-50%, -50%) scale(1.05);
    }
}

.vision-center h3 {
    text-align: center;
    color: var(--white);
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.2;
}

.vision-orbit {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transform-style: preserve-3d;
}

/* Órbitas en diferentes planos 3D para efecto esférico */
.vision-orbit::before,
.vision-orbit::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 380px;
    height: 380px;
    margin-left: -190px;
    margin-top: -190px;
    border: 1px solid rgba(0, 184, 212, 0.15);
    border-radius: 50%;
    transform-style: preserve-3d;
    pointer-events: none;
}

.vision-orbit::before {
    transform: rotateX(60deg);
    animation: rotateOrbit1 30s linear infinite;
}

.vision-orbit::after {
    transform: rotateY(60deg);
    animation: rotateOrbit2 35s linear infinite;
}

@keyframes rotateOrbit1 {
    from { transform: rotateX(60deg) rotateZ(0deg); }
    to { transform: rotateX(60deg) rotateZ(360deg); }
}

@keyframes rotateOrbit2 {
    from { transform: rotateY(60deg) rotateZ(0deg); }
    to { transform: rotateY(60deg) rotateZ(360deg); }
}

.orbit-item {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 110px;
    height: 55px;
    margin-left: -55px;
    margin-top: -27.5px;
    background: var(--white);
    border: 2px solid var(--primary-color);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--primary-color);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.15),
        0 0 25px rgba(0, 184, 212, 0.4),
        inset 0 1px 2px rgba(255, 255, 255, 1);
    transform-style: preserve-3d;
    transition: all 0.3s ease;
    z-index: 5;
    backface-visibility: visible;
}

/* Cada servicio orbita en círculo de forma uniforme */
.orbit-item:nth-child(1) {
    animation: orbitUniform 20s linear infinite;
    animation-delay: 0s;
}

.orbit-item:nth-child(2) {
    animation: orbitUniform 20s linear infinite;
    animation-delay: -4s;
}

.orbit-item:nth-child(3) {
    animation: orbitUniform 20s linear infinite;
    animation-delay: -8s;
}

.orbit-item:nth-child(4) {
    animation: orbitUniform 20s linear infinite;
    animation-delay: -12s;
}

.orbit-item:nth-child(5) {
    animation: orbitUniform 20s linear infinite;
    animation-delay: -16s;
}

/* Órbita circular uniforme */
@keyframes orbitUniform {
    0% { 
        transform: rotate(0deg) translateX(200px) rotate(0deg);
    }
    100% { 
        transform: rotate(360deg) translateX(200px) rotate(-360deg);
    }
}

/* Órbitas circulares simples sin voltear el texto */
@keyframes orbitSimple1 {
    0% { 
        transform: rotate(0deg) translateX(190px) rotate(0deg);
        opacity: 1;
        z-index: 10;
    }
    50% { 
        transform: rotate(180deg) translateX(190px) rotate(-180deg);
        opacity: 0.4;
        z-index: 1;
    }
    100% { 
        transform: rotate(360deg) translateX(190px) rotate(-360deg);
        opacity: 1;
        z-index: 10;
    }
}

@keyframes orbitSimple2 {
    0% { 
        transform: rotate(72deg) translateX(190px) rotate(-72deg);
        opacity: 0.8;
        z-index: 5;
    }
    50% { 
        transform: rotate(252deg) translateX(190px) rotate(-252deg);
        opacity: 0.8;
        z-index: 5;
    }
    100% { 
        transform: rotate(432deg) translateX(190px) rotate(-432deg);
        opacity: 0.8;
        z-index: 5;
    }
}

@keyframes orbitSimple3 {
    0% { 
        transform: rotate(144deg) translateX(190px) rotate(-144deg);
        opacity: 0.5;
        z-index: 2;
    }
    50% { 
        transform: rotate(324deg) translateX(190px) rotate(-324deg);
        opacity: 1;
        z-index: 10;
    }
    100% { 
        transform: rotate(504deg) translateX(190px) rotate(-504deg);
        opacity: 0.5;
        z-index: 2;
    }
}

@keyframes orbitSimple4 {
    0% { 
        transform: rotate(216deg) translateX(190px) rotate(-216deg);
        opacity: 0.6;
        z-index: 3;
    }
    50% { 
        transform: rotate(396deg) translateX(190px) rotate(-396deg);
        opacity: 0.8;
        z-index: 5;
    }
    100% { 
        transform: rotate(576deg) translateX(190px) rotate(-576deg);
        opacity: 0.6;
        z-index: 3;
    }
}

@keyframes orbitSimple5 {
    0% { 
        transform: rotate(288deg) translateX(190px) rotate(-288deg);
        opacity: 0.7;
        z-index: 4;
    }
    50% { 
        transform: rotate(468deg) translateX(190px) rotate(-468deg);
        opacity: 0.6;
        z-index: 3;
    }
    100% { 
        transform: rotate(648deg) translateX(190px) rotate(-648deg);
        opacity: 0.7;
        z-index: 4;
    }
}

.orbit-item:hover {
    transform: scale(1.2) !important;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.2),
        0 0 40px rgba(0, 184, 212, 0.8);
    z-index: 20 !important;
    opacity: 1 !important;
}

@keyframes glow {
    0%, 100% {
        box-shadow: 
            0 4px 15px rgba(0, 0, 0, 0.1),
            0 0 25px rgba(0, 184, 212, 0.3);
    }
    50% {
        box-shadow: 
            0 4px 15px rgba(0, 0, 0, 0.1),
            0 0 35px rgba(0, 184, 212, 0.6);
    }
}

/* ===== Contact Form Section ===== */
.contact-form {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--primary-color) 40%, var(--text-dark) 100%);
    position: relative;
    margin-top: 0;
}

.form-section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.form-section-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.form-section-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
}

.form-wrapper {
    background: var(--white);
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    max-width: 700px;
    margin: 0 auto;
}

.form-content {
    padding: 2.5rem;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.9rem 1rem;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
    background: #F9FAFB;
    color: var(--text-dark);
}

.form-group input::placeholder,
.form-group select::placeholder,
.form-group textarea::placeholder {
    color: var(--text-gray);
    opacity: 0.7;
}

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

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--text-gray);
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.submit-button {
    width: 100%;
    margin-top: 0.5rem;
    position: relative;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.9rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.submit-button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 184, 212, 0.3);
}

.submit-button.loading .button-text {
    opacity: 0;
}

.button-loader {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 184, 212, 0.3);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.submit-button.loading .button-loader {
    display: block;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 12px;
    display: none;
    text-align: center;
    font-weight: 600;
}

.form-message.success {
    background: #D1FAE5;
    color: #065F46;
    display: block;
}

.form-message.error {
    background: #FEE2E2;
    color: #991B1B;
    display: block;
}

.form-image {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.image-overlay {
    text-align: center;
    color: var(--white);
    padding: 2rem;
}

.image-overlay h3 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.image-overlay p {
    font-size: 1.2rem;
    opacity: 0.95;
}

/* ===== Footer ===== */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 0.5rem;
    filter: brightness(0) invert(1);
}

.footer-logo p {
    opacity: 0.7;
    font-size: 0.9rem;
}

.footer-info {
    text-align: right;
}

.footer-info p {
    opacity: 0.7;
    font-size: 0.9rem;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .vision-circle {
        width: 350px;
        height: 350px;
    }

    .vision-center {
        width: 150px;
        height: 150px;
    }

    .vision-center h3 {
        font-size: 1.5rem;
    }

    .orbit-item {
        transform: rotate(var(--angle)) translateY(-130px) rotate(calc(-1 * var(--angle)));
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero-title {
        font-size: 2.5rem;
        line-height: 1.4;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    /* Ocultar stats en móvil para reducir scroll */
    .hero-stats {
        display: none;
    }

    .section-title {
        font-size: 2rem;
    }

    .services-grid {
        overflow-x: scroll;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .services-grid::-webkit-scrollbar {
        display: none;
    }

    .services-track {
        animation: slideCards 40s linear infinite;
    }

    .service-card {
        min-width: 320px;
    }

    .vision-360 {
        overflow: visible;
        padding: 2rem 0;
        perspective: 1000px;
    }

    .vision-circle {
        width: 100%;
        max-width: 350px;
        height: 350px;
    }

    .vision-center {
        width: 140px;
        height: 140px;
    }

    .vision-center h3 {
        font-size: 1.3rem;
    }

    .vision-orbit::before,
    .vision-orbit::after {
        width: 300px;
        height: 300px;
        margin-left: -150px;
        margin-top: -150px;
    }

    .orbit-item {
        width: 95px;
        height: 46px;
        margin-left: -47.5px;
        margin-top: -23px;
        font-size: 0.75rem;
        padding: 0 0.3rem;
        white-space: nowrap;
    }

    /* Órbita más pequeña para móvil */
    @keyframes orbitUniform {
        0% { 
            transform: rotate(0deg) translateX(120px) rotate(0deg);
        }
        100% { 
            transform: rotate(360deg) translateX(120px) rotate(-360deg);
        }
    }

    @keyframes orbit3D_1 {
        0% { 
            transform: rotateY(0deg) rotateX(60deg) translateZ(150px) rotateX(-60deg) rotateY(0deg);
            opacity: 1;
            z-index: 10;
        }
        50% { 
            transform: rotateY(180deg) rotateX(60deg) translateZ(150px) rotateX(-60deg) rotateY(-180deg);
            opacity: 0.4;
            z-index: 1;
        }
        100% { 
            transform: rotateY(360deg) rotateX(60deg) translateZ(150px) rotateX(-60deg) rotateY(-360deg);
            opacity: 1;
            z-index: 10;
        }
    }

    @keyframes orbit3D_2 {
        0% { 
            transform: rotateY(72deg) rotateX(60deg) translateZ(150px) rotateX(-60deg) rotateY(-72deg);
            opacity: 0.8;
        }
        50% { 
            transform: rotateY(252deg) rotateX(60deg) translateZ(150px) rotateX(-60deg) rotateY(-252deg);
            opacity: 0.8;
        }
        100% { 
            transform: rotateY(432deg) rotateX(60deg) translateZ(150px) rotateX(-60deg) rotateY(-432deg);
            opacity: 0.8;
        }
    }

    @keyframes orbit3D_3 {
        0% { 
            transform: rotateY(144deg) rotateX(60deg) translateZ(150px) rotateX(-60deg) rotateY(-144deg);
            opacity: 0.5;
        }
        50% { 
            transform: rotateY(324deg) rotateX(60deg) translateZ(150px) rotateX(-60deg) rotateY(-324deg);
            opacity: 1;
        }
        100% { 
            transform: rotateY(504deg) translateX(150px) rotateY(-504deg);
            opacity: 0.4;
        }
    }

    @keyframes orbit3D_4 {
        0% { 
            transform: rotateY(216deg) translateX(150px) rotateY(-216deg);
            opacity: 0.5;
        }
        50% { 
            transform: rotateY(396deg) translateX(150px) rotateY(-396deg);
            opacity: 0.8;
        }
        100% { 
            transform: rotateY(576deg) translateX(150px) rotateY(-576deg);
            opacity: 0.5;
        }
    }

    @keyframes orbit3D_5 {
        0% { 
            transform: rotateY(288deg) translateX(150px) rotateY(-288deg);
            opacity: 0.6;
        }
        50% { 
            transform: rotateY(468deg) translateX(150px) rotateY(-468deg);
            opacity: 0.5;
        }
        100% { 
            transform: rotateY(648deg) translateX(150px) rotateY(-648deg);
            opacity: 0.6;
        }
    }

    .orbit-item:hover {
        transform: scale(1.15) !important;
        opacity: 1 !important;
    }

    .form-wrapper {
        grid-template-columns: 1fr;
    }

    .form-image {
        min-height: 300px;
        order: -1;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-info {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .cta-button {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .service-card {
        padding: 1.25rem;
    }

    .service-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 1rem;
    }

    .service-icon svg {
        width: 28px;
        height: 28px;
    }

    .service-title {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

    .service-description {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .service-features li {
        font-size: 0.85rem;
        padding: 0.35rem 0;
    }
}
/* ===== Variables ===== */
:root {
    --primary-color: #00B8D4;
    --secondary-color: #00838F;
    --accent-color: #00E5FF;
    --text-dark: #1A1A1A;
    --text-gray: #6B7280;
    --text-light: #9CA3AF;
    --bg-light: #F9FAFB;
    --white: #FFFFFF;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--white);
}

html {
    scroll-behavior: smooth;
    overflow-y: scroll;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100vw;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
}

.navbar .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    width: 100%;
    gap: 2rem;
}

.logo {
    flex: 0 0 auto;
}

.logo img {
    height: 45px;
    width: auto;
}

.cta-button-small {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
    flex-shrink: 0;
    white-space: nowrap;
}

.cta-button-small:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-image: 
        linear-gradient(135deg, rgba(0, 184, 212, 0.9) 0%, rgba(0, 131, 143, 0.95) 100%),
        url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(0, 229, 255, 0.2) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(0, 184, 212, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    text-align: center;
    color: var(--white);
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

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

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-title .highlight {
    background: linear-gradient(120deg, #00E5FF 0%, #FFFFFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.typed-text {
    background: linear-gradient(120deg, #00E5FF 0%, #FFFFFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    display: inline;
}

.cursor {
    color: #00E5FF;
    animation: blink 0.7s infinite;
    font-weight: 400;
    margin-left: 3px;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-subtitle {
    font-size: 1.35rem;
    font-weight: 300;
    max-width: 700px;
    margin: 0 auto 3rem;
    opacity: 0.95;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.cta-button {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Poppins', sans-serif;
}

.cta-button.primary {
    background: var(--white);
    color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.cta-button.primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.cta-button.secondary {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    margin-bottom: 3rem;
}

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

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 300;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 2px;
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        top: 8px;
    }
    100% {
        opacity: 0;
        top: 20px;
    }
}

/* ===== Services Section ===== */
.services {
    padding: 6rem 0;
    background: var(--bg-light);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    background: rgba(0, 184, 212, 0.1);
    color: var(--primary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-title .highlight {
    color: var(--primary-color);
}

.section-description {
    font-size: 1.2rem;
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

.services-grid {
    display: flex;
    gap: 2rem;
    overflow: hidden;
    position: relative;
    margin-bottom: 5rem;
    width: 100%;
    max-width: 100%;
}

.services-track {
    display: flex;
    gap: 2rem;
    animation: slideCards 50s linear infinite;
    width: max-content;
    will-change: transform;
}

.services-track:hover {
    animation-play-state: paused;
}

@keyframes slideCards {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 1rem));
    }
}

.service-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(0, 184, 212, 0.05) 100%);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    width: 320px;
    max-width: 320px;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(0, 229, 255, 0.1) 100%);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(0, 184, 212, 0.1), rgba(0, 229, 255, 0.1));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.service-description {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.service-features {
    list-style: none;
    padding: 0;
}

.service-features li {
    padding: 0.5rem 0;
    color: var(--text-gray);
    position: relative;
    padding-left: 1.5rem;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

/* ===== 360 Vision ===== */
.vision-360 {
    margin-top: 5rem;
    margin-bottom: 0;
    padding: 4rem 0 4rem 0;
    display: flex;
    justify-content: center;
    perspective: 1200px;
    background: var(--bg-light);
}

.vision-circle {
    position: relative;
    width: 450px;
    height: 450px;
    transform-style: preserve-3d;
}

.vision-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 0 60px rgba(0, 184, 212, 0.8),
        0 0 100px rgba(0, 184, 212, 0.5),
        0 0 140px rgba(0, 229, 255, 0.3),
        inset 0 0 40px rgba(255, 255, 255, 0.3);
    z-index: 10;
    animation: pulse 3s ease-in-out infinite;
    transform-style: preserve-3d;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 
            0 0 60px rgba(0, 184, 212, 0.8),
            0 0 100px rgba(0, 184, 212, 0.5),
            0 0 140px rgba(0, 229, 255, 0.3),
            inset 0 0 40px rgba(255, 255, 255, 0.3);
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        box-shadow: 
            0 0 80px rgba(0, 184, 212, 1),
            0 0 120px rgba(0, 184, 212, 0.7),
            0 0 160px rgba(0, 229, 255, 0.5),
            inset 0 0 50px rgba(255, 255, 255, 0.4);
        transform: translate(-50%, -50%) scale(1.05);
    }
}

.vision-center h3 {
    text-align: center;
    color: var(--white);
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.2;
}

.vision-orbit {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transform-style: preserve-3d;
}

/* Órbitas en diferentes planos 3D para efecto esférico */
.vision-orbit::before,
.vision-orbit::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 380px;
    height: 380px;
    margin-left: -190px;
    margin-top: -190px;
    border: 1px solid rgba(0, 184, 212, 0.15);
    border-radius: 50%;
    transform-style: preserve-3d;
    pointer-events: none;
}

.vision-orbit::before {
    transform: rotateX(60deg);
    animation: rotateOrbit1 30s linear infinite;
}

.vision-orbit::after {
    transform: rotateY(60deg);
    animation: rotateOrbit2 35s linear infinite;
}

@keyframes rotateOrbit1 {
    from { transform: rotateX(60deg) rotateZ(0deg); }
    to { transform: rotateX(60deg) rotateZ(360deg); }
}

@keyframes rotateOrbit2 {
    from { transform: rotateY(60deg) rotateZ(0deg); }
    to { transform: rotateY(60deg) rotateZ(360deg); }
}

.orbit-item {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 110px;
    height: 55px;
    margin-left: -55px;
    margin-top: -27.5px;
    background: var(--white);
    border: 2px solid var(--primary-color);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--primary-color);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.15),
        0 0 25px rgba(0, 184, 212, 0.4),
        inset 0 1px 2px rgba(255, 255, 255, 1);
    transform-style: preserve-3d;
    transition: all 0.3s ease;
    z-index: 5;
    backface-visibility: visible;
}

/* Cada servicio orbita en círculo de forma uniforme */
.orbit-item:nth-child(1) {
    animation: orbitUniform 20s linear infinite;
    animation-delay: 0s;
}

.orbit-item:nth-child(2) {
    animation: orbitUniform 20s linear infinite;
    animation-delay: -4s;
}

.orbit-item:nth-child(3) {
    animation: orbitUniform 20s linear infinite;
    animation-delay: -8s;
}

.orbit-item:nth-child(4) {
    animation: orbitUniform 20s linear infinite;
    animation-delay: -12s;
}

.orbit-item:nth-child(5) {
    animation: orbitUniform 20s linear infinite;
    animation-delay: -16s;
}

/* Órbita circular uniforme */
@keyframes orbitUniform {
    0% { 
        transform: rotate(0deg) translateX(200px) rotate(0deg);
    }
    100% { 
        transform: rotate(360deg) translateX(200px) rotate(-360deg);
    }
}

/* Órbitas circulares simples sin voltear el texto */
@keyframes orbitSimple1 {
    0% { 
        transform: rotate(0deg) translateX(190px) rotate(0deg);
        opacity: 1;
        z-index: 10;
    }
    50% { 
        transform: rotate(180deg) translateX(190px) rotate(-180deg);
        opacity: 0.4;
        z-index: 1;
    }
    100% { 
        transform: rotate(360deg) translateX(190px) rotate(-360deg);
        opacity: 1;
        z-index: 10;
    }
}

@keyframes orbitSimple2 {
    0% { 
        transform: rotate(72deg) translateX(190px) rotate(-72deg);
        opacity: 0.8;
        z-index: 5;
    }
    50% { 
        transform: rotate(252deg) translateX(190px) rotate(-252deg);
        opacity: 0.8;
        z-index: 5;
    }
    100% { 
        transform: rotate(432deg) translateX(190px) rotate(-432deg);
        opacity: 0.8;
        z-index: 5;
    }
}

@keyframes orbitSimple3 {
    0% { 
        transform: rotate(144deg) translateX(190px) rotate(-144deg);
        opacity: 0.5;
        z-index: 2;
    }
    50% { 
        transform: rotate(324deg) translateX(190px) rotate(-324deg);
        opacity: 1;
        z-index: 10;
    }
    100% { 
        transform: rotate(504deg) translateX(190px) rotate(-504deg);
        opacity: 0.5;
        z-index: 2;
    }
}

@keyframes orbitSimple4 {
    0% { 
        transform: rotate(216deg) translateX(190px) rotate(-216deg);
        opacity: 0.6;
        z-index: 3;
    }
    50% { 
        transform: rotate(396deg) translateX(190px) rotate(-396deg);
        opacity: 0.8;
        z-index: 5;
    }
    100% { 
        transform: rotate(576deg) translateX(190px) rotate(-576deg);
        opacity: 0.6;
        z-index: 3;
    }
}

@keyframes orbitSimple5 {
    0% { 
        transform: rotate(288deg) translateX(190px) rotate(-288deg);
        opacity: 0.7;
        z-index: 4;
    }
    50% { 
        transform: rotate(468deg) translateX(190px) rotate(-468deg);
        opacity: 0.6;
        z-index: 3;
    }
    100% { 
        transform: rotate(648deg) translateX(190px) rotate(-648deg);
        opacity: 0.7;
        z-index: 4;
    }
}

.orbit-item:hover {
    transform: scale(1.2) !important;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.2),
        0 0 40px rgba(0, 184, 212, 0.8);
    z-index: 20 !important;
    opacity: 1 !important;
}

@keyframes glow {
    0%, 100% {
        box-shadow: 
            0 4px 15px rgba(0, 0, 0, 0.1),
            0 0 25px rgba(0, 184, 212, 0.3);
    }
    50% {
        box-shadow: 
            0 4px 15px rgba(0, 0, 0, 0.1),
            0 0 35px rgba(0, 184, 212, 0.6);
    }
}



/* ===== Contact Form Section ===== */
.contact-form {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--primary-color) 40%, var(--text-dark) 100%);
    position: relative;
    margin-top: 0;
}

.form-section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.form-section-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.form-section-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
}

.form-wrapper {
    background: var(--white);
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    max-width: 700px;
    margin: 0 auto;
}

.form-content {
    padding: 2.5rem;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.9rem 1rem;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
    background: #F9FAFB;
    color: var(--text-dark);
}

.form-group input::placeholder,
.form-group select::placeholder,
.form-group textarea::placeholder {
    color: var(--text-gray);
    opacity: 0.7;
}

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

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--text-gray);
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.submit-button {
    width: 100%;
    margin-top: 0.5rem;
    position: relative;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.9rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.submit-button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 184, 212, 0.3);
}

.submit-button.loading .button-text {
    opacity: 0;
}

.button-loader {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 184, 212, 0.3);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.submit-button.loading .button-loader {
    display: block;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 12px;
    display: none;
    text-align: center;
    font-weight: 600;
}

.form-message.success {
    background: #D1FAE5;
    color: #065F46;
    display: block;
}

.form-message.error {
    background: #FEE2E2;
    color: #991B1B;
    display: block;
}

.form-image {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.image-overlay {
    text-align: center;
    color: var(--white);
    padding: 2rem;
}

.image-overlay h3 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.image-overlay p {
    font-size: 1.2rem;
    opacity: 0.95;
}

/* ===== Footer ===== */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 0.5rem;
    filter: brightness(0) invert(1);
}

.footer-logo p {
    opacity: 0.7;
    font-size: 0.9rem;
}

.footer-info {
    text-align: right;
}

.footer-info p {
    opacity: 0.7;
    font-size: 0.9rem;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .vision-circle {
        width: 350px;
        height: 350px;
    }

    .vision-center {
        width: 150px;
        height: 150px;
    }

    .vision-center h3 {
        font-size: 1.5rem;
    }

    .orbit-item {
        transform: rotate(var(--angle)) translateY(-130px) rotate(calc(-1 * var(--angle)));
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero-title {
        font-size: 2.5rem;
        line-height: 1.4;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    /* Ocultar stats en móvil para reducir scroll */
    .hero-stats {
        display: none;
    }

    .section-title {
        font-size: 2rem;
    }

    .services-grid {
        overflow-x: scroll;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .services-grid::-webkit-scrollbar {
        display: none;
    }

    .services-track {
        animation: slideCards 40s linear infinite;
    }

    .service-card {
        min-width: 320px;
    }

    .vision-360 {
        overflow: visible;
        padding: 2rem 0;
        perspective: 1000px;
    }

    .vision-circle {
        width: 100%;
        max-width: 350px;
        height: 350px;
    }

    .vision-center {
        width: 140px;
        height: 140px;
    }

    .vision-center h3 {
        font-size: 1.3rem;
    }

    .vision-orbit::before,
    .vision-orbit::after {
        width: 300px;
        height: 300px;
        margin-left: -150px;
        margin-top: -150px;
    }

    .orbit-item {
        width: 95px;
        height: 46px;
        margin-left: -47.5px;
        margin-top: -23px;
        font-size: 0.75rem;
        padding: 0 0.3rem;
        white-space: nowrap;
    }

    /* Órbita más pequeña para móvil */
    @keyframes orbitUniform {
        0% { 
            transform: rotate(0deg) translateX(120px) rotate(0deg);
        }
        100% { 
            transform: rotate(360deg) translateX(120px) rotate(-360deg);
        }
    }

    @keyframes orbit3D_1 {
        0% { 
            transform: rotateY(0deg) rotateX(60deg) translateZ(150px) rotateX(-60deg) rotateY(0deg);
            opacity: 1;
            z-index: 10;
        }
        50% { 
            transform: rotateY(180deg) rotateX(60deg) translateZ(150px) rotateX(-60deg) rotateY(-180deg);
            opacity: 0.4;
            z-index: 1;
        }
        100% { 
            transform: rotateY(360deg) rotateX(60deg) translateZ(150px) rotateX(-60deg) rotateY(-360deg);
            opacity: 1;
            z-index: 10;
        }
    }

    @keyframes orbit3D_2 {
        0% { 
            transform: rotateY(72deg) rotateX(60deg) translateZ(150px) rotateX(-60deg) rotateY(-72deg);
            opacity: 0.8;
        }
        50% { 
            transform: rotateY(252deg) rotateX(60deg) translateZ(150px) rotateX(-60deg) rotateY(-252deg);
            opacity: 0.8;
        }
        100% { 
            transform: rotateY(432deg) rotateX(60deg) translateZ(150px) rotateX(-60deg) rotateY(-432deg);
            opacity: 0.8;
        }
    }

    @keyframes orbit3D_3 {
        0% { 
            transform: rotateY(144deg) rotateX(60deg) translateZ(150px) rotateX(-60deg) rotateY(-144deg);
            opacity: 0.5;
        }
        50% { 
            transform: rotateY(324deg) rotateX(60deg) translateZ(150px) rotateX(-60deg) rotateY(-324deg);
            opacity: 1;
        }
        100% { 
            transform: rotateY(504deg) translateX(150px) rotateY(-504deg);
            opacity: 0.4;
        }
    }

    @keyframes orbit3D_4 {
        0% { 
            transform: rotateY(216deg) translateX(150px) rotateY(-216deg);
            opacity: 0.5;
        }
        50% { 
            transform: rotateY(396deg) translateX(150px) rotateY(-396deg);
            opacity: 0.8;
        }
        100% { 
            transform: rotateY(576deg) translateX(150px) rotateY(-576deg);
            opacity: 0.5;
        }
    }

    @keyframes orbit3D_5 {
        0% { 
            transform: rotateY(288deg) translateX(150px) rotateY(-288deg);
            opacity: 0.6;
        }
        50% { 
            transform: rotateY(468deg) translateX(150px) rotateY(-468deg);
            opacity: 0.5;
        }
        100% { 
            transform: rotateY(648deg) translateX(150px) rotateY(-648deg);
            opacity: 0.6;
        }
    }

    .orbit-item:hover {
        transform: scale(1.15) !important;
        opacity: 1 !important;
    }

    .form-wrapper {
        grid-template-columns: 1fr;
    }

    .form-image {
        min-height: 300px;
        order: -1;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-info {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .cta-button {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .service-card {
        padding: 1.25rem;
    }

    .service-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 1rem;
    }

    .service-icon svg {
        width: 28px;
        height: 28px;
    }

    .service-title {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

    .service-description {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .service-features li {
        font-size: 0.85rem;
        padding: 0.35rem 0;
    }
}
