/* ==========================================================================
   CSS SYSTEM - DAVID SAN LÁZARO (davidsanlazaro.es)
   ========================================================================== */

/* 1. VARIABLES & DESIGN SYSTEM */
:root {
    /* Color Palette */
    --primary: #0b2545;
    --primary-light: #134074;
    --primary-dark: #081b31;
    --accent: #b89047; /* Soft satin gold / bronze */
    --accent-hover: #cfab60;
    --accent-light: #f7f4eb;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --white: #ffffff;
    --border-color: #e2e8f0;
    
    /* Semantic Colors */
    --success: #10b981;
    --success-light: #ecfdf5;
    --error: #ef4444;
    
    /* Layout & Effects */
    --font-sans: 'Montserrat', sans-serif;
    --font-serif: 'Playfair Display', serif;
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --border-radius-lg: 24px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 2. BASE STYLES & RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

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

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

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

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

.section {
    padding: 100px 0;
}

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

/* 3. TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--primary);
}

h1 {
    font-size: 3rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.25rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.75rem;
    font-family: var(--font-sans);
}

h4 {
    font-size: 1.25rem;
}

.highlight-text {
    color: var(--accent);
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 600;
}

/* Section Headers */
.section-header {
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.section-subtitle {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 12px;
}

.section-divider {
    width: 60px;
    height: 3px;
    background-color: var(--accent);
    margin: 20px auto;
    border-radius: 2px;
}

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

/* 4. BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(184, 144, 71, 0.3);
}

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

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

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

/* 5. TOP BAR & MAIN HEADER */
.top-bar {
    background-color: var(--primary-dark);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.top-bar-contact span {
    margin-right: 24px;
}

.top-bar-contact i {
    color: var(--accent);
    margin-right: 6px;
}

.top-bar-contact a:hover {
    color: var(--accent);
}

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

.top-bar-social a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.top-bar-social a:hover {
    color: var(--accent);
}

/* Header Navigation */
header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}

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

.logo {
    font-size: 1.4rem;
    font-weight: 400;
    letter-spacing: 1.5px;
    color: var(--primary);
}

.logo-bold {
    font-weight: 800;
    color: var(--primary-light);
}

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

.nav-link {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary);
    position: relative;
    padding: 6px 0;
}

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

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

.desktop-nav .cta-button {
    background-color: var(--primary);
    color: var(--white) !important;
    padding: 10px 22px;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: var(--shadow-sm);
}

.desktop-nav .cta-button:hover {
    background-color: var(--accent);
    color: var(--primary-dark) !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Mobile Nav Toggle Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
}

/* Mobile Navigation Dropdown */
.mobile-nav {
    display: none;
    flex-direction: column;
    background-color: var(--bg-white);
    border-top: 1px solid var(--border-color);
    padding: 15px 24px;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    box-shadow: var(--shadow-lg);
    gap: 15px;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-nav.open {
    display: flex;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.mobile-nav a {
    font-weight: 600;
    font-size: 1rem;
    color: var(--primary);
    padding: 8px 0;
}

.mobile-cta-button {
    background-color: var(--accent);
    color: var(--primary-dark);
    text-align: center;
    padding: 12px;
    border-radius: var(--border-radius-sm);
}

/* 6. HERO SECTION */
.hero {
    min-height: 85vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: var(--white);
    position: relative;
    padding: 80px 0;
}

.hero-container-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
    width: 100%;
}

.hero-content {
    max-width: 680px;
    animation: fadeInUp 0.8s ease-out;
}

.hero-badge {
    display: inline-block;
    background-color: rgba(184, 144, 71, 0.2);
    border: 1px solid var(--accent);
    color: var(--accent-hover);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 24px;
}

.hero-description {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 35px;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

.hero-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: fadeInRight 0.8s ease-out;
}

.stat-card {
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.stat-card:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
}

.stat-plus, .stat-percent {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
}

.stat-label {
    display: block;
    margin-top: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.7);
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
}

.scroll-indicator a {
    color: rgba(255, 255, 255, 0.6);
}

.scroll-indicator a:hover {
    color: var(--accent);
}

/* 7. MI ACTIVIDAD - SERVICIOS */
.subsection-services {
    margin-bottom: 100px;
}

.subsection-header {
    margin-bottom: 40px;
}

.subsection-header h3 {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.subsection-header p {
    color: var(--text-muted);
}

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

.service-card {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background-color: var(--accent);
    transition: var(--transition);
}

.service-card:hover {
    background-color: var(--bg-white);
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.service-card:hover::before {
    height: 100%;
}

.service-icon {
    font-size: 2.2rem;
    color: var(--accent);
    margin-bottom: 24px;
}

.service-card h4 {
    margin-bottom: 16px;
    font-weight: 700;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* AUDIT BOX (FACTURAS GRATUITO) */
.audit-box {
    background-color: var(--primary-dark);
    color: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(184, 144, 71, 0.25);
}

.audit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.audit-info {
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, rgba(11, 37, 69, 0.95) 0%, rgba(8, 27, 49, 0.95) 100%), url('img/hero_bg.png');
    background-size: cover;
    background-position: center;
}

.badge-accent {
    display: inline-block;
    background-color: var(--accent);
    color: var(--primary-dark);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 12px;
    border-radius: 4px;
    align-self: flex-start;
    margin-bottom: 20px;
}

.audit-info h4 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 20px;
    line-height: 1.25;
}

.audit-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin-bottom: 30px;
}

.audit-features {
    list-style: none;
}

.audit-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

.audit-features i {
    color: var(--accent);
}

/* Audit Form container */
.audit-form-container {
    padding: 60px;
    background-color: #0f2b4e;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

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

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.5px;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    padding: 12px 16px;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.15);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--white);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    border-color: var(--accent);
    background-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(184, 144, 71, 0.2);
}

.form-group input::placeholder, 
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Drag & Drop */
.drag-drop-zone {
    border: 2px dashed rgba(184, 144, 71, 0.4);
    border-radius: var(--border-radius);
    padding: 30px 20px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.drag-drop-zone.dragover {
    border-color: var(--accent);
    background-color: rgba(184, 144, 71, 0.08);
    transform: scale(0.99);
}

.file-input {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

.drag-drop-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    pointer-events: none;
}

.drag-icon {
    font-size: 2.2rem;
    color: var(--accent);
    margin-bottom: 8px;
}

.drag-text {
    font-weight: 600;
    font-size: 0.95rem;
}

.drag-text span {
    color: var(--accent);
}

.drag-hint {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

/* File list show */
.file-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 5px;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 16px;
    border-radius: var(--border-radius-sm);
    font-size: 0.85rem;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-info i {
    color: var(--accent);
}

.file-name {
    font-weight: 500;
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-size {
    color: rgba(255, 255, 255, 0.5);
}

.btn-remove-file {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    font-size: 1rem;
    padding: 4px;
    transition: var(--transition);
}

.btn-remove-file:hover {
    color: var(--error);
}

/* Checkbox */
.consent-group {
    margin-top: 10px;
}

.checkbox-container {
    display: block;
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    font-size: 0.8rem;
    user-select: none;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
}

.checkbox-container a {
    color: var(--accent);
    text-decoration: underline;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    transition: var(--transition);
}

.checkbox-container:hover input ~ .checkmark {
    background-color: rgba(255, 255, 255, 0.15);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--accent);
    border-color: var(--accent);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 6px;
    top: 2px;
    width: 4px;
    height: 9px;
    border: solid var(--primary-dark);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* 8. MI ACTIVIDAD - EXPANSIÓN */
.subsection-expansion {
    margin-top: 100px;
}

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

.expansion-image-decor {
    position: relative;
    height: 480px;
    background: linear-gradient(135deg, rgba(11, 37, 69, 0.65) 0%, rgba(19, 64, 116, 0.65) 100%), url('img/david_consulting.png');
    background-size: cover;
    background-position: center;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.expansion-badge-floating {
    position: absolute;
    top: 30px;
    left: 30px;
    background-color: var(--bg-white);
    color: var(--primary-dark);
    padding: 12px 20px;
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    animation: float 4s ease-in-out infinite;
}

.expansion-badge-floating i {
    color: var(--accent);
    font-size: 1.1rem;
}

.pattern-dots {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 150px;
    height: 150px;
    background-image: radial-gradient(var(--accent) 1.5px, transparent 1.5px);
    background-size: 10px 10px;
    opacity: 0.4;
    z-index: 1;
}

.solid-box-decor {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
    height: 100px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    z-index: 2;
}

.expansion-content .lead-text {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--primary-light);
    margin-bottom: 20px;
}

.expansion-steps {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

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

.step-num {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 700;
    font-style: italic;
    color: var(--accent);
    line-height: 1;
    background-color: var(--accent-light);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.step-text h5 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--primary);
}

.step-text p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

/* 9. MI HISTORIA */
.history-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.history-title {
    font-size: 1.8rem;
    line-height: 1.35;
    margin-bottom: 24px;
}

.history-intro {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--primary-light);
    margin-bottom: 20px;
}

.history-text p {
    color: var(--text-muted);
    margin-bottom: 15px;
}

.history-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 30px;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
}

.value-item {
    display: flex;
    gap: 15px;
}

.value-icon {
    font-size: 1.5rem;
    color: var(--accent);
    flex-shrink: 0;
}

.value-item h6 {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.value-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.4;
}

/* Overlapping Image layout for history */
.history-images-wrapper {
    position: relative;
    height: 520px;
}

.history-images-wrapper .image-box {
    position: absolute;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.history-images-wrapper .image-box:hover {
    transform: scale(1.04) translateY(-5px);
    z-index: 5 !important;
    box-shadow: var(--shadow-xl);
}

.history-images-wrapper .main-img {
    width: 58%;
    top: 0;
    left: 0;
    z-index: 3;
}

.history-images-wrapper .second-img {
    width: 50%;
    bottom: 20px;
    right: 0;
    z-index: 2;
}

.history-images-wrapper .third-img {
    width: 42%;
    top: 60px;
    right: 15%;
    z-index: 1;
}

.experience-badge-wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 48%;
    z-index: 4;
}

.experience-badge-inline {
    background-color: var(--primary);
    color: var(--white);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl);
    text-align: center;
    border-left: 4px solid var(--accent);
}

.experience-badge-inline .big-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.experience-badge-inline .badge-text {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    display: block;
    margin-top: 5px;
}

.rounded-image {
    border-radius: var(--border-radius);
}

.img-responsive {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* VISION CONTAINER */
.vision-container {
    margin-top: 100px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.vision-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
}

.vision-image {
    overflow: hidden;
}

.vision-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 350px;
}

.vision-content {
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.vision-content h3 {
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.vision-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.vision-quote {
    margin-top: 20px;
    padding-left: 24px;
    border-left: 3px solid var(--accent);
    position: relative;
}

.quote-icon {
    position: absolute;
    left: -15px;
    top: -15px;
    font-size: 2rem;
    color: rgba(184, 144, 71, 0.15);
}

.vision-quote p {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--white);
    line-height: 1.5;
    margin-bottom: 8px;
}

.vision-quote cite {
    font-size: 0.85rem;
    font-style: normal;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
}

/* 10. CONTACTA SECTION */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info-card {
    background-color: var(--bg-light);
    border-bottom: 3px solid var(--accent);
    padding: 24px 30px;
    border-radius: var(--border-radius-sm) var(--border-radius-sm) 0 0;
    margin-bottom: 24px;
}

.contact-info-card h4 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.contact-info-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
}

/* Calendly Custom Widget Styling */
.calendly-embed-container {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    min-height: 520px;
}

.calendly-mock {
    background-color: var(--bg-white);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.calendly-mock-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 16px;
}

.calendly-mock-logo {
    background-color: var(--primary-light);
    color: var(--white);
    font-weight: 800;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.calendly-mock-user h5 {
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.calendly-mock-user p {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.calendly-mock-user i {
    color: var(--accent);
}

.calendly-mock-body {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    flex-grow: 1;
}

.calendly-mock-calendar {
    padding: 24px;
    border-right: 1px solid var(--border-color);
}

.calendar-month {
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary);
}

.calendar-grid-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.calendar-grid-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.calendar-grid-days span {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 50%;
}

.day-empty {
    pointer-events: none;
}

.day-disabled {
    color: #cbd5e1;
}

.day-active {
    background-color: var(--accent-light);
    color: var(--primary-dark);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.day-active:hover {
    background-color: var(--accent);
    color: var(--primary-dark);
}

.day-active.selected {
    background-color: var(--primary);
    color: var(--white);
}

.calendly-mock-hours {
    padding: 24px;
    background-color: var(--bg-light);
    display: flex;
    flex-direction: column;
}

.calendly-mock-hours h6 {
    font-size: 0.85rem;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.hours-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-grow: 1;
}

.hour-btn {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 10px;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    color: var(--primary-light);
    cursor: pointer;
    transition: var(--transition);
}

.hour-btn:hover {
    border-color: var(--accent);
    background-color: var(--accent-light);
}

.hour-btn.selected {
    background-color: var(--accent);
    border-color: var(--accent);
    color: var(--primary-dark);
}

.timezone-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.calendly-mock-footer-cta {
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-color);
    padding: 12px 24px;
    font-size: 0.72rem;
    color: var(--text-muted);
    text-align: center;
}

/* Contact Form column styling */
.form-column .contact-form {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-column .form-group label {
    color: var(--text-main);
    font-weight: 600;
}

.form-column .form-group input,
.form-column .form-group select,
.form-column .form-group textarea {
    background-color: var(--bg-light);
    border-color: var(--border-color);
    color: var(--text-main);
}

.form-column .form-group input:focus,
.form-column .form-group select:focus,
.form-column .form-group textarea:focus {
    background-color: var(--bg-white);
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(19, 64, 116, 0.15);
}

.form-column .form-group input::placeholder,
.form-column .form-group textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

/* Contact consent custom checkbox style */
.form-column .checkbox-container {
    color: var(--text-muted);
}

.form-column .checkmark {
    background-color: var(--bg-light);
    border-color: var(--border-color);
}

.form-column .checkbox-container:hover input ~ .checkmark {
    background-color: #f1f5f9;
}

.form-column .checkbox-container input:checked ~ .checkmark {
    background-color: var(--primary);
    border-color: var(--primary);
}

.form-column .checkbox-container .checkmark:after {
    border-color: var(--white);
}

/* 11. FOOTER */
footer {
    background-color: var(--primary-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 0.8fr 0.9fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand {
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--white);
    letter-spacing: 1px;
}

.footer-brand p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 15px;
    margin-bottom: 25px;
    line-height: 1.6;
    max-width: 320px;
}

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

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-social a:hover {
    background-color: var(--accent);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

.footer-links h5, .footer-legal h5 {
    color: var(--white);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-links ul, .footer-legal ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a, .footer-legal a {
    font-size: 0.9rem;
}

.footer-links a:hover, .footer-legal a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px 0;
    font-size: 0.8rem;
}

/* 12. MODALS (FEEDBACK SYSTEM) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(8, 27, 49, 0.7);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius-lg);
    padding: 50px 40px;
    width: 90%;
    max-width: 480px;
    box-shadow: var(--shadow-xl);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.open .modal-card {
    transform: scale(1);
}

.modal-icon {
    font-size: 4rem;
    color: var(--success);
    margin-bottom: 20px;
    animation: scaleIn 0.5s ease-out;
}

.modal-card h4 {
    font-size: 1.6rem;
    margin-bottom: 12px;
}

.modal-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* 13. KEYFRAME ANIMATIONS */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes scaleIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.animate-bounce {
    animation: bounce 2s infinite;
}

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


/* ==========================================================================
   14. RESPONSIVE MEDIA QUERIES
   ========================================================================== */

/* Tablet layout styles */
@media (max-width: 1024px) {
    html {
        font-size: 15px;
    }
    
    h1 { font-size: 2.75rem; }
    .hero h1 { font-size: 3rem; }
    
    .hero-container-content {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-stats {
        flex-direction: row;
        justify-content: center;
        width: 100%;
    }
    
    .stat-card {
        flex: 1;
    }
    
    .services-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .audit-grid {
        grid-template-columns: 1fr;
    }
    
    .audit-form-container {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .expansion-grid {
        grid-template-columns: 1fr;
    }
    
    .expansion-image-decor {
        height: 350px;
    }
    
    .history-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .history-images-wrapper {
        height: 380px;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .vision-grid {
        grid-template-columns: 1fr;
    }
    
    .vision-image img {
        min-height: 250px;
        height: 250px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1.2fr 0.8fr 0.8fr;
    }
    
    .footer-legal {
        grid-column: span 3;
    }
}

/* Mobile layout styles */
@media (max-width: 768px) {
    .top-bar {
        display: none; /* Hide top bar on mobile to keep header clean */
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .desktop-nav {
        display: none;
    }
    
    .hero h1 {
        font-size: 2.25rem;
    }
    
    .hero-stats {
        flex-direction: column;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .audit-info, .audit-form-container {
        padding: 30px 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .calendly-mock-body {
        grid-template-columns: 1fr;
    }
    
    .calendly-mock-calendar {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .form-column .contact-form {
        padding: 24px 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-legal {
        grid-column: span 1;
    }
}
