:root {
    --color-bg: #f5f5f7;
    --color-bg-secondary: #eaeaec;
    --color-bg-card: #ffffff;
    --color-bg-elevated: #fafafa;
    --color-text: #1a1a2e;
    --color-text-muted: #5a5a6a;
    --color-accent: #0066dd;
    --color-accent-hover: #0052b3;
    --color-accent-glow: rgba(0, 102, 221, 0.15);
    --color-border: #d0d0d8;
    --color-whatsapp: #25d366;
    --color-whatsapp-hover: #1da851;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 50%;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--color-text);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
}

.accent {
    color: var(--color-accent);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--color-text);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
}

.accent {
    color: var(--color-accent);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--color-accent);
    color: white;
    box-shadow: 0 4px 15px var(--color-accent-glow);
}

.btn-primary:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--color-accent-glow);
}

.btn-outline {
    background: transparent;
    border-color: var(--color-text);
    color: var(--color-text);
}

.btn-outline:hover {
    background: var(--color-text);
    color: var(--color-bg);
}

.btn-whatsapp {
    background: var(--color-whatsapp);
    color: white;
}

.btn-whatsapp:hover {
    background: var(--color-whatsapp-hover);
    transform: translateY(-2px);
}

.btn-large {
    padding: 18px 36px;
    font-size: 1.1rem;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].animated {
    opacity: 1;
    transform: translateY(0);
}

/* ========== HERO (shared across all pages) ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: 
        linear-gradient(135deg, rgba(0, 123, 255, 0.1) 0%, transparent 50%),
        linear-gradient(225deg, rgba(0, 123, 255, 0.05) 0%, transparent 50%),
        var(--color-bg);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0,123,255,0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(0,123,255,0.05) 0%, transparent 40%);
    animation: rotate 30s linear infinite;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 0%, var(--color-bg) 70%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--color-accent);
    margin-bottom: 20px;
    font-weight: 600;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Hero variants */
.hero-tipos {
    background: 
        linear-gradient(135deg, rgba(0,123,255,0.15) 0%, transparent 50%),
        linear-gradient(225deg, rgba(0,123,255,0.1) 0%, transparent 50%),
        var(--color-bg);
}

.hero-tipos .hero-title .accent {
    display: block;
}

/* ========== NAVBAR ========== */
.nav-close-item {
    display: none;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--transition-normal);
    background: transparent;
}

/* ========== LOGO BANNER ========== */
.logo-banner {
    padding: 120px 0 40px;
    background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-bg-secondary) 100%);
    text-align: center;
}

.banner-logo {
    max-width: 350px;
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0, 102, 221, 0.15);
    transition: transform var(--transition-normal);
}

.banner-logo:hover {
    transform: scale(1.02);
}

.hero-tipos + .logo-banner {
    padding: 100px 0 40px;
}

.navbar.scrolled {
    background: rgba(245, 245, 247, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 12px 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: -0.5px;
}

.nav-logo-img {
    width: 45px;
    height: 45px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.logo-text {
    display: none;
}

@media (min-width: 480px) {
    .logo-text {
        display: inline;
    }
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width var(--transition-normal);
}

.nav-link:hover {
    color: var(--color-text);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--color-text);
    transition: all var(--transition-normal);
}

/* ========== FOOTER ========== */
.footer {
    background: var(--color-bg);
    padding: 60px 0 20px;
    border-top: 1px solid var(--color-border);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.footer-brand p {
    color: var(--color-text-muted);
}

.footer-links h4,
.footer-social h4 {
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--color-text);
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-accent);
}

.social-icons {
    display: flex;
    gap: 16px;
}

.social-icons a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-card);
    border-radius: var(--radius-md);
    color: var(--color-text-muted);
    transition: all var(--transition-normal);
}

.social-icons a:hover {
    background: var(--color-accent);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* ========== LIGHTBOX ========== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 10px;
    transition: transform var(--transition-fast);
}

.lightbox-close:hover {
    transform: scale(1.1);
}

/* ========== LANGUAGE TOGGLE ========== */
.lang-toggle {
    display: flex;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
}

.lang-toggle span {
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-muted);
    transition: all var(--transition-fast);
}

.lang-toggle .lang-es {
    background: var(--color-bg-elevated);
}

.lang-toggle .lang-en {
    background: var(--color-accent);
    color: white;
}

.lang-toggle.active .lang-es {
    background: var(--color-accent);
    color: white;
}

.lang-toggle.active .lang-en {
    background: var(--color-bg-elevated);
    color: var(--color-text-muted);
}

/* ========== WHATSAPP FLOAT ========== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--color-whatsapp);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    transition: all var(--transition-normal);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background: var(--color-whatsapp-hover);
}

/* ========== WEATHER WIDGET ========== */
.weather-widget {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1000;
    display: none;
}

.weather-widget.show {
    display: block;
}

.weather-widget-collapsed {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    animation: pulse 2s infinite;
}

.weather-widget-collapsed:hover {
    transform: scale(1.1);
    background: var(--color-bg-elevated);
}

.weather-widget-collapsed svg {
    width: 20px;
    height: 20px;
    color: var(--color-accent);
}

.weather-widget-collapsed-text {
    font-size: 0.85rem;
    color: var(--color-text);
    font-weight: 500;
}

.weather-widget-collapsed-arrow {
    display: none;
}

.weather-widget-expanded {
    position: absolute;
    bottom: 60px;
    left: 5px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    box-shadow: var(--shadow-md);
    max-width: calc(100vw - 60px);
    width: 200px;
    animation: slideIn 0.3s ease;
    display: none;
    right: auto;
}

.weather-widget.expanded .weather-widget-collapsed {
    display: none;
}

.weather-widget.expanded .weather-widget-expanded {
    display: block;
}

.weather-widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.weather-widget-title {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.weather-widget-close {
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color var(--transition-fast);
}

.weather-widget-close:hover {
    color: var(--color-text);
}

.weather-widget-temp {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 2px;
}

.weather-widget-temp span {
    font-size: 1rem;
}

.weather-widget-message {
    font-size: 0.85rem;
    color: var(--color-accent);
    margin-top: 6px;
    line-height: 1.4;
}

.weather-widget-loading {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.weather-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--color-border);
    border-top-color: var(--color-accent);
    border-radius: var(--radius-full);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

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

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--color-bg-secondary);
        flex-direction: column;
        justify-content: center;
        gap: 24px;
        padding: 40px;
        transition: right var(--transition-normal);
        box-shadow: var(--shadow-lg);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu.active ~ .weather-widget,
    .nav-menu.active ~ .whatsapp-float {
        display: none;
    }
    
    .nav-close-item {
        display: flex;
        justify-content: flex-end;
        margin-bottom: 20px;
    }
    
    .nav-close {
        background: none;
        border: none;
        color: var(--color-text);
        font-size: 2.5rem;
        line-height: 1;
        cursor: pointer;
        padding: 10px;
        transition: color var(--transition-fast);
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .comparison-container {
        height: 350px;
    }
    
    .about-features {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-box {
        padding: 40px 20px;
    }
    
    .whatsapp-float {
        right: 15px;
        bottom: 30px;
    }
    
    .weather-widget {
        left: 15px;
        bottom: 30px;
    }
    
    .weather-widget-expanded {
        position: fixed;
        bottom: 90px;
        left: 20px;
        width: 170px;
        max-width: calc(100vw - 40px);
        padding: 10px 12px;
    }
    
    .weather-widget-temp {
        font-size: 1.5rem;
    }
    
    .weather-widget-message {
        font-size: 0.8rem;
    }
}

/* ========== CTA SECTION ========== */
.cta-section {
    padding: 80px 0;
    background: var(--color-bg-secondary);
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.cta-content p {
    color: var(--color-text-muted);
    margin-bottom: 30px;
    font-size: 1.1rem;
}