* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f5f7fb;
    color: #1a1f2e;
    line-height: 1.5;
    overflow-x: hidden;
}

/* Cursor personalizado removido */
.logo-image {
    height: 44px;
    width: auto;
    object-fit: contain;
}

/* Variables */
:root {
    --primary: #1e4a6b;
    --primary-light: #2c6e9e;
    --primary-dark: #0f2c40;
    --accent: #d97706;
    --accent-light: #f59e0b;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Partículas negras - más visibles */
.particle {
    position: fixed;
    pointer-events: none;
    border-radius: 50%;
    animation: floatParticle linear infinite;
    opacity: 0;
    z-index: 0;
}
@keyframes floatParticle {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 0.7; }
    90% { opacity: 0.4; }
    100% { transform: translateY(-100px) scale(1); opacity: 0; }
}

/* Partículas negras tipo estrella */
.star-particle {
    position: fixed;
    pointer-events: none;
    background: transparent;
    animation: floatStar linear infinite;
    z-index: 0;
}
@keyframes floatStar {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    20% { opacity: 0.8; }
    80% { opacity: 0.5; }
    100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}

/* Header animado */
.header {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 100;
    animation: slideDown 0.8s cubic-bezier(0.16,1,0.3,1) both;
}
@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    flex-wrap: wrap;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: transform 0.3s ease;
}
.logo:hover { transform: scale(1.05); }

.logo-image {
    height: 150px;
    width: auto;
    object-fit: contain;
    border-radius: 12px;
    transition: all 0.3s ease;
}
.logo:hover .logo-image {
    box-shadow: 0 4px 12px rgba(30, 74, 107, 0.2);
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}
.nav-links a {
    text-decoration: none;
    color: var(--gray-600);
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--primary); }

/* Hero con gradiente animado */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 20% 80%, rgba(255,255,255,0.08) 0%, transparent 50%);
    animation: pulseOpacity 4s ease-in-out infinite;
}
@keyframes pulseOpacity {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    animation: fadeInUp 0.8s ease-out;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-tag {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
    padding: 6px 16px;
    border-radius: 40px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
    animation: blinkSoft 2s ease-in-out infinite;
}
@keyframes blinkSoft {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.hero h1 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.highlight-text {
    color: var(--accent-light);
    display: inline-block;
    animation: shakeText 0.5s ease-in-out infinite;
}

/* Animación de movimiento para "especializados" */
@keyframes shakeText {
    0%, 100% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(-2px) translateY(-1px); }
    50% { transform: translateX(2px) translateY(1px); }
    75% { transform: translateX(-1px) translateY(0px); }
}

.hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 550px;
    margin-bottom: 32px;
}

.hero-badge {
    display: inline-flex;
    gap: 12px;
    flex-wrap: wrap;
}
.badge {
    background: rgba(255,255,255,0.1);
    padding: 8px 20px;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s;
    animation: fadeInScale 0.5s ease-out backwards;
    animation-delay: calc(var(--i, 0) * 0.1s);
}
.badge:hover {
    background: var(--accent);
    transform: translateY(-2px) scale(1.05);
}
@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

/* Secciones con animación al hacer scroll */
.section {
    padding: 80px 0;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 2;
    background: transparent;
}
.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-alt {
    background: var(--gray-50);
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-label {
    display: inline-block;
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 12px;
    position: relative;
}
.section-label::before,
.section-label::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 1px;
    background: var(--accent);
    opacity: 0.5;
}
.section-label::before { left: -40px; }
.section-label::after { right: -40px; }

.section-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Servicios grid con animaciones */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}
.service-card {
    background: white;
    border-radius: 20px;
    padding: 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    transform: translateY(30px);
}
.service-card.visible-card {
    animation: cardReveal 0.6s ease forwards;
}
@keyframes cardReveal {
    to { opacity: 1; transform: translateY(0); }
}
.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}
.service-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 20px;
    transition: all 0.3s;
    animation: iconFloat 3s ease-in-out infinite;
}
@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}
.service-card:hover .service-icon {
    transform: rotate(5deg) scale(1.1);
}

/* Features grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.feature-item {
    text-align: center;
    padding: 28px 20px;
    background: white;
    border-radius: 20px;
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}
.feature-item.visible-card {
    animation: featureReveal 0.5s ease forwards;
}
@keyframes featureReveal {
    to { opacity: 1; transform: translateY(0); }
}
.feature-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}
.feature-icon {
    font-size: 2rem;
    margin-bottom: 16px;
    display: inline-block;
    animation: iconBounce 2s ease-in-out infinite;
}
@keyframes iconBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* Clean section */
.clean-section {
    background: linear-gradient(135deg, #e8f0fe 0%, #dce8f5 100%);
    border-radius: 28px;
    padding: 48px;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s;
    animation: shimmer 3s ease infinite;
    background-size: 200% 100%;
}
@keyframes shimmer {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 0%; }
    100% { background-position: 0% 0%; }
}
.clean-badge {
    background: var(--accent);
    color: white;
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: 600;
    transition: all 0.3s;
    animation: pulse 2s ease infinite;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
.clean-badge:hover {
    transform: scale(1.1);
    background: var(--accent-light);
}

/* Trámites tags */
.tramites-container {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-top: 20px;
}
.tramite-tag {
    background: white;
    padding: 10px 24px;
    border-radius: 40px;
    font-size: 0.85rem;
    color: var(--primary-dark);
    border: 1px solid var(--gray-200);
    transition: all 0.3s;
    opacity: 0;
    transform: scale(0.8);
}
.tramite-tag.visible-tag {
    animation: tagPop 0.4s ease forwards;
}
@keyframes tagPop {
    to { opacity: 1; transform: scale(1); }
}
.tramite-tag:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-3px) scale(1.05);
    border-color: var(--accent);
}

/* Footer */
.footer {
    background: var(--primary-dark);
    color: #cbd5e1;
    padding: 48px 0 24px;
    margin-top: 40px;
    position: relative;
    z-index: 2;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}
.footer-links a {
    transition: all 0.3s;
    display: inline-block;
}
.footer-links a:hover {
    color: var(--accent-light);
    transform: translateX(5px);
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    text-align: center;
}

/* Responsive */
@media (max-width: 900px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .clean-section { flex-direction: column; text-align: center; }
}
@media (max-width: 600px) {
    .services-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .header-inner { flex-direction: column; }
    .hero-badge { justify-content: center; }
    .hero { text-align: center; }
    .hero-content { margin: 0 auto; }
}