/* ============================================================
   estilo.css — Diseño visual de Diser
   ============================================================
   Paleta de colores basada en la identidad de la empresa:
   Verde oscuro:  #2d5016  (color corporativo del logo)
   Verde medio:   #4a7c20
   Verde claro:   #7ab648
   Amarillo sol:  #f5a623  (energía solar)
   Blanco:        #ffffff
   Gris claro:    #f8f9fa
   Gris texto:    #444444
   ============================================================ */

/* ── RESET Y BASE ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 16px;
    color: #444;
    background: #fff;
    line-height: 1.6;
}

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

a { color: #4a7c20; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── HEADER Y NAVEGACIÓN ─────────────────────────────────── */
header {
    background: #2d5016;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    height: 70px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.logo-header {
    height: 48px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    /* Invertimos a blanco porque el logo tiene fondo verde */
}

.logo-texto {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}
.logo-texto span { color: #7ab648; }

nav.topnav { display: flex; gap: 4px; }

nav.topnav a {
    color: rgba(255,255,255,0.85);
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 8px 14px;
    border-radius: 4px;
    text-transform: uppercase;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
}
nav.topnav a:hover,
nav.topnav a[aria-current="page"] {
    background: #7ab648;
    color: #fff;
    text-decoration: none;
}

/* ── HERO (solo index) ───────────────────────────────────── */
.hero {
    background: linear-gradient(135deg, #2d5016 0%, #4a7c20 50%, #7ab648 100%);
    color: #fff;
    padding: 80px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('img/Banner-05.jpg') center/cover no-repeat;
    opacity: 0.12;
}
.hero-content { position: relative; max-width: 800px; margin: 0 auto; }

.hero h1 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    line-height: 1.2;
}
.hero p {
    font-size: 1.15rem;
    opacity: 0.92;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.btn {
    display: inline-block;
    background: #f5a623;
    color: #fff;
    padding: 14px 36px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(245,166,35,0.4); text-decoration: none; color: #fff; }

/* ── CONTENEDOR GENERAL ──────────────────────────────────── */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── SECCIONES ───────────────────────────────────────────── */
section { padding: 64px 0; }
section:nth-child(even) { background: #f8f9fa; }

.section-title {
    text-align: center;
    font-size: 1.9rem;
    font-weight: 700;
    color: #2d5016;
    margin-bottom: 12px;
}
.section-subtitle {
    text-align: center;
    color: #777;
    font-size: 1rem;
    margin-bottom: 48px;
}

/* ── TARJETAS DE SERVICIOS ───────────────────────────────── */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}
.card {
    background: #fff;
    border-radius: 12px;
    padding: 32px 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.25s, box-shadow 0.25s;
    border-top: 4px solid #7ab648;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(0,0,0,0.13); }
.card-icon {
    width: 72px; height: 72px;
    object-fit: contain;
    margin: 0 auto 20px;
}
.card h3 { font-size: 1.15rem; color: #2d5016; margin-bottom: 12px; font-weight: 700; }
.card p  { font-size: 0.93rem; color: #666; line-height: 1.6; }

/* ── GRID DE PROYECTOS ───────────────────────────────────── */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}
.project-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    background: #fff;
}
.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.35s;
}
.project-card:hover img { transform: scale(1.04); }
.project-card .project-info { padding: 20px; }
.project-card h3 { font-size: 1rem; color: #2d5016; margin-bottom: 8px; font-weight: 600; }
.project-card p  { font-size: 0.88rem; color: #666; }

/* ── PÁGINA INTERIOR (subpáginas) ────────────────────────── */
.page-hero {
    background: linear-gradient(120deg, #2d5016, #4a7c20);
    color: #fff;
    padding: 48px 40px;
    text-align: center;
}
.page-hero h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 10px;
}
.page-hero p { opacity: 0.85; font-size: 1.05rem; }

/* Breadcrumbs */
.breadcrumb {
    background: #f0f4ec;
    padding: 10px 40px;
    font-size: 0.85rem;
    color: #777;
}
.breadcrumb ol { list-style: none; display: flex; gap: 8px; max-width: 1100px; margin: 0 auto; }
.breadcrumb li::after { content: '›'; margin-left: 8px; color: #aaa; }
.breadcrumb li:last-child::after { content: ''; }
.breadcrumb a { color: #4a7c20; }

/* Contenido interior */
.page-content { max-width: 860px; margin: 0 auto; padding: 48px 24px; }
.page-content h2 {
    font-size: 1.4rem;
    color: #2d5016;
    margin: 36px 0 14px;
    padding-left: 14px;
    border-left: 4px solid #7ab648;
}
.page-content p { margin-bottom: 18px; line-height: 1.75; color: #555; }
.page-content img {
    border-radius: 10px;
    margin: 24px auto;
    box-shadow: 0 4px 18px rgba(0,0,0,0.1);
}

/* Calculadora electrodomésticos */
.calc-box {
    background: #f0f4ec;
    border-radius: 10px;
    padding: 28px;
    margin: 28px 0;
}
.calc-box label { display: block; font-weight: 600; color: #2d5016; margin-bottom: 10px; }
.calc-box select {
    padding: 10px 16px;
    border: 2px solid #7ab648;
    border-radius: 6px;
    font-size: 1rem;
    background: #fff;
    cursor: pointer;
    width: 100%;
    max-width: 320px;
}
.calc-result {
    margin-top: 16px;
    font-weight: 600;
    color: #2d5016;
    font-size: 1.05rem;
    min-height: 28px;
}

/* Contacto */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}
@media (max-width: 700px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info p { margin-bottom: 16px; display: flex; align-items: flex-start; gap: 12px; }
.contact-info .icon { font-size: 1.3rem; margin-top: 2px; flex-shrink: 0; }
.contact-info a { color: #4a7c20; font-weight: 600; }

/* CTA strip */
.cta-strip {
    background: linear-gradient(135deg, #2d5016, #4a7c20);
    color: #fff;
    text-align: center;
    padding: 56px 24px;
}
.cta-strip h2 { font-size: 1.7rem; margin-bottom: 12px; }
.cta-strip p  { opacity: 0.85; margin-bottom: 28px; font-size: 1.05rem; }

/* ── FOOTER ──────────────────────────────────────────────── */
footer {
    background: #1a2e0a;
    color: rgba(255,255,255,0.7);
    text-align: center;
    padding: 32px 24px;
    font-size: 0.88rem;
}
footer a { color: #7ab648; }
footer strong { color: #fff; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 768px) {
    header { padding: 0 16px; height: auto; flex-wrap: wrap; gap: 8px; padding: 12px 16px; }
    nav.topnav { flex-wrap: wrap; justify-content: center; }
    .hero { padding: 48px 20px; }
    .hero h1 { font-size: 1.6rem; }
    .page-hero { padding: 32px 20px; }
    .page-hero h1 { font-size: 1.5rem; }
}
