/* ==========================================================================
   MPC PINTURAS - MODERN DESIGN SYSTEM & STYLE SYSTEM
   ========================================================================== */

/* 1. Design Variables & Tokens */
:root {
    --primary: #0f2e59;
    --primary-hover: #071932;
    --primary-light: rgba(15, 46, 89, 0.04);
    --primary-tint: rgba(15, 46, 89, 0.1);
    
    --secondary: #64748b;
    --secondary-light: #94a3b8;
    
    --accent: #1e4ed8;
    --accent-hover: #1d4ed8;
    --accent-whatsapp: #25d366;
    --accent-whatsapp-hover: #20ba56;
    
    --text-main: #1e293b;
    --text-muted: #475569;
    --text-light: #94a3b8;
    
    --bg-light: #ffffff;
    --bg-accent: #f8fafc;
    --bg-footer: #0a1c35;
    
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-title: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    
    --shadow-soft: 0 4px 20px -2px rgba(15, 46, 89, 0.04), 0 2px 6px -1px rgba(15, 46, 89, 0.02);
    --shadow-medium: 0 10px 30px -5px rgba(15, 46, 89, 0.08), 0 4px 12px -2px rgba(15, 46, 89, 0.03);
    --shadow-premium: 0 20px 40px -10px rgba(15, 46, 89, 0.12), 0 10px 20px -5px rgba(15, 46, 89, 0.05);
    
    --radius-standard: 12px;
    --radius-card: 20px;
    --radius-pill: 50px;
    
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 2. Global Reset & Base Elements */
*, ::before, ::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

@media (min-width: 768px) {
    html {
        font-size: 17px;
    }
}

@media (min-width: 1200px) {
    html {
        font-size: 18px;
    }
}

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

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

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-accent);
}
::-webkit-scrollbar-thumb {
    background: var(--secondary-light);
    border-radius: var(--radius-pill);
    border: 2px solid var(--bg-accent);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Typography styles */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-title);
    color: var(--primary);
    font-weight: 700;
    line-height: 1.25;
}

/* 3. Reusable Layout Components */
.section-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

@media (max-width: 640px) {
    .section-container {
        padding: 0 16px;
    }
    .hero-section .section-container,
    .proyectos-section .section-container {
        padding: 0 10px;
    }
    .valores-grid,
    .servicios-grid {
        gap: 10px;
    }
}

.grid-two-cols {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

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

/* Badges */
.badge-accent {
    display: inline-block;
    background-color: var(--primary-light);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(15, 46, 89, 0.08);
    margin-bottom: 20px;
}

/* Section Header */
.section-header {
    margin-bottom: 56px;
}
.section-title {
    font-size: 2.25rem;
    margin-bottom: 16px;
}
.section-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.5;
}

@media (max-width: 640px) {
    .section-subtitle {
        font-size: 0.95rem;
    }
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary);
    color: var(--bg-light);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 14px 32px;
    border-radius: var(--radius-standard);
    box-shadow: 0 4px 14px rgba(15, 46, 89, 0.2);
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 46, 89, 0.3);
}
.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-light);
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 14px 32px;
    border-radius: var(--radius-standard);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    transition: var(--transition-smooth);
}
.btn-secondary:hover {
    border-color: var(--secondary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}
.btn-secondary:active {
    transform: translateY(0);
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #15af4c 0%, #25d366 100%);
    color: var(--bg-light);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 14px 32px;
    border-radius: var(--radius-standard);
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.25);
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.btn-whatsapp:hover {
    background: linear-gradient(135deg, #129a42 0%, #20ba56 100%);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}
.btn-whatsapp:active {
    transform: translateY(0) scale(1);
}

/* ==========================================================================
   4. Specific Component Styles
   ========================================================================== */

/* Main Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    transition: var(--transition-smooth);
    height: 76px;
    display: flex;
    align-items: center;
}
.main-header.scrolled {
    height: 68px;
    box-shadow: var(--shadow-soft);
    background-color: rgba(255, 255, 255, 0.95);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-link {
    display: flex;
    align-items: center;
}
.logo-image {
    height: 60px;
    width: auto;
    border-radius: 6px;
    transition: var(--transition-smooth);
}
.logo-link:hover .logo-image {
    transform: scale(1.05);
}
.main-header.scrolled .logo-image {
    height: 52px;
}

.desktop-nav {
    display: none;
    align-items: center;
    gap: 32px;
}
.nav-item {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}
.nav-item:hover {
    color: var(--primary);
}

.header-actions {
    display: none;
    align-items: center;
    gap: 20px;
}

.action-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--primary);
    font-size: 0.95rem;
}
.action-phone:hover {
    color: var(--accent);
}
.icon-phone {
    width: 18px;
    height: 18px;
}

.btn-whatsapp-header {
    background-color: var(--primary);
    color: var(--bg-light);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 10px 20px;
    border-radius: var(--radius-standard);
    transition: var(--transition-smooth);
}
.btn-whatsapp-header:hover {
    background-color: var(--primary-hover);
    transform: scale(1.03);
}

/* Mobile Hamburger */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 102;
}
.hamburger-bar {
    width: 24px;
    height: 2px;
    background-color: var(--primary);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

/* Hamburger active animation */
.mobile-menu-toggle.active .hamburger-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.mobile-menu-toggle.active .hamburger-bar:nth-child(2) {
    opacity: 0;
}
.mobile-menu-toggle.active .hamburger-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 380px;
    height: 100vh;
    background-color: var(--bg-light);
    z-index: 101;
    box-shadow: -10px 0 30px rgba(15, 46, 89, 0.15);
    transition: var(--transition-smooth);
    padding: 110px 40px 40px;
    display: flex;
    flex-direction: column;
}
.mobile-nav-overlay.active {
    right: 0;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: auto;
}
.mobile-nav-item {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary);
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 12px;
}

.mobile-nav-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.btn-phone-mobile {
    background-color: var(--bg-accent);
    color: var(--primary);
    text-align: center;
    padding: 14px;
    border-radius: var(--radius-standard);
    font-weight: 700;
    border: 1px solid var(--border-color);
}
.btn-whatsapp-mobile {
    background-color: var(--primary);
    color: var(--bg-light);
    text-align: center;
    padding: 14px;
    border-radius: var(--radius-standard);
    font-weight: 600;
}

/* Main Content Wrapper */
.main-content {
    margin-top: 76px; /* offset for fixed header */
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 80px 0;
    background: radial-gradient(100% 100% at 100% 0%, var(--primary-light) 0%, rgba(255, 255, 255, 0) 100%), var(--bg-light);
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -150px;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(30, 78, 216, 0.07) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
}

.hero-text-block {
    text-align: center;
    position: relative;
    z-index: 2;
}
.hero-title {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 24px;
    line-height: 1.12;
    letter-spacing: -0.02em;
}
.hero-title span {
    background: linear-gradient(135deg, var(--primary) 20%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    font-weight: 800;
}
.hero-description {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 28px;
    line-height: 1.55;
}

.hero-bullets {
    list-style: none;
    text-align: left;
    max-width: 540px;
    margin: 0 auto 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.hero-bullets li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.92rem;
    color: var(--text-main);
}
.bullet-icon {
    width: 18px;
    height: 18px;
    color: var(--primary);
    margin-top: 3px;
    flex-shrink: 0;
}

.hero-cta-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.icon-whatsapp {
    width: 18px;
    height: 18px;
    margin-right: 8px;
}

.hero-image-block {
    margin-top: 40px;
}

/* Before/After Slider Styling */
.slider-wrapper {
    background-color: var(--bg-light);
    border-radius: var(--radius-card);
    padding: 8px;
    overflow: hidden;
}
.shadow-premium {
    box-shadow: var(--shadow-premium);
}

.before-after-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 14px;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}

.before-after-slider img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.before-after-slider .image-after {
    z-index: 1;
}

.before-after-slider .clipped-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    clip-path: inset(0 calc(100% - var(--percentage, 50%)) 0 0);
    pointer-events: none;
}

.before-after-slider .image-before {
    z-index: 2;
}

/* Badges for Before/After */
.label-badge {
    position: absolute;
    bottom: 16px;
    z-index: 5;
    padding: 6px 14px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 6px;
    color: var(--bg-light);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    pointer-events: none;
}
.label-before {
    left: 16px;
    background-color: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.label-after {
    right: 16px;
    background-color: rgba(15, 46, 89, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Drag Bar */
.slider-bar {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: var(--bg-light);
    z-index: 10;
    left: var(--percentage, 50%);
    transform: translateX(-50%);
    cursor: ew-resize;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.35);
}

.slider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--primary);
    border: 4px solid var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(15, 46, 89, 0.4);
    cursor: ew-resize;
    pointer-events: none; /* Mouse captures on the slider-bar line */
    transition: transform var(--transition-fast);
    color: var(--bg-light);
}

.slider-bar:hover .slider-handle {
    transform: translate(-50%, -50%) scale(1.08);
}

.handle-arrow {
    width: 18px;
    height: 18px;
}

.slider-instruction {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 14px;
    font-weight: 500;
}

/* Values Section */
.valores-section {
    padding: 80px 0;
    background-color: var(--bg-accent);
    border-top: 1px solid var(--border-light);
}

.valores-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.valor-card {
    background-color: var(--bg-light);
    border-radius: var(--radius-card);
    padding: 20px 16px;
    border: 1px solid var(--border-light);
    box-shadow: 0 8px 30px rgba(15, 46, 89, 0.02);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 640px) {
    .valor-card {
        padding: 16px 12px;
    }
}
.valor-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
    border-color: rgba(15, 46, 89, 0.12);
}

.valor-icon-box {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-standard);
    background-color: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 12px;
    border: 1px solid rgba(15, 46, 89, 0.08);
    transition: all 0.3s ease;
}
.valor-card:hover .valor-icon-box {
    background-color: var(--primary);
    color: var(--bg-light);
    transform: scale(1.1) rotate(5deg);
}

.valor-card-title {
    font-size: 1rem;
    margin-bottom: 8px;
}
.valor-card-desc {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.6;
}

/* Projects Section (Gallery) */
.proyectos-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.gallery-tabs-control {
    display: flex;
    background-color: var(--bg-accent);
    padding: 6px;
    border-radius: var(--radius-standard);
    border: 1px solid var(--border-color);
    max-width: 440px;
    margin: 0 auto 40px;
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-fast);
}
.tab-btn.active {
    background-color: var(--primary);
    color: var(--bg-light);
    box-shadow: 0 4px 10px rgba(15, 46, 89, 0.15);
}

@media (max-width: 480px) {
    .gallery-tabs-control {
        padding: 4px;
        margin-bottom: 24px;
    }
    .tab-btn {
        padding: 8px 6px;
        font-size: 0.75rem;
    }
}

.gallery-panel {
    display: none;
    max-width: 1080px;
    margin: 0 auto;
}
.gallery-panel.active {
    display: block;
    animation: fadeIn var(--transition-smooth);
}

.panel-caption {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-top: 18px;
    max-width: 600px;
    margin: 18px auto 0;
    line-height: 1.5;
}

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

/* Services Section */
.servicios-section {
    padding: 80px 0;
    background-color: var(--bg-accent);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.servicio-card {
    background-color: var(--bg-light);
    border-radius: var(--radius-card);
    padding: 20px 16px;
    border: 1px solid var(--border-light);
    box-shadow: 0 8px 30px rgba(15, 46, 89, 0.02);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 640px) {
    .servicio-card {
        padding: 16px 12px;
    }
}
.servicio-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
    border-color: rgba(15, 46, 89, 0.12);
}

.servicio-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-standard);
    background-color: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border: 1px solid rgba(15, 46, 89, 0.08);
    transition: all 0.3s ease;
}
.servicio-card:hover .servicio-icon {
    background-color: var(--primary);
    color: var(--bg-light);
    transform: scale(1.1) rotate(5deg);
}
.servicio-icon svg {
    width: 20px;
    height: 20px;
}

.servicio-title {
    font-size: 1rem;
    margin-bottom: 8px;
}
.servicio-desc {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.6;
}

/* Method Section */
.metodo-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.metodo-steps-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.step-card {
    position: relative;
    background-color: var(--bg-accent);
    border-radius: var(--radius-card);
    padding: 36px 32px;
    border: 1px solid var(--border-light);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.step-card:hover {
    background-color: var(--bg-light);
    border-color: rgba(15, 46, 89, 0.08);
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
}

.step-number {
    font-family: var(--font-title);
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, rgba(30, 78, 216, 0.3) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 16px;
}

.step-title {
    font-size: 1.2rem;
    margin-bottom: 12px;
}
.step-desc {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.6;
}

/* Testimonials Section */
.testimonios-section {
    padding: 80px 0;
    background-color: var(--primary-light);
    border-top: 1px solid rgba(15, 46, 89, 0.06);
    border-bottom: 1px solid rgba(15, 46, 89, 0.06);
}

.testimonios-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.testimonio-card {
    background-color: var(--bg-light);
    border-radius: var(--radius-card);
    padding: 40px 32px;
    border: 1px solid rgba(15, 46, 89, 0.06);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonio-text {
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 28px;
}

.testimonio-meta .stars {
    display: block;
    color: var(--primary);
    font-size: 0.95rem;
    margin-bottom: 8px;
}
.client-name {
    font-size: 1rem;
    font-weight: 700;
}
.client-location {
    color: var(--text-light);
    font-size: 0.78rem;
    margin-top: 2px;
}

/* Contact Section */
.contacto-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.contacto-info-block {
    text-align: center;
}
.contacto-title {
    font-size: 2.25rem;
    margin-bottom: 16px;
}
.contacto-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 40px;
}

.contacto-channels {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
    max-width: 480px;
    margin: 0 auto;
}

.channel-card {
    background-color: var(--bg-accent);
    border-radius: var(--radius-card);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid var(--border-light);
}
.channel-card:not(.no-hover):hover {
    background-color: var(--bg-light);
    border-color: var(--secondary-light);
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
}

.channel-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-standard);
    background-color: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.channel-icon.accent-green {
    background-color: rgba(37, 211, 102, 0.08);
    color: var(--accent-whatsapp);
}
.channel-icon svg {
    width: 22px;
    height: 22px;
}

.channel-content {
    display: flex;
    flex-direction: column;
}
.channel-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}
.channel-detail {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary);
    word-break: break-all;
}

@media (max-width: 480px) {
    .channel-detail {
        font-size: 0.9rem;
    }
}

/* Contact Form Wrapper */
.contacto-form-wrapper {
    position: relative;
    background-color: var(--bg-light);
    border-radius: var(--radius-card);
    padding: 30px 24px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-medium);
    margin-top: 48px;
}

.contacto-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}
.form-group label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.form-control {
    width: 100%;
    background-color: var(--bg-accent);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    font-family: var(--font-sans);
    font-size: 0.88rem;
    color: var(--text-main);
    transition: var(--transition-fast);
    outline: none;
}
.form-control:focus {
    background-color: var(--bg-light);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 46, 89, 0.12);
}

select.form-control {
    cursor: pointer;
}
textarea.form-control {
    resize: vertical;
}

.btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: var(--primary);
    color: var(--bg-light);
    font-weight: 700;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(15, 46, 89, 0.15);
    transition: var(--transition-smooth);
    margin-top: 8px;
}
.btn-submit:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(15, 46, 89, 0.25);
}
.btn-submit:active {
    transform: translateY(0);
}
.btn-submit-icon {
    width: 16px;
    height: 16px;
}

/* Loading animation for submit */
.animate-spin {
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success Overlay */
.form-success-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-light);
    border-radius: var(--radius-card);
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    box-sizing: border-box;
    transition: opacity var(--transition-smooth);
}
.form-success-overlay.hidden {
    display: none;
    opacity: 0;
}

.success-content {
    text-align: center;
    max-width: 380px;
    animation: fadeIn var(--transition-smooth);
}

.success-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(37, 211, 102, 0.1);
    color: var(--accent-whatsapp);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}
.success-icon-box svg {
    width: 32px;
    height: 32px;
}

.success-title {
    font-size: 1.45rem;
    margin-bottom: 12px;
}
.success-desc {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 28px;
}

.btn-reset-form {
    background: transparent;
    border: none;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: underline;
    cursor: pointer;
}
.btn-reset-form:hover {
    color: var(--accent);
}

/* Footer Section */
.main-footer {
    background-color: var(--bg-footer);
    color: rgba(255, 255, 255, 0.7);
    padding: 64px 0 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-top-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.footer-logo {
    height: 58px;
    width: auto;
    align-self: flex-start;
    background-color: var(--bg-light);
    padding: 4px;
    border-radius: 6px;
    transition: var(--transition-smooth);
}
.footer-logo:hover {
    transform: scale(1.05);
}
.footer-tagline {
    font-size: 0.88rem;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-title {
    color: var(--bg-light);
    font-size: 1.1rem;
    margin-bottom: 8px;
}
.footer-links a {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.7);
}
.footer-links a:hover {
    color: var(--bg-light);
    transform: translateX(3px);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-contact-link {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.7);
}
.footer-contact-link:hover {
    color: var(--bg-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    text-align: center;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   5. Media Queries & Responsive Grid Rules
   ========================================================================== */

@media (min-width: 640px) {
    .grid-two-cols {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
    
    .hero-text-block {
        text-align: left;
    }
    .hero-title {
        font-size: 3.25rem;
    }
    .hero-bullets {
        margin: 0 0 40px;
    }
    .hero-cta-group {
        flex-direction: row;
    }
    .hero-image-block {
        margin-top: 0;
    }
    
    .valores-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .valor-card {
        padding: 36px 28px;
    }
    
    .valor-icon-box {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
        margin-bottom: 24px;
    }
    
    .valor-card-title {
        font-size: 1.25rem;
        margin-bottom: 12px;
    }
    
    .valor-card-desc {
        line-height: 1.6;
    }
    
    .servicios-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .servicio-card {
        padding: 40px 32px;
    }
    
    .servicio-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 28px;
    }
    .servicio-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .servicio-title {
        font-size: 1.3rem;
        margin-bottom: 14px;
    }
    .servicio-desc {
        line-height: 1.6;
    }
    
    .contacto-info-block {
        text-align: left;
    }
    .contacto-channels {
        margin: 0;
    }
    .contacto-form-wrapper {
        margin-top: 0;
        padding: 40px 32px;
    }
}

@media (min-width: 768px) {
    .desktop-nav {
        display: flex;
    }
    .header-actions {
        display: flex;
    }
    .mobile-menu-toggle {
        display: none;
    }
    
    .metodo-steps-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonios-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .valores-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .servicios-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .metodo-steps-container {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .testimonios-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-top-grid {
        grid-template-columns: 2fr 1fr 1.5fr;
        gap: 80px;
    }
}
