/* ================================================
   Pro Servicios Generales SPA — Stylesheet
   Colors: #1B3A5C (primary), #2E8B57 (accent), #2C3E50 (text), #F5F7FA (light bg)
   Font: Inter (system fallback)
   ================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #2C3E50;
    background: #fff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

/* --- Utility --- */
.section-eyebrow {
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #2E8B57;
    margin-bottom: 0.5rem;
}
.section-eyebrow--green { color: #2E8B57; }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.9375rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.25s, transform 0.15s, box-shadow 0.25s;
    text-align: center;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
    background: #2E8B57;
    color: #fff;
    padding: 0.875rem 1.75rem;
}
.btn--primary:hover { background: #267a4c; box-shadow: 0 4px 12px rgba(46,139,87,0.3); }

.btn--outline-white {
    background: transparent;
    color: #fff;
    padding: 0.875rem 1.75rem;
    border: 2px solid #fff;
}
.btn--outline-white:hover { background: rgba(255,255,255,0.1); }

.btn--whatsapp {
    background: #25D366;
    color: #fff;
    padding: 0.625rem 1.25rem;
}
.btn--whatsapp:hover { background: #1ebe5a; box-shadow: 0 4px 12px rgba(37,211,102,0.3); }

.btn--lg { padding: 1.125rem 2.25rem; font-size: 0.9375rem; border-radius: 10px; }

/* ================================================
   NAVBAR
   ================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: background 0.3s, box-shadow 0.3s;
}
.navbar--scrolled {
    background: #1B3A5C;
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.navbar__inner {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 3.75rem;
    height: 80px;
}

.navbar__logo {
    display: flex;
    align-items: center;
}
.navbar__logo-img {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: opacity 0.2s;
}
.navbar__logo-img:hover { opacity: 0.9; }

.navbar__nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.navbar__link {
    color: #fff;
    font-size: 0.875rem;
    font-weight: 400;
    transition: opacity 0.2s;
}
.navbar__link:hover { opacity: 0.8; }

.navbar__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.navbar__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}
.navbar__toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.navbar__toggle.active span:nth-child(2) { opacity: 0; }
.navbar__toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ================================================
   HERO
   ================================================ */
.hero {
    position: relative;
    width: 100%;
    height: 700px;
    background: #1B3A5C;
    overflow: hidden;
}
.hero__bg {
    position: absolute;
    inset: 0;
}
.hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
}
.hero__content {
    position: relative;
    z-index: 2;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 3.75rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.hero__block {
    max-width: 620px;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    padding-top: 80px;
}
.hero__title {
    font-size: 3.25rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
}
.hero__subtitle {
    font-size: 1.0625rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.5;
    max-width: 520px;
}
.hero__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.hero__trust {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.25rem 3.75rem;
    display: flex;
    gap: 2.5rem;
    align-items: center;
}
.hero__badge {
    color: rgba(255,255,255,0.8);
    font-size: 0.8125rem;
}

/* ================================================
   ABOUT
   ================================================ */
.about {
    background: #fff;
    padding: 5rem 0;
}
.about__inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 5rem;
    display: flex;
    gap: 3.75rem;
    align-items: stretch;
}
.about__image {
    flex: 1;
    min-width: 0;
    border-radius: 12px;
    overflow: hidden;
}
.about__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.about__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    justify-content: center;
}
.about__heading {
    font-size: 2.375rem;
    font-weight: 800;
    color: #2C3E50;
    line-height: 1.2;
}
.about__text {
    font-size: 0.9375rem;
    color: #6B7B8D;
    line-height: 1.7;
}
.about__stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 0.5rem;
}
.about__stat { display: flex; flex-direction: column; gap: 0.25rem; }
.about__stat-number { font-size: 2rem; font-weight: 800; color: #1B3A5C; }
.about__stat-label { font-size: 0.75rem; color: #6B7B8D; }

/* ================================================
   SERVICES
   ================================================ */
.services {
    background: #F5F7FA;
    padding: 0 0 3rem 0;
}
.services__inner {
    max-width: 1440px;
    margin: 0 auto;
}
.services__header {
    text-align: center;
    padding: 3.75rem 3.75rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.services__heading {
    font-size: 2.5rem;
    font-weight: 800;
    color: #2C3E50;
}
.services__subtitle {
    font-size: 1rem;
    color: #6B7B8D;
    max-width: 600px;
}
.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    padding: 3rem 3.75rem;
}

.service-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #E8ECF1;
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}
.service-card__image {
    height: 240px;
    overflow: hidden;
}
.service-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.service-card:hover .service-card__image img {
    transform: scale(1.04);
}
.service-card__body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}
.service-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(46,139,87,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}
.service-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2C3E50;
}
.service-card__desc {
    font-size: 0.875rem;
    color: #6B7B8D;
    line-height: 1.6;
}
.service-card__benefits {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}
.service-card__benefits li {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #2C3E50;
    padding-left: 1.25rem;
    position: relative;
}
.service-card__benefits li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: #2E8B57;
    font-weight: 700;
}
.service-card__link {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #2E8B57;
    transition: opacity 0.2s;
    margin-top: 0.25rem;
}
.service-card__link:hover { opacity: 0.7; }

/* ================================================
   WHY CHOOSE US
   ================================================ */
.why {
    background: #fff;
    padding: 3.75rem 0 2.5rem;
}
.why__inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 5rem;
}
.why__header {
    text-align: center;
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}
.why__heading {
    font-size: 2.375rem;
    font-weight: 800;
    color: #2C3E50;
}
.why__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.why-card {
    background: #F5F7FA;
    border-radius: 12px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.875rem;
    text-align: center;
}
.why-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #1B3A5C;
    display: flex;
    align-items: center;
    justify-content: center;
}
.why-card__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #2C3E50;
}
.why-card__desc {
    font-size: 0.875rem;
    color: #6B7B8D;
    line-height: 1.6;
}

/* ================================================
   GALLERY
   ================================================ */
.gallery {
    background: #F5F7FA;
    padding: 0 0 3rem 0;
}
.gallery__inner {
    max-width: 1440px;
    margin: 0 auto;
}
.gallery__header {
    text-align: center;
    padding: 3.75rem 3.75rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}
.gallery__heading {
    font-size: 2.375rem;
    font-weight: 800;
    color: #2C3E50;
}
.gallery__subtitle {
    font-size: 0.9375rem;
    color: #6B7B8D;
    max-width: 560px;
}

.gallery__row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    padding: 2.5rem 3.75rem 0;
}
.gallery__row--small {
    grid-template-columns: repeat(2, 1fr);
    padding-top: 1.25rem;
}

.gallery__item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}
.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
}

/* ================================================
   TESTIMONIALS
   ================================================ */
.testimonials {
    background: #fff;
    padding: 3.75rem 0;
}
.testimonials__inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}
.testimonials__heading {
    font-size: 2.375rem;
    font-weight: 800;
    color: #2C3E50;
    text-align: center;
}
.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    width: 100%;
}

.testimonial-card {
    background: #F5F7FA;
    border: 1px solid #E8ECF1;
    border-radius: 12px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.testimonial-card__stars {
    font-size: 1rem;
    color: #F59E0B;
    letter-spacing: 2px;
}
.testimonial-card__text {
    font-size: 0.875rem;
    font-style: italic;
    color: #6B7B8D;
    line-height: 1.7;
}
.testimonial-card__author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: auto;
}
.testimonial-card__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}
.testimonial-card__avatar--blue { background: #1B3A5C; }
.testimonial-card__avatar--green { background: #2E8B57; }
.testimonial-card__avatar--teal { background: #3498DB; }
.testimonial-card__info { display: flex; flex-direction: column; gap: 0.125rem; }
.testimonial-card__info strong { font-size: 0.875rem; color: #2C3E50; }
.testimonial-card__info span { font-size: 0.75rem; color: #6B7B8D; }

/* ================================================
   CTA SECTION
   ================================================ */
.cta-section {
    background: #1B3A5C;
    padding: 5rem 0;
    text-align: center;
}
.cta-section__inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}
.cta-section__heading {
    font-size: 2.625rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
}
.cta-section__text {
    font-size: 1rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
    max-width: 560px;
}
.cta-section__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}
.cta-section__note {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.5);
}

/* ================================================
   CONTACT FORM
   ================================================ */
.contact-form-section {
    background: #F5F7FA;
    padding: 5rem 0;
}
.contact-form-section__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 3.75rem;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
}
.contact-form-section__heading {
    font-size: 2rem;
    font-weight: 800;
    color: #2C3E50;
    margin-bottom: 1rem;
}
.contact-form-section__text {
    font-size: 0.9375rem;
    color: #6B7B8D;
    line-height: 1.6;
    margin-bottom: 2rem;
}
.contact-form-section__details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.contact-detail {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9375rem;
    color: #2C3E50;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.contact-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}
.contact-form__field {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}
.contact-form__field--full {
    grid-column: 1 / -1;
}
.contact-form__field label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #2C3E50;
}
.contact-form__field input,
.contact-form__field select,
.contact-form__field textarea {
    font-family: inherit;
    font-size: 0.9375rem;
    padding: 0.75rem 1rem;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    background: #fff;
    color: #2C3E50;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
}
.contact-form__field input:focus,
.contact-form__field select:focus,
.contact-form__field textarea:focus {
    outline: none;
    border-color: #2E8B57;
    box-shadow: 0 0 0 3px rgba(46,139,87,0.12);
}
.contact-form__field textarea { resize: vertical; min-height: 100px; }
.contact-form__field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7B8D' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }

.contact-form__submit {
    align-self: flex-start;
    width: auto;
}

/* ================================================
   FOOTER
   ================================================ */
.footer {
    background: #0F2740;
    color: #8FA3B8;
}
.footer__inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 3rem 5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}
.footer__top {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
    gap: 2.5rem;
}
.footer__logo {
    margin-bottom: 1rem;
}
.footer__logo-img {
    height: 55px;
    width: auto;
    filter: brightness(0) invert(1);
}
.footer__desc {
    font-size: 0.8125rem;
    line-height: 1.6;
    color: #8FA3B8;
}
.footer__web {
    font-size: 0.8125rem;
    color: #8FA3B8;
    margin-top: 0.75rem;
}
.footer__col-title {
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.footer__links { display: flex; flex-direction: column; gap: 0.75rem; }
.footer__links a {
    font-size: 0.8125rem;
    color: #8FA3B8;
    transition: color 0.2s;
}
.footer__links a:hover { color: #fff; }

.footer__contact { display: flex; flex-direction: column; gap: 0.75rem; }
.footer__contact li {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.8125rem;
}

.footer__divider {
    border: none;
    height: 1px;
    background: #1B3A5C;
}
.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.footer__bottom p { font-size: 0.75rem; color: #5A7A96; }
.footer__social {
    display: flex;
    gap: 1rem;
}
.footer__social a {
    color: #5A7A96;
    transition: color 0.2s;
}
.footer__social a:hover { color: #fff; }

/* ================================================
   WHATSAPP FLOAT
   ================================================ */
.whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37,211,102,0.4);
    z-index: 999;
    transition: transform 0.25s, box-shadow 0.25s;
}
.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(37,211,102,0.5);
}

/* ================================================
   RESPONSIVE — Tablet
   ================================================ */
@media (max-width: 1024px) {
    .navbar__inner { padding: 0 2rem; }
    .hero__content { padding: 0 2rem; }
    .hero__trust { padding: 1.25rem 2rem; gap: 1.5rem; flex-wrap: wrap; }
    .hero__title { font-size: 2.5rem; }

    .about__inner { padding: 0 2.5rem; gap: 2.5rem; }
    .services__grid { grid-template-columns: repeat(2, 1fr); padding: 2rem 2.5rem; }
    .why__grid { grid-template-columns: repeat(2, 1fr); }
    .why__inner { padding: 0 2.5rem; }
    .gallery__row { padding: 2rem 2.5rem 0; }
    .gallery__header { padding: 3rem 2.5rem 0; }
    .testimonials__inner { padding: 0 2.5rem; }
    .testimonials__grid { grid-template-columns: 1fr; }
    .footer__top { grid-template-columns: 1fr 1fr; }
    .footer__inner { padding: 3rem 2.5rem 2rem; }
    .contact-form-section__inner { padding: 0 2.5rem; grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ================================================
   RESPONSIVE — Mobile
   ================================================ */
@media (max-width: 768px) {
    .navbar__inner { padding: 0 1.25rem; height: 64px; }
    .navbar__logo-img { height: 38px; }
    .footer__logo-img { height: 45px; }
    .navbar__toggle { display: flex; }
    .navbar__nav {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: #1B3A5C;
        flex-direction: column;
        padding: 1.5rem;
        gap: 1.25rem;
        transform: translateY(-120%);
        transition: transform 0.3s ease;
        box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    }
    .navbar__nav.open { transform: translateY(0); }
    .navbar__link { font-size: 1rem; }

    .hero { height: auto; min-height: 100vh; min-height: 100svh; }
    .hero__content { padding: 0 1.25rem; }
    .hero__block { padding-top: 100px; padding-bottom: 5rem; }
    .hero__title { font-size: 2rem; }
    .hero__subtitle { font-size: 0.9375rem; }
    .hero__actions { flex-direction: column; }
    .hero__actions .btn { width: 100%; justify-content: center; }
    .hero__trust { position: relative; flex-direction: column; gap: 0.5rem; padding: 1.25rem; align-items: flex-start; }

    .about__inner { flex-direction: column; padding: 0 1.25rem; }
    .about__image { height: 280px; }
    .about__heading { font-size: 1.75rem; }
    .about__stats { gap: 1.5rem; }
    .about__stat-number { font-size: 1.5rem; }

    .services__header { padding: 2.5rem 1.25rem 0; }
    .services__heading { font-size: 1.75rem; }
    .services__grid { grid-template-columns: 1fr; padding: 1.5rem 1.25rem; }

    .why__inner { padding: 0 1.25rem; }
    .why__heading { font-size: 1.75rem; }
    .why__grid { grid-template-columns: 1fr; }

    .gallery__header { padding: 2.5rem 1.25rem 0; }
    .gallery__heading { font-size: 1.75rem; }
    .gallery__row { grid-template-columns: 1fr; padding: 1.5rem 1.25rem 0; }
    .gallery__row--small { grid-template-columns: 1fr; }

    .testimonials__inner { padding: 0 1.25rem; }
    .testimonials__heading { font-size: 1.75rem; }

    .cta-section { padding: 3.5rem 0; }
    .cta-section__heading { font-size: 1.75rem; }
    .cta-section__actions { flex-direction: column; width: 100%; }
    .cta-section__actions .btn { width: 100%; justify-content: center; }

    .contact-form-section__inner { padding: 0 1.25rem; }
    .contact-form__row { grid-template-columns: 1fr; }
    .contact-form__submit { width: 100%; justify-content: center; }

    .footer__inner { padding: 2.5rem 1.25rem 1.5rem; }
    .footer__top { grid-template-columns: 1fr; gap: 2rem; }
    .footer__bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

/* ================================================
   PLACEHOLDER IMAGES (until real ones are added)
   ================================================ */
.hero__bg img,
.about__image img,
.service-card__image img,
.gallery__item img {
    background: linear-gradient(135deg, #1B3A5C 0%, #2E8B57 100%);
    color: transparent;
}
