@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@700&family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    /* Colores base (Claro) */
    --primary-blue: #0f4c81;       /* Azul corporativo de confianza */
    --primary-blue-rgb: 15, 76, 129;
    --accent-yellow: #f59e0b;      /* Amarillo corporativo cálido/ámbar */
    --accent-yellow-rgb: 245, 158, 11;
    --accent-green: #15803d;       /* Verde de sostenibilidad */
    
    --bg-primary: #fbfbfa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f5f5f3;
    --text-main: #1c1917;
    --text-muted: #57534e;
    --text-light: #87817b;
    --border-color: #e7e5e4;
    
    --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.02);
    --hover-shadow: 0 20px 40px -15px rgba(15, 76, 129, 0.1), 0 1px 3px rgba(0, 0, 0, 0.05);
    --transition-speed: 0.3s;
    --border-radius: 12px;
}

body.dark-theme {
    /* Colores base (Oscuro) */
    --bg-primary: #0a0a08;
    --bg-secondary: #141412;
    --bg-tertiary: #1e1e1b;
    --text-main: #f5f5f4;
    --text-muted: #a8a29e;
    --text-light: #78716c;
    --border-color: #2e2a24;
    
    --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.1);
    --hover-shadow: 0 20px 40px -15px rgba(245, 158, 11, 0.08), 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Reset y Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-main);
    line-height: 1.6;
    transition: background-color var(--transition-speed), color var(--transition-speed);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-main);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-speed), background-color var(--transition-speed), border-color var(--transition-speed);
}

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

/* Contenedor */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 50px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-speed) cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    outline: none;
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #0d3d68;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(var(--primary-blue-rgb), 0.3);
}

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

.btn-secondary:hover {
    background-color: var(--bg-tertiary);
    border-color: var(--text-main);
    transform: translateY(-2px);
}

.btn-accent {
    background-color: var(--accent-yellow);
    color: #0f172a;
}

.btn-accent:hover {
    background-color: #e08e0b;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(var(--accent-yellow-rgb), 0.3);
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(var(--bg-secondary-rgb, 255, 255, 255), 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: background-color var(--transition-speed), border-color var(--transition-speed);
}

body.dark-theme .site-header {
    background-color: rgba(20, 20, 18, 0.85);
}

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

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    min-width: 0;
}

.logo-img {
    height: 52px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    aspect-ratio: 4739 / 735;
    display: block;
    transition: transform var(--transition-speed), filter var(--transition-speed);
}

.logo:hover .logo-img {
    transform: scale(1.02);
}

body.dark-theme .logo-img {
    /* Resplandor nítido y preciso en tema oscuro para que el texto azul marino sea legible sin crear halos borrosos */
    filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.9)) drop-shadow(0 0 3px rgba(255, 255, 255, 0.25));
}

/* Navegación */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 0;
    position: relative;
    color: var(--text-muted);
}

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

body.dark-theme .nav-link:hover, body.dark-theme .nav-link.active {
    color: #ffffff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-yellow);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-speed) cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover::after, .nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Controles del Header */
.header-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed);
}

.theme-toggle:hover {
    background-color: var(--bg-tertiary);
    color: var(--text-main);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.theme-toggle .sun-icon {
    display: none;
}

body.dark-theme .theme-toggle .moon-icon {
    display: none;
}

body.dark-theme .theme-toggle .sun-icon {
    display: block;
}

/* Botón menú móvil */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    padding: 8px;
}

.mobile-nav-toggle svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

/* Badge 50 Aniversario */
.badge-50 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary-blue), #0b345b);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    border: 1px solid var(--accent-yellow);
    box-shadow: 0 4px 12px rgba(var(--accent-yellow-rgb), 0.15);
    animation: badgePulse 3s infinite ease-in-out;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(var(--accent-yellow-rgb), 0.15);
    }
    50% {
        transform: scale(1.03);
        box-shadow: 0 6px 18px rgba(var(--accent-yellow-rgb), 0.3);
    }
}

.badge-50 span {
    color: var(--accent-yellow);
}

.mobile-nav-badge {
    display: none;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 180px 0 100px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background-color: #0b1528;
    color: #ffffff;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8; /* Aumentada la opacidad para que la casa sea brillante y visible */
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradiente horizontal: oscuro legible a la izquierda y transparente brillante a la derecha */
    background: linear-gradient(to right, rgba(11, 21, 40, 0.95) 0%, rgba(11, 21, 40, 0.75) 45%, rgba(11, 21, 40, 0.3) 70%, rgba(11, 21, 40, 0.05) 100%);
    z-index: 2;
}

.hero-container {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: center;
}

.hero-content {
    max-width: 650px;
}

.hero-pretitle {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-yellow);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.1;
    color: #ffffff;
    margin-bottom: 24px;
}

.hero-title span {
    background: linear-gradient(120deg, #ffffff 40%, var(--accent-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.15rem;
    color: #e2e8f0;
    margin-bottom: 40px;
    font-weight: 300;
}

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

.hero-badge-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-badge-anniversary {
    width: 220px;
    height: 220px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px dashed rgba(245, 158, 11, 0.3);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 20px;
    position: relative;
    animation: rotateDashed 60s linear infinite;
}

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

.hero-badge-inner {
    position: absolute;
    width: 190px;
    height: 190px;
    background: radial-gradient(circle, var(--primary-blue) 0%, #061c32 100%);
    border: 2px solid var(--accent-yellow);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: keepUpright 60s linear infinite;
}

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

.badge-year {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--accent-yellow);
}

.badge-number {
    font-family: 'Outfit', sans-serif;
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1;
    color: #ffffff;
    margin: 4px 0;
}

.badge-text {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff;
}

/* Sections */
.section {
    padding: 100px 0;
}

.section-bg-alt {
    background-color: var(--bg-tertiary);
}

.section-header {
    max-width: 650px;
    margin-bottom: 60px;
}

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

body.dark-theme .section-pretitle {
    color: var(--accent-yellow);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

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

/* Grid de Servicios */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: 40px;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    transition: all var(--transition-speed) cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--primary-blue);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform var(--transition-speed) ease;
}

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

.service-card:hover::before {
    transform: scaleY(1);
    transform-origin: top;
}

.service-card.sustainable::before {
    background-color: var(--accent-green);
}

.service-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background-color: rgba(var(--primary-blue-rgb), 0.08);
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: all var(--transition-speed);
}

body.dark-theme .service-icon-wrapper {
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

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

.service-card.sustainable:hover .service-icon-wrapper {
    background-color: var(--accent-green);
}

.service-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 16px;
}

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

.service-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-blue);
    font-family: 'Outfit', sans-serif;
}

body.dark-theme .service-card-link {
    color: var(--accent-yellow);
}

.service-card-link svg {
    width: 16px;
    height: 16px;
    transition: transform var(--transition-speed);
}

.service-card:hover .service-card-link svg {
    transform: translateX(4px);
}

/* Stats Section */
.stats-bar {
    background-color: var(--primary-blue);
    color: #ffffff;
    padding: 60px 0;
    position: relative;
    z-index: 10;
}

body.dark-theme .stats-bar {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--accent-yellow);
    margin-bottom: 8px;
}

body.dark-theme .stat-number {
    color: var(--accent-yellow);
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #e2e8f0;
}

body.dark-theme .stat-label {
    color: var(--text-muted);
}

/* Sostenibilidad Page & Sections */
.sustainability-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

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

.sustainability-image {
    width: 100%;
    height: 450px;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.sustainability-image-wrapper:hover .sustainability-image {
    transform: scale(1.05);
}

.sustainability-badge {
    position: absolute;
    top: 24px;
    left: 24px;
    background-color: var(--accent-green);
    color: #ffffff;
    padding: 8px 18px;
    border-radius: 50px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 4px 12px rgba(21, 128, 61, 0.3);
}

.sustainability-info-list {
    margin-top: 32px;
}

.sustainability-info-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.sustainability-info-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--accent-green);
    margin-top: 4px;
}

.sustainability-info-text h4 {
    font-size: 1.15rem;
    margin-bottom: 6px;
}

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

/* Principios Passivhaus */
.passivhaus-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 48px;
}

.passivhaus-card {
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: 24px;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    transition: all var(--transition-speed);
}

.passivhaus-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-green);
    box-shadow: 0 12px 24px -10px rgba(21, 128, 61, 0.15);
}

.passivhaus-number {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: rgba(21, 128, 61, 0.2);
    margin-bottom: 12px;
    line-height: 1;
    transition: color var(--transition-speed);
}

.passivhaus-card:hover .passivhaus-number {
    color: var(--accent-green);
}

.passivhaus-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.passivhaus-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Galería de Proyectos */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    border-radius: 50px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.filter-btn:hover {
    background-color: var(--bg-tertiary);
    color: var(--text-main);
}

.filter-btn.active {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: #ffffff;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    transition: all var(--transition-speed) cubic-bezier(0.16, 1, 0.3, 1);
}

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

.project-img-wrapper {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-img {
    transform: scale(1.05);
}

.project-category-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background-color: rgba(15, 76, 129, 0.9);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-card.sostenible .project-category-badge {
    background-color: rgba(21, 128, 61, 0.9);
}

.project-content {
    padding: 24px;
}

.project-location {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-yellow);
    margin-bottom: 8px;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.project-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.project-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Nosotros / Trayectoria */
.about-section {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.history-timeline {
    margin-top: 32px;
    position: relative;
    padding-left: 32px;
}

.history-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 7px;
    width: 2px;
    height: 100%;
    background-color: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 32px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 6px;
    left: -32px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--bg-secondary);
    border: 3px solid var(--primary-blue);
    z-index: 2;
    transition: all var(--transition-speed);
}

.timeline-item:hover::before {
    background-color: var(--accent-yellow);
    border-color: var(--primary-blue);
}

.timeline-year {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary-blue);
    line-height: 1;
    margin-bottom: 8px;
}

.timeline-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.timeline-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Certificaciones / Clasificación */
.certifications-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.cert-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 24px;
    text-align: center;
    box-shadow: var(--card-shadow);
}

.cert-code {
    display: inline-block;
    padding: 4px 12px;
    background-color: rgba(var(--primary-blue-rgb), 0.08);
    color: var(--primary-blue);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 6px;
    margin-bottom: 12px;
}

.cert-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.cert-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Contacto y Mapa */
.contact-container {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
}

.contact-info-column {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-card-list {
    margin-bottom: 40px;
}

.contact-detail-card {
    display: flex;
    gap: 20px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--card-shadow);
}

.contact-detail-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background-color: rgba(var(--primary-blue-rgb), 0.08);
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-detail-content h4 {
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.contact-detail-content p, .contact-detail-content a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.contact-detail-content a:hover {
    color: var(--primary-blue);
}

/* Formulario */
.contact-form-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--card-shadow);
}

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

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

.form-label {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all var(--transition-speed);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
    background-color: var(--bg-secondary);
    box-shadow: 0 0 0 3px rgba(var(--primary-blue-rgb), 0.15);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 24px;
    cursor: pointer;
}

.form-checkbox input {
    margin-top: 4px;
}

.form-checkbox-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.form-checkbox-label a {
    color: var(--primary-blue);
    text-decoration: underline;
}

/* Mensajes de feedback */
.form-feedback {
    display: none;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-feedback.success {
    display: block;
    background-color: rgba(21, 128, 61, 0.1);
    color: var(--accent-green);
    border: 1px solid rgba(21, 128, 61, 0.2);
}

.form-feedback.error {
    display: block;
    background-color: rgba(220, 38, 38, 0.1);
    color: #dc2626;
    border: 1px solid rgba(220, 38, 38, 0.2);
}

/* Mapa Embebido */
.map-section {
    padding-top: 0;
}

.map-wrapper {
    height: 450px;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
}

/* Footer */
.site-footer {
    background-color: #0b1528;
    color: #ffffff;
    padding: 80px 0 30px;
    border-top: 1px solid #1e293b;
}

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

.footer-brand {
    max-width: 320px;
}

.footer-logo-title {
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.footer-logo-subtitle {
    color: var(--accent-yellow);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.footer-brand-desc {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed);
}

.social-link:hover {
    background-color: var(--accent-yellow);
    color: #0f172a;
    transform: translateY(-3px);
}

.social-link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.footer-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 8px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--accent-yellow);
}

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

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

.footer-links a {
    color: #94a3b8;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--accent-yellow);
    padding-left: 4px;
}

.footer-contact-item {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    color: #94a3b8;
    font-size: 0.9rem;
}

.footer-contact-icon {
    color: var(--accent-yellow);
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.footer-contact-item a:hover {
    color: #ffffff;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid #1e293b;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    color: #64748b;
    font-size: 0.85rem;
}

.footer-copyright {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-copyright span {
    color: var(--accent-yellow);
    font-weight: 600;
}

.footer-legal-links {
    display: flex;
    gap: 24px;
}

.footer-legal-links a:hover {
    color: #94a3b8;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-overlay {
        background: linear-gradient(to bottom, rgba(11, 21, 40, 0.95) 0%, rgba(11, 21, 40, 0.85) 60%, rgba(11, 21, 40, 0.6) 100%);
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-content {
        margin: 0 auto;
    }
    
    .hero-pretitle {
        justify-content: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-badge-container {
        margin-top: 20px;
    }
    
    .passivhaus-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }

    /* Cabecera y Logo Responsive en Móvil */
    .site-header {
        height: 70px;
    }

    .header-container {
        height: 70px;
        padding: 0 12px;
        gap: 8px;
    }

    .logo {
        display: inline-flex;
        align-items: center;
        flex: 1 1 auto;
        max-width: calc(100% - 152px);
        min-width: 0;
    }

    .logo-img {
        display: block;
        height: auto;
        max-height: 38px;
        width: 100%;
        max-width: 220px;
        aspect-ratio: 4739 / 735;
        object-fit: contain;
    }

    .header-controls {
        gap: 6px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
    }

    /* Reducción de tamaño del 50 Aniversario en móvil como prefiere el usuario */
    .header-controls .badge-50 {
        display: inline-flex;
        padding: 3px 8px;
        font-size: 0.68rem;
        gap: 4px;
        border-radius: 20px;
        white-space: nowrap;
        animation: none;
    }

    .header-controls .badge-50 span {
        font-size: 0.78rem;
    }

    .theme-toggle {
        width: 34px;
        height: 34px;
        padding: 0;
    }

    .theme-toggle svg {
        width: 18px;
        height: 18px;
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .sustainability-intro {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .sustainability-image {
        height: 300px;
    }
    
    .about-section {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    /* Menu Móvil */
    .mobile-nav-toggle {
        display: block;
        padding: 4px;
    }

    .mobile-nav-toggle svg {
        width: 22px;
        height: 22px;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--bg-secondary);
        flex-direction: column;
        align-items: center;
        padding-top: 40px;
        gap: 20px;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 999;
        border-top: 1px solid var(--border-color);
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    }
    
    body.dark-theme .nav-menu {
        background-color: var(--bg-secondary);
    }
    
    .nav-menu.open {
        transform: translateX(0);
    }

    .mobile-nav-badge {
        display: block;
        margin-top: 15px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 8px;
        gap: 6px;
    }

    .logo {
        max-width: calc(100% - 136px);
    }

    .logo-img {
        max-height: 32px;
        max-width: 170px;
    }

    .header-controls {
        gap: 4px;
    }

    .header-controls .badge-50 {
        padding: 2px 6px;
        font-size: 0.62rem;
        gap: 3px;
    }

    .header-controls .badge-50 span {
        font-size: 0.72rem;
    }

    .theme-toggle {
        width: 30px;
        height: 30px;
    }

    .theme-toggle svg {
        width: 16px;
        height: 16px;
    }

    .mobile-nav-toggle {
        padding: 4px;
    }

    .mobile-nav-toggle svg {
        width: 20px;
        height: 20px;
    }

    .passivhaus-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
    }
    
    .form-group-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (max-width: 360px) {
    .header-container {
        padding: 0 6px;
        gap: 4px;
    }

    .logo {
        max-width: calc(100% - 120px);
    }

    .logo-img {
        max-height: 28px;
        max-width: 145px;
    }

    .header-controls .badge-50 {
        font-size: 0.58rem;
        padding: 2px 4px;
    }

    .header-controls .badge-50 span {
        font-size: 0.68rem;
    }
}

/* Pilares de Gran Pico (Estilo Anuncio) */
.pillars-section {
    background-color: var(--primary-blue);
    color: #ffffff;
    padding: 80px 0;
    position: relative;
    z-index: 10;
}

body.dark-theme .pillars-section {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.pillars-header {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 60px;
    align-items: center;
}

@media (max-width: 768px) {
    .pillars-header {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.pillars-main-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
}

.pillars-main-title span {
    color: var(--accent-yellow);
}

.pillars-main-desc {
    font-size: 1.1rem;
    color: #e2e8f0;
    line-height: 1.6;
    padding-left: 20px;
    border-left: 3px solid var(--accent-yellow);
}

body.dark-theme .pillars-main-desc {
    color: var(--text-muted);
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

@media (max-width: 992px) {
    .pillars-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .pillars-grid {
        grid-template-columns: 1fr;
    }
}

.pillar-item-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 30px 20px;
    text-align: center;
    transition: all var(--transition-speed);
}

body.dark-theme .pillar-item-card {
    background: var(--bg-tertiary);
    border-color: var(--border-color);
}

.pillar-item-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent-yellow);
}

body.dark-theme .pillar-item-card:hover {
    border-color: var(--accent-yellow);
}

.pillar-item-icon {
    width: 48px;
    height: 48px;
    color: var(--accent-yellow);
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.pillar-item-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    color: #ffffff;
}

.pillar-item-desc {
    font-size: 0.85rem;
    color: #cbd5e1;
}

body.dark-theme .pillar-item-desc {
    color: var(--text-muted);
}

/* Slogan manuscrito corporativo */
.slogan-handwritten {
    font-family: 'Caveat', cursive;
    font-size: 2.1rem;
    color: var(--accent-yellow);
    display: inline-block;
    margin: 15px 0;
    letter-spacing: 0.5px;
    transform: rotate(-2deg);
    transition: transform var(--transition-speed);
}

.slogan-handwritten:hover {
    transform: rotate(0deg) scale(1.05);
}

/* Tarjeta para el logo en el pie de página oscuro */
.footer-logo-link {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 8px 16px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: background-color var(--transition-speed), transform var(--transition-speed), box-shadow var(--transition-speed);
}

.footer-logo-link:hover {
    background-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.footer-logo-link .logo-img {
    height: 40px !important;
    width: auto;
}
