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

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #1a1a1a;
    background: #fff;
    line-height: 1.6;
    font-weight: 400;
}

/* ─── NAVEGACIÓN ─── */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 48px;
    transition: background 0.3s, box-shadow 0.3s;
}

#navbar.scrolled {
    background: #fff;
    box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}

#navbar.scrolled .nav-brand,
#navbar.scrolled .nav-links a {
    color: #1a1a1a;
}

.nav-brand {
    color: #fff;
    font-size: 17px;
    font-weight: 500;
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: color 0.3s;
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    transition: color 0.3s, opacity 0.2s;
}

.nav-links a:hover {
    opacity: 0.65;
}

/* ─── HERO ─── */
.hero {
    height: 100vh;
    background:
        linear-gradient(rgba(0,0,0,0.42), rgba(0,0,0,0.42)),
        url('images/hero.jpg') center / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 80px;
}

.hero-content {
    text-align: right;
    max-width: 560px;
}

.hero-content h1 {
    font-size: 72px;
    font-weight: 300;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 14px;
}

.hero-content p {
    color: #fff;
    font-size: 19px;
    font-weight: 300;
    letter-spacing: 0.01em;
}

/* ─── BIENVENIDOS ─── */
.bienvenidos {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.bienvenidos-image {
    min-height: 560px;
    background: url('images/nosotros.jpg') center / cover no-repeat;
    background-color: #b0b0b0;
}

.bienvenidos-text {
    padding: 100px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
}

.bienvenidos-text h2 {
    font-size: 46px;
    font-weight: 700;
    margin-bottom: 28px;
    line-height: 1.15;
}

.bienvenidos-text p {
    font-size: 16px;
    color: #333;
    margin-bottom: 18px;
    line-height: 1.75;
}

.btn-outline {
    display: inline-block;
    margin-top: 12px;
    padding: 13px 36px;
    border: 1.5px solid #1a1a1a;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    border-radius: 50px;
    text-transform: uppercase;
    align-self: flex-start;
    transition: background 0.2s, color 0.2s;
}

.btn-outline:hover {
    background: #1a1a1a;
    color: #fff;
}

/* ─── SERVICIOS ─── */
.servicios {
    padding: 90px 80px 110px;
}

.servicios h2 {
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 64px;
}

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

.servicio-card .servicio-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #c8c8c8 center / cover no-repeat;
    margin-bottom: 28px;
}

.servicio-card.cajaseca .servicio-image {
    background-image: url('images/cajaseca.jpg');
}

.servicio-card.plataforma .servicio-image {
    background-image: url('images/plataforma.jpg');
}

.servicio-card h3 {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 16px;
}

.servicio-card p {
    font-size: 15px;
    color: #333;
    line-height: 1.75;
    margin-bottom: 12px;
}

.servicio-card ul {
    padding-left: 20px;
    margin-top: 4px;
}

.servicio-card li {
    font-size: 15px;
    color: #333;
    line-height: 1.75;
    margin-bottom: 6px;
}

/* ─── CONTACTO ─── */
.contacto {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 720px;
}

.contacto-form {
    padding: 80px 72px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contacto-form h2 {
    font-size: 56px;
    font-weight: 300;
    margin-bottom: 44px;
}

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

.form-group > label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.req {
    font-weight: 400;
    color: #666;
    font-size: 13px;
}

/* Name row: two fields side by side */
.form-row-name {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.field-sublabel {
    display: block;
    font-size: 13px;
    color: #444;
    margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
input[type="tel"] {
    width: 100%;
    padding: 13px 20px;
    border: 1px solid #ccc;
    border-radius: 50px;
    font-size: 15px;
    font-family: inherit;
    color: #1a1a1a;
    outline: none;
    transition: border-color 0.2s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus {
    border-color: #1a1a1a;
}

textarea {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid #ccc;
    border-radius: 14px;
    font-size: 15px;
    font-family: inherit;
    color: #1a1a1a;
    outline: none;
    resize: vertical;
    min-height: 130px;
    transition: border-color 0.2s;
}

textarea:focus {
    border-color: #1a1a1a;
}

.btn-submit {
    display: inline-block;
    background: #1a1a1a;
    color: #fff;
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    font-family: inherit;
    margin-top: 6px;
    transition: opacity 0.2s;
}

.btn-submit:hover {
    opacity: 0.75;
}

.contacto-image {
    background: url('images/contacto.jpg') center / cover no-repeat;
    background-color: #555;
}

/* ─── FOOTER ─── */
footer {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    padding: 72px 80px;
    border-top: 1px solid #e2e2e2;
}

.footer-brand {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.4;
}

.footer-col h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 18px;
    letter-spacing: 0.01em;
}

.footer-col > p {
    font-size: 15px;
    color: #333;
    line-height: 1.65;
}

.contact-email-general {
    font-size: 15px;
    color: #333;
    margin-bottom: 24px;
}

.contact-person {
    margin-bottom: 22px;
}

.contact-person p {
    font-size: 15px;
    color: #333;
    line-height: 1.55;
}

.contact-person .contact-name {
    font-weight: 500;
    color: #1a1a1a;
}

.phone-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.whatsapp-btn {
    color: #25D366;
    display: flex;
    align-items: center;
    transition: opacity 0.2s;
}

.whatsapp-btn:hover {
    opacity: 0.7;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
    #navbar {
        padding: 20px 24px;
    }

    .nav-links {
        gap: 24px;
    }

    .hero {
        padding: 0 32px;
        justify-content: center;
    }

    .hero-content {
        text-align: center;
    }

    .hero-content h1 {
        font-size: 44px;
    }

    .bienvenidos {
        grid-template-columns: 1fr;
    }

    .bienvenidos-image {
        min-height: 300px;
    }

    .bienvenidos-text {
        padding: 60px 32px;
    }

    .bienvenidos-text h2 {
        font-size: 34px;
    }

    .servicios {
        padding: 60px 32px 80px;
    }

    .servicios h2 {
        font-size: 38px;
    }

    .servicios-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .contacto {
        grid-template-columns: 1fr;
    }

    .contacto-form {
        padding: 60px 32px;
    }

    .contacto-form h2 {
        font-size: 40px;
    }

    .contacto-image {
        min-height: 300px;
    }

    footer {
        grid-template-columns: 1fr;
        padding: 48px 32px;
        gap: 32px;
    }
}
