/* ========================================
   ESTILO CERCANA & CLARA — GALIA DIGITAL
   Sistema visual: cálido, claro, profesional
   ======================================== */

/* ==================== RESET Y BASE ==================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colores — Paleta neutral cálida */
    --bg: #FFFFFF;
    --surface: #F3F4F6;
    --text: #1F2937;
    --muted: #6B7280;
    --accent: #E6DED6;
    --accent-hover: #D9D3CC;
    --border: #E5E7EB;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.03);
    
    /* Tipografía */
    --font-base: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;
    
    /* Espaciado */
    --radius: 16px;
    --radius-sm: 12px;
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 40px;
    --spacing-xl: 64px;
    
    /* Transiciones */
    --transition: 0.2s ease;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-base);
    background-color: var(--bg);
    color: var(--text);
    line-height: var(--line-height-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* ==================== TIPOGRAFÍA ==================== */
h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.5em;
}

h1 {
    font-size: clamp(30px, 4.5vw, 54px);
}

h2 {
    font-size: clamp(24px, 3.5vw, 38px);
}

h3 {
    font-size: clamp(18px, 2.5vw, 24px);
}

p {
    font-size: clamp(15px, 1.5vw, 17px);
    color: var(--muted);
}

/* ==================== LAYOUT GENERAL ==================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding-inline: clamp(16px, 4vw, 40px);
}

.section {
    padding-block: clamp(48px, 8vw, 96px);
}

.section-header {
    text-align: center;
    margin-bottom: clamp(40px, 6vw, 64px);
}

.section-title {
    color: var(--text);
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: clamp(16px, 1.8vw, 19px);
    color: var(--muted);
}

/* ==================== BOTONES ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

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

.btn-primary:hover {
    background-color: #374151;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(31, 41, 55, 0.15);
}

.btn-secondary {
    background-color: var(--surface);
    color: var(--text);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    background-color: var(--text);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

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

.btn-sm {
    padding: 10px 20px;
    font-size: 14px;
}

.btn-block {
    width: 100%;
}

.btn:focus-visible {
    outline: 2px solid var(--text);
    outline-offset: 2px;
}

/* ==================== HEADER / NAVEGACIÓN ==================== */
.header {
    background-color: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: 20px;
}

/* Logo Header */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: all var(--transition);
}

.logo:hover {
    transform: translateY(-2px);
}

.logo-icon {
    width: 32px;
    height: 32px;
    color: var(--muted);
    flex-shrink: 0;
    transition: all var(--transition);
}

.logo:hover .logo-icon {
    color: var(--text);
    transform: scale(1.05);
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.2;
}

.logo-main {
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.5px;
}

.logo-tagline {
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: color var(--transition);
}

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

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

.menu-toggle span {
    width: 24px;
    height: 3px;
    background-color: var(--text);
    border-radius: 2px;
    transition: all var(--transition);
}

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background-color: var(--surface);
        flex-direction: column;
        padding: 24px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        transition: all var(--transition);
    }
    
    .nav.active {
        opacity: 1;
        pointer-events: all;
        transform: translateY(0);
    }
    
    .menu-toggle {
        display: flex;
    }
}

/* ==================== HERO ==================== */
.hero {
    background: var(--bg);
    padding-block: clamp(60px, 10vw, 100px);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 6vw, 80px);
    align-items: center;
}

.eyebrow {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.hero-title {
    margin-bottom: 20px;
    color: var(--text);
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--muted);
    margin-bottom: 32px;
    line-height: 1.5;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.hero-image {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 968px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-image {
        order: -1;
        max-height: 400px;
    }
}

/* ==================== SERVICIOS ==================== */
.services {
    background-color: var(--surface);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.service-card {
    background-color: var(--bg);
    padding: 32px 24px;
    border-radius: var(--radius);
    text-align: center;
    transition: all var(--transition);
    border: 1px solid var(--border);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.service-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.service-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.service-desc {
    font-size: 15px;
    color: var(--muted);
}

/* ==================== PRECIOS ==================== */
.pricing {
    background: linear-gradient(135deg, var(--bg) 0%, #fff 100%);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.pricing-category {
    background-color: var(--surface);
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.pricing-category-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text);
    text-align: center;
}

.pricing-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pricing-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.pricing-item:last-child {
    border-bottom: none;
}

.pricing-service {
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
}

.pricing-dots {
    border-bottom: 2px dotted var(--border);
    flex: 1;
}

.pricing-price {
    font-weight: 800;
    color: var(--text);
    font-size: 18px;
    white-space: nowrap;
}

.pricing-note {
    text-align: center;
    font-size: 14px;
    color: var(--muted);
    font-style: italic;
    margin-top: 32px;
}

/* ==================== RAZONES ==================== */
.reasons {
    background-color: var(--surface);
}

.reasons-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.reason-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 24px;
    background-color: var(--bg);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.reason-item:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-sm);
}

.reason-check {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background-color: var(--surface);
    color: var(--text);
    border-radius: 50%;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
}

.reason-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text);
}

.reason-desc {
    font-size: 15px;
    color: var(--muted);
}

/* ==================== OPINIONES ==================== */
.reviews {
    background: linear-gradient(135deg, var(--bg) 0%, #fff 100%);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.review-card {
    background-color: var(--surface);
    padding: 28px 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.review-stars {
    color: #f59e0b;
    font-size: 18px;
    margin-bottom: 16px;
}

.review-text {
    font-size: 15px;
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 16px;
}

.review-author {
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
}

/* ==================== GALERÍA ==================== */
.gallery {
    background-color: var(--surface);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-sm);
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    height: 500px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
    display: block;
    border-radius: var(--radius-sm);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* ==================== CONTACTO ==================== */
.contact {
    background: var(--surface);
    color: var(--text);
}

.contact .section-title {
    color: var(--text);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 6vw, 80px);
    align-items: start;
}

.contact-intro {
    font-size: 18px;
    color: var(--muted);
    margin-bottom: 32px;
}

.contact-ctas {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-info-card {
    background-color: var(--surface);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.contact-info-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 32px;
}

.contact-info-item:last-of-type {
    margin-bottom: 32px;
}

.contact-info-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.contact-info-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.contact-info-text {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.6;
}

.contact-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
}

.contact-link:hover {
    text-decoration: underline;
}

@media (max-width: 968px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info-card {
        padding: 32px 24px;
    }
}

/* ==================== FOOTER CTA (Pre-footer) ==================== */
.footer-cta {
    background: var(--surface);
    padding-block: clamp(48px, 8vw, 72px);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.footer-cta-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.footer-cta-title {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 800;
    color: var(--text);
    margin-bottom: 8px;
}

.footer-cta-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--muted);
}

.footer-cta-buttons {
    display: flex;
    gap: 16px;
    flex-shrink: 0;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 17px;
    font-weight: 700;
}

@media (max-width: 968px) {
    .footer-cta-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-cta-buttons {
        width: 100%;
        flex-direction: column;
    }
    
    .btn-lg {
        width: 100%;
    }
}

/* ==================== FOOTER ==================== */
.footer {
    background-color: var(--bg);
    color: var(--muted);
    padding-block: clamp(56px, 8vw, 80px);
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: clamp(40px, 6vw, 60px);
    margin-bottom: 56px;
    padding-bottom: 56px;
    border-bottom: 1px solid var(--border);
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-size: clamp(20px, 3vw, 26px);
    font-weight: 800;
    color: var(--text);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

/* Footer Brand */
.footer-brand {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 32px;
}

.footer-brand-icon {
    width: 40px;
    height: 40px;
    color: var(--muted);
    flex-shrink: 0;
}

.footer-brand-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-brand-name {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    line-height: 1.2;
}

.footer-brand-estilo {
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.8px;
}

.footer-brand-cercana {
    font-size: clamp(13px, 1.8vw, 15px);
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.footer-brand-tagline {
    font-size: 13px;
    color: var(--muted);
    margin: 0;
    font-style: italic;
}

/* Contact methods con cards */
.footer-contact-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--surface);
    border-radius: 12px;
    text-decoration: none;
    transition: all var(--transition);
    border: 1px solid var(--border);
}

.footer-contact-item:hover {
    background: var(--text);
    color: white;
    transform: translateX(2px);
    border-color: var(--text);
}

.footer-icon {
    width: 48px;
    height: 48px;
    background: var(--bg);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition);
    color: var(--text);
}

.footer-icon-whatsapp {
    background: rgba(37, 211, 102, 0.1);
    color: #25D366;
}

.footer-contact-item:hover .footer-icon {
    background: var(--text);
    color: white;
    transform: scale(1.02);
}

.footer-contact-item:hover .footer-icon-whatsapp {
    background: #25D366;
    color: white;
}

.footer-contact-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.footer-contact-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--muted);
    font-weight: 600;
}

.footer-contact-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

/* Social links */
.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social-link {
    width: 40px;
    height: 40px;
    background: var(--surface);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--muted);
    transition: all var(--transition);
    border: 1px solid var(--border);
}

.footer-social-link:hover {
    background: var(--text);
    color: white;
    transform: translateY(-1px);
    border-color: var(--text);
}

/* Subtitle con iconos */
.footer-subtitle {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
}

/* Address */
.footer-address {
    font-size: 15px;
    line-height: 1.7;
    color: var(--muted);
    margin-bottom: 12px;
}

.footer-map-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all var(--transition);
}

.footer-map-link:hover {
    gap: 10px;
    color: var(--text);
    text-decoration: underline;
}

/* Schedule mejorado */
.footer-schedule {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-schedule-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: var(--surface);
    border-radius: 6px;
    font-size: 14px;
}

.footer-schedule-day {
    color: var(--muted);
    font-weight: 500;
}

.footer-schedule-time {
    color: var(--text);
    font-weight: 700;
}

/* Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links li {
    margin: 0;
}

.footer-link {
    color: var(--muted);
    text-decoration: none;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    transition: all var(--transition);
    position: relative;
    padding-left: 20px;
}

.footer-link::before {
    content: '→';
    position: absolute;
    left: 0;
    opacity: 0;
    transition: all var(--transition);
}

.footer-link:hover {
    color: var(--text);
    padding-left: 24px;
}

.footer-link:hover::before {
    opacity: 1;
    left: 0;
}

/* Footer bottom mejorado */
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.footer-bottom-left {
    flex: 1;
}

.footer-bottom-right {
    flex-shrink: 0;
}

.footer-copyright {
    font-size: 14px;
    color: var(--muted);
    margin: 0;
}

/* Badge Galia Digital mejorado */
.footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    text-decoration: none;
    transition: all var(--transition);
}

.footer-badge:hover {
    background: var(--text);
    border-color: var(--text);
    transform: translateY(-1px);
}

.footer-badge-text {
    font-size: 12px;
    color: var(--muted);
    font-weight: 500;
}

.footer-badge-brand {
    font-size: 14px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.3px;
}

.footer-badge:hover .footer-badge-text {
    color: rgba(255, 255, 255, 0.7);
}

.footer-badge:hover .footer-badge-brand {
    color: white;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .footer-bottom-left,
    .footer-bottom-right {
        width: 100%;
    }
}

/* ==================== ANIMACIONES SCROLL ==================== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== RESPONSIVE FINAL ==================== */
@media (max-width: 640px) {
    .hero-ctas {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
    }
}
