:root {
    --color-primary: #0f766e;   /* verde/teal */
    --color-secondary: #f97316; /* naranja */
    --color-dark: #0f172a;
    --color-light: #f9fafb;
    --color-muted: #6b7280;
    --max-width: 1100px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--color-dark);
    background: #ffffff;
    line-height: 1.6;
}

/* ---------- LAYOUT GENERALES ---------- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 4rem 0;
}

h1, h2, h3 {
    font-weight: 700;
    color: var(--color-dark);
}

h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
}

h2 + p.section-subtitle {
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--color-muted);
}

/* ---------- HEADER / NAV ---------- */
header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(91, 93, 96, 1);
    backdrop-filter: blur(8px);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #e5e7eb;
    font-weight: 600;
}

.logo-icon {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 2px solid var(--color-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    font-size: 0.95rem;
}

.nav-links a {
    color: #e5e7eb;
    text-decoration: none;
    position: relative;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--color-secondary);
    transition: width 0.2s ease-in-out;
}

.nav-links a:hover::after {
    width: 100%;
}

/* ---------- HERO / INICIO ---------- */
#inicio {
    background: radial-gradient(circle at top left, #0f766e20, transparent 60%);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: center;
}

.hero-title {
    font-size: clamp(2.2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.hero-highlight {
    color: var(--color-primary);
}

.hero-text {
    color: var(--color-muted);
    margin-bottom: 1.5rem;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.badge {
    font-size: 0.8rem;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    color: var(--color-muted);
    background: #ffffffaa;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary {
    background: var(--color-primary);
    color: #f9fafb;
}

.btn-primary:hover {
    opacity: 0.95;
}

.btn-outline {
    background: transparent;
    border: 1px solid #cbd5f5;
    color: var(--color-dark);
}

.btn-outline:hover {
    background: #f3f4f6;
}

.hero-side {
    background: linear-gradient(135deg, #0f766e, #22c55e);
    border-radius: 1.5rem;
    padding: 1.5rem;
    color: #ecfeff;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.3);
}

.hero-side h3 {
    color: #ecfeff;
    margin-bottom: 0.75rem;
}

.hero-side-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.hero-kpi {
    background: #0f172a33;
    border-radius: 1rem;
    padding: 0.75rem;
}

.hero-kpi strong {
    font-size: 1.3rem;
    display: block;
}

.hero-kpi span {
    font-size: 0.8rem;
    color: #ccfbf1;
}

/* ---------- SERVICIOS ---------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.service-card {
    border-radius: 1.25rem;
    border: 1px solid #e5e7eb;
    padding: 1.5rem;
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.03);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.service-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-primary);
    font-weight: 700;
}

.service-card h3 {
    font-size: 1.05rem;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--color-muted);
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 0.5rem;
}

.service-tag {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    background: #f3f4f6;
    color: var(--color-muted);
}

/* ---------- POST VENTA ---------- */
#postventa {
    background: var(--color-light);
}

.postventa-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: Wohnungen;
}

.postventa-list {
    list-style: none;
    display: grid;
    gap: 0.75rem;
}

.postventa-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.postventa-icon {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: #dcfce7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.postventa-highlight {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--color-muted);
}

.postventa-card {
    background: #ffffff;
    border-radius: 1.25rem;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
    font-size: 0.9rem;
}

.postventa-card h3 {
    margin-bottom: 0.75rem;
}

.postventa-pill {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
}

/* ---------- PROYECTOS ---------- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.project-card {
    border-radius: 1.25rem;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.project-image {
    background: linear-gradient(135deg, #0f766e, #22c55e);
    height: 130px;
}

.project-body {
    padding: 1.25rem;
}

.project-body h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.project-meta {
    font-size: 0.8rem;
    color: var(--color-muted);
    margin-bottom: 0.5rem;
}

.project-body p {
    font-size: 0.9rem;
    color: var(--color-muted);
}

/* ---------- CONTACTO ---------- */
#contacto {
    background: #0f172a;
    color: #e5e7eb;
}

#contacto h2 {
    color: #f9fafb;
}

#contacto p.section-subtitle {
    color: #9ca3af;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: flex-start;
}

.contact-details {
    font-size: 0.95rem;
    display: grid;
    gap: 0.75rem;
}

.contact-item {
    display: flex;
    gap: 0.75rem;
}

.contact-label {
    font-weight: 600;
    min-width: 80px;
}

.contact-form {
    background: #020617;
    border-radius: 1.25rem;
    padding: 1.5rem;
    border: 1px solid #1f2937;
}

.contact-form-row {
    display: grid;
    gap: 1rem;
}

.contact-form label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.25rem;
    color: #9ca3af;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border-radius: 0.75rem;
    border: 1px solid #374151;
    background: transparent;
    color: #f9fafb;
    font-size: 0.9rem;
}

.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-secondary);
}

.contact-form button {
    margin-top: 1rem;
}

/* ---------- FOOTER ---------- */
footer {
    background: #020617;
    color: #6b7280;
    font-size: 0.8rem;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem 1.5rem 1.5rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-inner span strong {
    color: #e5e7eb;
}

#contacto h3 {
    color: #ffffff;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
    .hero-grid,
    .postventa-layout,
    .projects-grid,
    .contact-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .services-grid,
    .projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .services-grid,
    .projects-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-side {
        order: -1;
    }
}
