/* ==========================================================================
   DESIGN SYSTEM - MONTAÑÉS CENTRO DE COPIADO
   ========================================================================== */

:root {
    /* Color Palette */
    --primary: #006699;             /* Classic Technical Blue */
    --primary-light: #008be3;       /* Bright technical blue */
    --primary-dark: #004d73;        /* Slate technical blue */
    --primary-rgb: 0, 102, 153;
    
    --bg-dark: #0a1128;             /* Rich navy slate background */
    --bg-dark-card: #121d3a;        /* Elevated card navy */
    --bg-dark-border: rgba(0, 102, 153, 0.25);
    
    --bg-light: #f4f8fc;            /* Ice paper white background */
    --bg-light-card: #ffffff;       /* Pure white card */
    --bg-light-border: rgba(0, 102, 153, 0.12);
    
    --accent-glow: rgba(0, 139, 227, 0.4);
    --accent-gold: #f7b500;         /* Warning/highlight gold */
    --accent-cyan: #00f5d4;         /* Cyber green precision accent */
    --accent-red: #ff3b30;          /* Warning red */
    
    --text-dark: #1b263b;           /* Contrast text for light theme */
    --text-dark-muted: #5c677d;     /* Muted text for light theme */
    --text-light: #f8f9fa;          /* Contrast text for dark theme */
    --text-light-muted: #a0aec0;    /* Muted text for dark theme */
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout & Transitions */
    --container-width: 1200px;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    /* Global Shadow Definitions */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 20px rgba(0, 102, 153, 0.06);
    --shadow-lg: 0 20px 40px rgba(0, 102, 153, 0.1);
    --shadow-glow: 0 0 25px rgba(0, 102, 153, 0.25);
}

/* ==========================================================================
   BASE & RESET STYLES
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
    position: relative;
}

/* Base Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-dark);
}

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

ul {
    list-style: none;
}

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

/* Blueprint Grid Background */
.blueprint-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -10;
    background-color: var(--bg-light);
    background-image: 
        linear-gradient(rgba(0, 102, 153, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 102, 153, 0.04) 1px, transparent 1px),
        linear-gradient(rgba(0, 102, 153, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 102, 153, 0.015) 1px, transparent 1px);
    background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
    background-position: center top;
}

/* Utilities */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.highlight {
    color: var(--primary);
    position: relative;
    z-index: 1;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: rgba(0, 102, 153, 0.08);
    z-index: -1;
    border-radius: 2px;
}

.hidden {
    display: none !important;
}

/* ==========================================================================
   BUTTONS & FORM CONTROLS
   ========================================================================== */

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

.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 102, 153, 0.25);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 153, 0.35);
}

.btn-primary:active {
    transform: translateY(0);
}

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

.btn-outline:hover {
    background-color: rgba(0, 102, 153, 0.05);
    transform: translateY(-2px);
}

.btn-outline:active {
    transform: translateY(0);
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.05rem;
}

.btn-nav {
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
}

/* Form Styling */
.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.col-6 {
    flex: 1 1 calc(50% - 10px);
    min-width: 200px;
}

.form-label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-dark);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 12px 16px;
    background-color: var(--bg-light);
    border: 2px solid var(--bg-light-border);
    border-radius: var(--radius-md);
    color: var(--text-dark);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-fast);
    outline: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 102, 153, 0.1);
    background-color: #ffffff;
}

.form-textarea {
    resize: vertical;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background-color: rgba(244, 248, 252, 0.7);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--bg-light-border);
    transition: var(--transition-normal);
}

.main-header.scrolled {
    padding: 12px 0;
    box-shadow: var(--shadow-md);
    background-color: rgba(255, 255, 255, 0.9);
}

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

/* Logo Design */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 52px;
    width: auto;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--primary);
    background-color: #ffffff;
    transition: var(--transition-normal);
}

.logo:hover .logo-img {
    transform: scale(1.05);
    box-shadow: 0 0 15px var(--accent-glow);
    border-color: var(--primary-light);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--primary);
    line-height: 1.1;
}

.brand-sub {
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--text-dark-muted);
}

/* Navigation Links */
.navbar {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    gap: 28px;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark-muted);
    padding: 8px 0;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

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

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mobile-nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-dark);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
    padding-top: 170px;
    padding-bottom: 80px;
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: center;
}

.badge-container {
    margin-bottom: 20px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(0, 102, 153, 0.08);
    border: 1px solid var(--bg-light-border);
    color: var(--primary-dark);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan);
    animation: pulse 1.8s infinite;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.15;
    margin-bottom: 24px;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-dark-muted);
    margin-bottom: 36px;
    max-width: 540px;
}

.hero-ctas {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.hero-features {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.hero-feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--text-dark);
}

.feature-icon {
    width: 18px;
    height: 18px;
    color: var(--primary);
}

/* Animated Vector Plotter Showcase */
.hero-visual {
    position: relative;
    width: 100%;
}

.plotter-frame {
    background-color: var(--bg-dark);
    border: 4px solid var(--primary-dark);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    overflow: hidden;
    position: relative;
}

.blueprint-canvas {
    background-color: #0b1530;
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    width: 100%;
    height: 320px;
    position: relative;
    overflow: hidden;
}

.canvas-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 139, 227, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 139, 227, 0.08) 1px, transparent 1px);
    background-size: 20px 20px;
}

.canvas-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
}

.blueprint-overlay-text {
    position: absolute;
    bottom: 12px;
    right: 12px;
    font-family: monospace;
    font-size: 0.65rem;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.3);
    z-index: 10;
}

/* SVG Blueprint Animation Elements */
.anim-draw-1 {
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    animation: drawLine 6s ease-in-out infinite;
}

.anim-draw-2 {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: drawLine 6s ease-in-out infinite;
    animation-delay: 1.5s;
}

.anim-rotate {
    transform-origin: 300px 100px;
    animation: rotating 15s linear infinite;
}

.anim-rotate-reverse {
    transform-origin: 280px 160px;
    animation: rotating-rev 10s linear infinite;
}

.plotter-head {
    animation: plotterPenMove 6s ease-in-out infinite;
}

.plotter-ping {
    animation: ping 1.2s ease-in-out infinite;
    transform-origin: center;
}

/* ==========================================================================
   TRAYECTORIA & ESTADISTICAS
   ========================================================================== */

.trayectoria-section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 60px;
}

.section-tag {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--primary);
    letter-spacing: 2px;
    display: inline-block;
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

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

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

.stat-card {
    background-color: var(--bg-light-card);
    border: 2px solid var(--bg-light-border);
    border-radius: var(--radius-lg);
    padding: 35px 30px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-normal);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

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

.stat-icon-wrapper {
    width: 60px;
    height: 60px;
    background-color: rgba(0, 102, 153, 0.06);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary);
    transition: var(--transition-normal);
}

.stat-card:hover .stat-icon-wrapper {
    background-color: var(--primary);
    color: #ffffff;
    transform: scale(1.1);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary-dark);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 12px;
}

.stat-desc {
    font-size: 0.85rem;
    color: var(--text-dark-muted);
}

/* ==========================================================================
   SERVICIOS
   ========================================================================== */

.servicios-section {
    padding: 100px 0;
    background-color: var(--bg-dark);
    color: var(--text-light);
    position: relative;
}

.servicios-section .blueprint-bg {
    display: none;
}

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

.servicios-section .section-subtitle {
    color: var(--text-light-muted);
}

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

.service-card {
    background-color: var(--bg-dark-card);
    border: 2px solid var(--bg-dark-border);
    border-radius: var(--radius-lg);
    padding: 40px;
    transition: var(--transition-normal);
    position: relative;
}

.service-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 102, 153, 0.2);
}

.service-badge {
    position: absolute;
    top: 25px;
    right: 25px;
    background-color: var(--primary);
    color: #ffffff;
    font-size: 0.7rem;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
}

.service-icon {
    width: 50px;
    height: 50px;
    color: var(--primary-light);
    margin-bottom: 24px;
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-title {
    color: var(--text-light);
    font-size: 1.4rem;
    margin-bottom: 16px;
}

.service-desc {
    color: var(--text-light-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
    line-height: 1.5;
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 20px;
}

.service-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-light-muted);
}

.service-list li svg {
    width: 16px;
    height: 16px;
    color: var(--accent-cyan);
    flex-shrink: 0;
    margin-top: 3px;
}

/* ==========================================================================
   CALCULADORA INTERACTIVA DE PRESUPUESTOS
   ========================================================================== */

.calculator-section {
    padding: 100px 0;
}

.calculator-wrapper {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 60px;
    align-items: center;
}

.calc-info {
    max-width: 500px;
}

.calc-tag {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--primary);
    letter-spacing: 2px;
    display: inline-block;
    margin-bottom: 12px;
}

.calc-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.calc-desc {
    color: var(--text-dark-muted);
    font-size: 1.05rem;
    margin-bottom: 40px;
}

.calc-steps {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.calc-step-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(0, 102, 153, 0.08);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.calc-step-item h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.calc-step-item p {
    font-size: 0.85rem;
    color: var(--text-dark-muted);
}

/* Calculator Card UI */
.calc-card {
    background-color: var(--bg-light-card);
    border: 2px solid var(--bg-light-border);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.calc-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background-color: var(--primary);
}

.calc-card-title {
    font-size: 1.5rem;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--bg-light-border);
    padding-bottom: 15px;
}

/* Toggle Buttons for Sizes */
.btn-group-toggle {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
}

.toggle-btn {
    background-color: var(--bg-light);
    border: 2px solid var(--bg-light-border);
    border-radius: var(--radius-md);
    padding: 10px 5px;
    color: var(--text-dark);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.toggle-btn small {
    font-weight: 400;
    font-size: 0.65rem;
    color: var(--text-dark-muted);
}

.toggle-btn.active {
    border-color: var(--primary);
    background-color: rgba(0, 102, 153, 0.06);
    color: var(--primary-dark);
}

.toggle-btn:hover {
    border-color: var(--primary-light);
}

/* Radio Buttons Group */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
}

.radio-label input {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--bg-light-border);
    border-radius: 50%;
    display: inline-block;
    position: relative;
    transition: var(--transition-fast);
}

.radio-label input:checked + .radio-custom {
    border-color: var(--primary);
}

.radio-custom::after {
    content: '';
    width: 10px;
    height: 10px;
    background-color: var(--primary);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: var(--transition-fast);
}

.radio-label input:checked + .radio-custom::after {
    transform: translate(-50%, -50%) scale(1);
}

/* Quantity Selector */
.quantity-selector {
    display: flex;
    align-items: center;
    border: 2px solid var(--bg-light-border);
    border-radius: var(--radius-md);
    width: 140px;
    overflow: hidden;
}

.qty-btn {
    width: 44px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
}

.qty-btn:hover {
    background-color: rgba(0, 102, 153, 0.05);
}

.qty-input {
    width: 52px;
    height: 40px;
    border: none;
    border-left: 1px solid var(--bg-light-border);
    border-right: 1px solid var(--bg-light-border);
    text-align: center;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    outline: none;
    background: transparent;
    color: var(--text-dark);
}

/* Cost Summary Visualizer */
.calc-summary {
    background-color: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-top: 30px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border: 1px solid var(--bg-light-border);
}

.summary-line {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-dark-muted);
}

.summary-total-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1.5px dashed var(--bg-light-border);
    padding-top: 15px;
    margin-top: 5px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.total-price {
    font-size: 1.8rem;
    color: var(--primary-dark);
    text-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.summary-disclaimer {
    font-size: 0.7rem;
    color: var(--text-dark-muted);
    line-height: 1.4;
}

.btn-calc {
    box-shadow: 0 4px 15px rgba(0, 150, 255, 0.15);
}

/* ==========================================================================
   CONTACTO & DIRECCION
   ========================================================================== */

.contacto-section {
    padding: 100px 0;
    position: relative;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 50px;
    align-items: stretch;
    margin-bottom: 60px;
}

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card-link {
    display: block;
}

.contact-info-card {
    background-color: var(--bg-light-card);
    border: 2px solid var(--bg-light-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 24px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.contact-card-link:hover .contact-info-card {
    transform: translateX(6px);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.highlighted-card {
    border-color: rgba(0, 102, 153, 0.35);
    background-image: linear-gradient(135deg, #ffffff, #f0f7fc);
}

.contact-card-link:hover .highlighted-card {
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(0, 102, 153, 0.12);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
}

.fixed-icon { background-color: #0b2265; }
.whatsapp-icon { background-color: #25d366; }
.email-icon { background-color: #d44638; }
.map-icon { background-color: #4f80e1; }
.clock-icon { background-color: #8b5cf6; }

.card-icon svg {
    width: 26px;
    height: 26px;
}

.card-content h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.card-value {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
}

.card-value-sm {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
}

.card-action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    margin-top: 4px;
}

.card-action svg {
    width: 14px;
    height: 14px;
}

.card-text-muted {
    font-size: 0.85rem;
    color: var(--text-dark-muted);
}

/* Contact Form container styling */
.contact-interactive-panel {
    width: 100%;
}

.form-container {
    background-color: var(--bg-light-card);
    border: 2px solid var(--bg-light-border);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.form-header-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.form-header-subtitle {
    color: var(--text-dark-muted);
    font-size: 0.85rem;
    margin-bottom: 30px;
    line-height: 1.5;
}

/* Custom Success Overlay */
.form-success-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-light-card);
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    border-radius: var(--radius-lg);
    animation: fadeIn var(--transition-normal);
}

.success-icon-wrapper {
    width: 80px;
    height: 80px;
    background-color: rgba(37, 211, 102, 0.1);
    color: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.success-icon-wrapper svg {
    width: 44px;
    height: 44px;
}

.form-success-overlay h3 {
    font-size: 1.6rem;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.form-success-overlay p {
    color: var(--text-dark-muted);
    font-size: 0.95rem;
    margin-bottom: 30px;
    max-width: 320px;
}

/* Map Section */
.map-section-wrapper {
    background-color: var(--bg-light-card);
    border: 2px solid var(--bg-light-border);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.map-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--bg-light-border);
    margin-bottom: 16px;
}

.map-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--primary);
    box-shadow: 0 0 10px var(--primary);
    animation: pulse 1.5s infinite;
}

.map-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
}

.map-iframe-container {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    height: 400px;
    border: 1px solid var(--bg-light-border);
}

.map-iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.main-footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding-top: 80px;
    border-top: 3px solid var(--primary);
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand .logo {
    margin-bottom: 24px;
}

.footer-logo .logo-icon {
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.footer-desc {
    color: var(--text-light-muted);
    font-size: 0.9rem;
    margin-bottom: 28px;
    max-width: 360px;
    line-height: 1.6;
}

.footer-badges {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.footer-badge-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-light);
    background-color: rgba(255,255,255,0.05);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255,255,255,0.05);
}

.footer-badge-item svg {
    width: 14px;
    height: 14px;
    color: var(--accent-cyan);
}

.footer-links h4, .footer-contact h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 8px;
}

.footer-links h4::after, .footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background-color: var(--primary-light);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-light-muted);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-links a:hover {
    color: var(--primary-light);
    transform: translateX(4px);
}

.footer-links a svg {
    width: 14px;
    height: 14px;
    transition: var(--transition-fast);
}

.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-contact li {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.footer-contact li svg {
    width: 20px;
    height: 20px;
    color: var(--primary-light);
    margin-top: 3px;
    flex-shrink: 0;
}

.footer-contact li div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-contact li span {
    font-size: 0.75rem;
    color: var(--text-light-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-contact li strong {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: #ffffff;
    font-weight: 600;
}

.footer-contact li strong a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px 0;
    background-color: #060b1b;
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    font-size: 0.85rem;
    color: var(--text-light-muted);
}

.legal {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 102, 153, 0.5);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(0, 102, 153, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 102, 153, 0);
    }
}

@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}

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

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

@keyframes plotterPenMove {
    0% {
        transform: translate(0, 0);
    }
    20% {
        transform: translate(50px, 90px);
    }
    40% {
        transform: translate(140px, 40px);
    }
    60% {
        transform: translate(210px, 120px);
    }
    80% {
        transform: translate(100px, 190px);
    }
    100% {
        transform: translate(0, 0);
    }
}

@keyframes ping {
    0% {
        transform: scale(0.2);
        opacity: 0.8;
    }
    80% {
        transform: scale(1.2);
        opacity: 0;
    }
    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Scroll Animation classes controlled by JS */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */

@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-content {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-ctas, .hero-features {
        justify-content: center;
    }
    
    .hero-description {
        max-width: 100%;
    }
    
    .calculator-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .calc-info {
        max-width: 100%;
        text-align: center;
    }
    
    .calc-steps {
        max-width: 500px;
        margin: 0 auto;
        text-align: left;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-grid {
        grid-template-columns: 1.2fr 0.8fr;
        gap: 40px;
    }
    
    .footer-contact {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .main-header {
        padding: 16px 0;
    }
    
    .mobile-nav-toggle {
        display: block;
    }
    
    .navbar {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        border-bottom: 2px solid var(--bg-light-border);
        padding: 30px 20px;
        box-shadow: var(--shadow-lg);
        transform: translateY(-150%);
        transition: var(--transition-normal);
        z-index: -1;
    }
    
    .navbar.active {
        transform: translateY(0);
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .btn-nav {
        display: none; /* Hide nav button in tablet/mobile screen inside header */
    }
    
    .hero-title {
        font-size: 2.4rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-contact {
        grid-column: span 1;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-ctas .btn {
        width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .btn-group-toggle {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .calc-card {
        padding: 24px 16px;
    }
    
    .form-container {
        padding: 24px 16px;
    }
    
    .form-row .col-6 {
        flex: 1 1 100%;
    }
    
    .contact-info-card {
        padding: 16px;
        gap: 16px;
    }
    
    .card-value {
        font-size: 1.25rem;
    }
    
    .card-icon {
        width: 50px;
        height: 50px;
    }
    
    .card-icon svg {
        width: 22px;
        height: 22px;
    }
    
    .map-iframe-container {
        height: 300px;
    }
}

/* Custom Text Links */
.text-link {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 600;
    transition: var(--transition-fast);
}

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

/* Service Card text-link override for dark section */
.services-section .text-link {
    color: var(--primary-light);
}

.services-section .text-link:hover {
    color: #ffffff;
}
