/* ==========================================
   AST Aerotermia - Stylesheet
   Modern, clean, responsive design
   ========================================== */

:root {
    --primary: #2196D4;
    --primary-dark: #1976B2;
    --primary-light: #42A5F5;
    --secondary: #F37021;
    --secondary-dark: #E5630D;
    --accent: #FFC107;
    --dark: #2D3E50;
    --dark-light: #1A2A3A;
    --text: #2D3E50;
    --text-light: #5A6A7A;
    --text-muted: #95a5a6;
    --bg: #ffffff;
    --bg-light: #f8fafc;
    --bg-warm: #EBF5FB;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s ease;
    --max-width: 1200px;
    --header-height: 70px;
}

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

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

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--bg);
    overflow-x: hidden;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================
   Typography
   ========================================== */

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.125rem; }

p {
    margin-bottom: 1rem;
}

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

a:hover {
    color: var(--primary-dark);
}

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

/* ==========================================
   Buttons
   ========================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

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

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

.btn-full {
    width: 100%;
}

/* ==========================================
   Navigation
   ========================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: transparent;
    z-index: 1000;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logo-icon {
    font-size: 1.75rem;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 24px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 0.9375rem;
    position: relative;
    transition: color 0.3s ease;
}

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

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

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

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: rgba(255, 255, 255, 0.9);
    transition: var(--transition);
    border-radius: 2px;
}

/* ==========================================
   Cookie Banner
   ========================================== */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark);
    color: white;
    z-index: 9999;
    padding: 20px 0;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.cookie-banner.active {
    transform: translateY(0);
}

.cookie-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cookie-content p {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.5;
    flex: 1;
}

.cookie-link {
    color: var(--primary-light);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-buttons .btn {
    padding: 10px 20px;
    font-size: 0.875rem;
}

.cookie-buttons .btn-outline {
    color: white;
    border-color: rgba(255,255,255,0.3);
}

.cookie-buttons .btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
    color: white;
}

/* ==========================================
   Hero Section
   ========================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    overflow: hidden;
    background: linear-gradient(135deg, rgba(10, 25, 41, 0.85) 0%, rgba(10, 25, 41, 0.75) 100%), url('../img/header-pic.webp') center/cover no-repeat;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(243, 112, 33, 0.25) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(33, 150, 212, 0.2) 0%, transparent 50%);
}


/* Ice crystals - visible 0-5s, hidden when heat appears */
.ice {
    position: absolute;
    z-index: 0;
    pointer-events: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.5rem;
}

.ice::before {
    content: '❄';
    display: block;
}

.crystal-1 { top: 8%; left: 5%; font-size: 1.3rem; animation: ice-cycle 12s ease-in-out infinite; }
.crystal-2 { top: 28%; left: 78%; font-size: 1.1rem; animation: ice-cycle 12s ease-in-out 0.8s infinite; }
.crystal-3 { top: 55%; left: 12%; font-size: 3rem; animation: ice-cycle 12s ease-in-out 1.6s infinite; }
.crystal-4 { top: 72%; left: 68%; font-size: 1.2rem; animation: ice-cycle 12s ease-in-out 2.4s infinite; }

@keyframes ice-cycle {
    0%   { opacity: 0.3; transform: translateY(0) rotate(0deg); }
    10%  { opacity: 0.8; transform: translateY(-12px) rotate(10deg); }
    20%  { opacity: 0.5; transform: translateY(-6px) rotate(-5deg); }
    30%  { opacity: 0.7; transform: translateY(-18px) rotate(8deg); }
    42%  { opacity: 0; transform: translateY(-25px) rotate(12deg); }
    100% { opacity: 0; transform: translateY(-25px) rotate(12deg); }
}



.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 60px 0;
}

.hero-title {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 24px;
    line-height: 1.1;
    background: linear-gradient(90deg, #42A5F5, #ffffff, #42A5F5);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: title-shimmer 3s ease-in-out infinite, title-reveal 0.8s ease-out forwards;
}

@keyframes title-shimmer {
    0% { background-position: 0% center; }
    50% { background-position: 100% center; }
    100% { background-position: 0% center; }
}

@keyframes title-reveal {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-subtitle strong {
    color: var(--primary-light);
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 48px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 4px;
}

/* ==========================================
   Section Layout
   ========================================== */

.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--bg-warm);
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 100px;
    margin-bottom: 16px;
}

.section-title {
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.125rem;
    color: var(--text-light);
}

/* ==========================================
   Services
   ========================================== */

.services {
    background: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.service-card {
    background: white;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.service-card p {
    color: var(--text-light);
    font-size: 0.9375rem;
    margin-bottom: 20px;
}

.service-list {
    list-style: none;
}

.service-list li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    font-size: 0.9375rem;
    color: var(--text);
}

.service-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

/* ==========================================
   Aerotermia Section
   ========================================== */

.aerotermia-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.aerotermia-content p {
    font-size: 1.0625rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.benefits-list {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.benefit-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.benefit-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-warm);
    border-radius: var(--radius-sm);
}

.benefit-item h4 {
    margin-bottom: 4px;
    font-size: 1.0625rem;
}

.benefit-item p {
    margin: 0;
    font-size: 0.9375rem;
}

/* Heat Pump Diagram */

.heat-pump-diagram {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 32px;
    border: 2px solid var(--border);
}

.diagram-title {
    font-weight: 700;
    text-align: center;
    margin-bottom: 24px;
    color: var(--dark);
}

.diagram-box {
    background: white;
    border: 2px solid var(--primary);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    text-align: center;
}

.diagram-box.outdoor {
    border-color: var(--text-muted);
}

.diagram-box.pump {
    border-color: var(--primary);
    background: var(--bg-warm);
}

.diagram-box.indoor {
    border-color: var(--secondary);
}

.diagram-label {
    display: block;
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--dark);
}

.diagram-temp {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.diagram-arrow {
    text-align: center;
    padding: 12px;
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
}

/* ==========================================
   Calculator Section
   ========================================== */

.calculator-section {
    background: linear-gradient(180deg, var(--bg-warm) 0%, var(--bg) 100%);
}

.calculator-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.calculator-form,
.calculator-results {
    background: white;
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
}

.calculator-form h3,
.calculator-results h3 {
    margin-bottom: 24px;
    font-size: 1.25rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--dark);
}

.form-input,
.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    color: var(--text);
    background: white;
    transition: var(--transition);
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(243, 112, 33, 0.15);
}

.form-select-small {
    width: auto;
    min-width: 180px;
}

.input-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.form-help {
    display: block;
    margin-top: 6px;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.slider {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 3px;
    background: var(--border);
    outline: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: 3px solid white;
    box-shadow: var(--shadow);
}

.slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: 3px solid white;
    box-shadow: var(--shadow);
}

.slider-value {
    text-align: center;
    margin-top: 8px;
    font-weight: 600;
    color: var(--primary);
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--primary);
    flex-shrink: 0;
}

.form-check label {
    margin: 0;
    font-weight: 400;
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.4;
}

.form-check label a {
    text-decoration: underline;
}

.form-note {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 12px;
    margin-bottom: 0;
}

/* Calculator Results */

.comparison-chart {
    margin-bottom: 32px;
}

.chart-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.chart-label {
    width: 140px;
    font-size: 0.9375rem;
    font-weight: 500;
    flex-shrink: 0;
}

.chart-bar-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.chart-bar {
    height: 32px;
    border-radius: var(--radius-sm);
    transition: width 0.6s ease;
    min-width: 4px;
}

.chart-bar.current {
    background: var(--text-muted);
}

.chart-bar.aerotermia {
    background: linear-gradient(90deg, var(--secondary), var(--secondary-dark));
}

.chart-value {
    font-weight: 700;
    font-size: 0.9375rem;
    white-space: nowrap;
}

.savings-cards {
    display: grid;
    gap: 16px;
    margin-bottom: 32px;
}

.savings-card {
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    padding: 20px;
    border-left: 4px solid var(--primary);
}

.savings-card.highlight {
    border-left-color: var(--secondary);
    background: linear-gradient(90deg, rgba(33, 150, 212, 0.1), transparent);
}

.savings-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 4px;
}

.savings-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
}

.savings-percent {
    display: block;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--secondary);
    margin-top: 4px;
}

.savings-period {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.calculator-cta {
    background: var(--bg-warm);
    border-radius: var(--radius-sm);
    padding: 24px;
    text-align: center;
    margin-bottom: 20px;
}

.calculator-cta p {
    margin-bottom: 16px;
    font-size: 0.9375rem;
}

.calculator-disclaimer {
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

/* ==========================================
   Why Us / Features
   ========================================== */

.why-us {
    background: var(--dark);
    color: white;
}

.why-us .section-tag {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-light);
}

.why-us .section-title {
    color: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature {
    text-align: center;
    padding: 32px 24px;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.feature h4 {
    color: white;
    margin-bottom: 8px;
    font-size: 1.125rem;
}

.feature p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
    margin: 0;
}

/* ==========================================
   Coverage Area
   ========================================== */

.coverage {
    background: var(--bg-light);
}

.coverage-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.coverage-text p {
    font-size: 1.0625rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.coverage-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.coverage-list li {
    padding: 8px 0 8px 28px;
    position: relative;
    font-size: 0.9375rem;
}

.coverage-list li::before {
    content: '📍';
    position: absolute;
    left: 0;
    font-size: 0.875rem;
}

/* Map Visualization */

.andalucia-map {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #FFF0E6 0%, #E6F2FF 100%);
    border-radius: var(--radius);
    overflow: hidden;
}

.andalucia-map::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10,10 L90,10 L90,90 L10,90 Z' fill='none' stroke='%23F37021' stroke-width='0.5' stroke-opacity='0.1'/%3E%3C/svg%3E");
    opacity: 0.3;
}

.map-marker {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.marker-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid white;
    box-shadow: var(--shadow);
    animation: pulse 2s infinite;
}

.map-marker.active .marker-dot {
    background: var(--primary);
    width: 20px;
    height: 20px;
}

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

.marker-label {
    margin-top: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--dark);
    background: white;
    padding: 2px 8px;
    border-radius: 4px;
    box-shadow: var(--shadow);
    white-space: nowrap;
}

/* ==========================================
   Blog
   ========================================== */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.blog-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.blog-image {
    height: 200px;
    background: linear-gradient(135deg, var(--bg-warm), var(--bg-light));
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-placeholder {
    font-size: 4rem;
}

.blog-content {
    padding: 24px;
}

.blog-date {
    font-size: 0.8125rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 8px;
}

.blog-content h3 {
    font-size: 1.125rem;
    margin-bottom: 12px;
    line-height: 1.3;
}

.blog-content h3 a {
    color: var(--dark);
}

.blog-content h3 a:hover {
    color: var(--primary);
}

.blog-content p {
    font-size: 0.9375rem;
    color: var(--text-light);
    margin-bottom: 16px;
}

.blog-link {
    font-weight: 600;
    font-size: 0.9375rem;
}

/* ==========================================
   Contact
   ========================================== */

.contact {
    background: var(--bg-warm);
}

.contact .section-tag {
    font-size: 1rem;
    padding: 8px 20px;
    background: var(--primary);
    color: white;
}

.contact .section-title {
    font-size: 2.5rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
}

.contact-info p {
    font-size: 1.0625rem;
    color: var(--text-light);
    margin-bottom: 32px;
}

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

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-icon {
    font-size: 1.25rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    color: var(--dark);
    margin-bottom: 2px;
    font-size: 0.9375rem;
}

.contact-item p {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--text-light);
}

.contact-item a {
    color: var(--text-light);
}

.contact-item a:hover {
    color: var(--primary);
}

.contact-form-wrapper {
    background: white;
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ==========================================
   Footer
   ========================================== */

.footer {
    background: var(--dark);
    color: white;
    padding: 80px 0 32px;
}

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

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

.footer-brand .logo-text {
    color: white;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
    margin-bottom: 20px;
}

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

.footer-social a {
    font-size: 1.25rem;
    opacity: 0.7;
    transition: var(--transition);
}

.footer-social a:hover {
    opacity: 1;
    transform: scale(1.1);
}

.footer-links h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    margin: 0;
}

.footer-made {
    font-style: italic;
}

/* ==========================================
   WhatsApp Float Button
   ========================================== */

.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9998;
    background: #25d366;
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) scale(0.8);
}

.whatsapp-float.visible {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0) scale(1);
    animation: whatsapp-pulse 2s ease-in-out infinite;
}

.whatsapp-float:hover {
    background: #128c7e;
    color: white;
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.5);
    animation: none;
}

.whatsapp-icon {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

.whatsapp-text {
    display: none;
}

@keyframes whatsapp-pulse {
    0%, 100% { box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 24px rgba(37, 211, 102, 0.7), 0 0 0 8px rgba(37, 211, 102, 0.1); }
}

/* ==========================================
   Back to Top Button (Mobile)
   ========================================== */
.back-to-top {
    display: none;
    position: fixed;
    bottom: 96px;
    right: 24px;
    z-index: 9997;
    background: var(--secondary);
    color: white;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(243, 112, 33, 0.4);
    transition: var(--transition);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
}

.back-to-top.visible {
    display: flex;
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--secondary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(243, 112, 33, 0.5);
}

/* ==========================================
   Blog Page Specific Styles
   ========================================== */

.blog-post-header {
    position: relative;
    overflow: hidden;
    color: white;
    padding: 140px 0 80px;
    text-align: center;
}

.blog-post-header .container {
    position: relative;
    z-index: 2;
}

.blog-post-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 9, 20, 0.55) 0%, rgba(5, 9, 20, 0.7) 100%);
    z-index: 1;
}

.blog-post-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0;
}

.blog-post-title {
    color: white;
    font-size: 2.5rem;
    max-width: 800px;
    margin: 0 auto 16px;
}

.blog-post-meta {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
}

.blog-post-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 64px 24px;
}

.blog-post-content h2 {
    margin-top: 48px;
    margin-bottom: 16px;
    font-size: 1.75rem;
}

.blog-post-content h3 {
    margin-top: 32px;
    margin-bottom: 12px;
}

.blog-post-content p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 20px;
}

.blog-post-content ul,
.blog-post-content ol {
    margin-bottom: 20px;
    padding-left: 24px;
}

.blog-post-content li {
    margin-bottom: 8px;
    color: var(--text-light);
    line-height: 1.7;
}

.blog-post-content strong {
    color: var(--dark);
}

.blog-post-content blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 24px;
    margin: 32px 0;
    font-style: italic;
    color: var(--text);
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    margin: 32px 0;
    font-size: 0.9375rem;
}

.price-table th,
.price-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.price-table th {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--dark);
}

.price-table tr:hover {
    background: var(--bg-light);
}

.back-to-blog {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 32px;
    font-weight: 500;
}

.related-posts {
    background: var(--bg-light);
    padding: 64px 0;
}

/* ==========================================
   Responsive Design
   ========================================== */

@media (max-width: 1024px) {
    .services-grid,
    .features-grid,
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
    
    .section {
        padding: 60px 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 24px;
        gap: 0;
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    .nav-menu li {
        border-bottom: 1px solid var(--border);
    }
    
    .nav-link {
        display: block;
        padding: 16px 0;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-subtitle {
        font-size: 1.0625rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-stats {
        gap: 24px;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .services-grid,
    .features-grid,
    .blog-grid,
    .aerotermia-grid,
    .calculator-wrapper,
    .contact-grid,
    .coverage-content {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .coverage-list {
        grid-template-columns: 1fr;
    }
    
    .input-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .form-select-small {
        width: 100%;
    }
    
    .chart-label {
        width: 100px;
        font-size: 0.8125rem;
    }
    
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .blog-post-header {
        padding: 120px 0 60px;
    }

    .blog-post-title {
        font-size: 1.75rem;
    }
    
    .blog-post-content {
        padding: 40px 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.875rem;
    }
    
    .hero-stats {
        flex-wrap: wrap;
    }
    
    .stat {
        flex: 1;
        min-width: 100px;
    }
    
    .btn-lg {
        padding: 14px 24px;
        font-size: 1rem;
    }
    
    .service-card,
    .calculator-form,
    .calculator-results,
    .contact-form-wrapper {
        padding: 24px;
    }
}

/* ==========================================
   Utilities
   ========================================== */

.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.hidden { display: none !important; }

/* Smooth scroll offset for fixed header */
html {
    scroll-padding-top: calc(var(--header-height) + 20px);
}

/* Focus styles for accessibility */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background: rgba(243, 112, 33, 0.2);
    color: var(--dark);
}

/* ==========================================
   Logo Styles
   ========================================== */

.logo img {
    height: 60px;
    width: auto;
    border-radius: 0;
}

/* ==========================================
   Photo Carousel
   ========================================== */

.gallery-section {
    background: var(--dark);
    padding: 80px 0;
}

.gallery-section .section-tag {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-light);
}

.gallery-section .section-title {
    color: white;
}

.carousel {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    font-size: 1rem;
    font-weight: 500;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: var(--transition);
    color: var(--dark);
}

.carousel-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: 16px;
}

.carousel-btn.next {
    right: 16px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

/* Navbar shrink on scroll */
.navbar.scrolled {
    box-shadow: var(--shadow);
    height: calc(var(--header-height) * 0.85);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.navbar.scrolled .logo img {
    height: 48px;
}

.navbar.scrolled .nav-link {
    color: var(--text);
    font-size: 0.875rem;
}

.navbar.scrolled .nav-toggle span {
    background: var(--dark);
}

/* Hot and Cold Animations */
@keyframes heat-wave {
    0%, 100% { 
        transform: scaleY(1) translateY(0);
        filter: blur(0px);
    }
    50% { 
        transform: scaleY(1.15) translateY(-8px);
        filter: blur(1px);
    }
}

@keyframes cold-wave {
    0%, 100% { 
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    50% { 
        transform: scale(1.1) rotate(5deg);
        opacity: 0.85;
    }
}

@keyframes steam-rise {
    0% { transform: translateY(0) scale(1); opacity: 0.8; }
    50% { transform: translateY(-15px) scale(1.3); opacity: 0.4; }
    100% { transform: translateY(-30px) scale(0.8); opacity: 0; }
}

@keyframes frost-pulse {
    0%, 100% { text-shadow: 0 0 4px rgba(33, 150, 212, 0.3); }
    50% { text-shadow: 0 0 12px rgba(33, 150, 212, 0.7), 0 0 20px rgba(33, 150, 212, 0.3); }
}

.hot-element {
    animation: heat-wave 2s ease-in-out infinite;
    transform-origin: bottom center;
}

.cold-element {
    animation: cold-wave 2.5s ease-in-out infinite;
    transform-origin: center center;
}

.steam-particle {
    animation: steam-rise 2s ease-out infinite;
}

.frost-text {
    animation: frost-pulse 2s ease-in-out infinite;
}

/* Hot/Cold gradient animations */
.hot-gradient {
    background: linear-gradient(135deg, #ff6b35 0%, #ff4444 50%, #ff8c00 100%);
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
}

.cold-gradient {
    background: linear-gradient(135deg, #42A5F5 0%, #2196D4 50%, #1565C0 100%);
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Contact Methods (email & phone only) */
.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 32px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-decoration: none;
    color: var(--text);
}

.contact-method:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    color: var(--primary);
}

.contact-method-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-method-text {
    display: flex;
    flex-direction: column;
}

.contact-method-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.contact-method-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dark);
}

.contact-method:hover .contact-method-value {
    color: var(--primary);
}

.contact-grid-simple {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    max-width: 700px;
    margin: 0 auto;
}

/* ==========================================
   Google Maps
   ========================================== */

.map-container {
    width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-top: 24px;
}

.map-container iframe {
    width: 100%;
    height: 300px;
    border: none;
    display: block;
}

/* Contact grid with 3 columns when map is present */
.contact-grid-3 {
    display: grid;
    grid-template-columns: 1.2fr 1.2fr 1fr;
    gap: 32px;
    align-items: start;
}

@media (max-width: 1024px) {
    .contact-grid-3 {
        grid-template-columns: 1fr 1fr;
    }
    .contact-form-wrapper {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .carousel-slide img {
        height: 300px;
    }
}