/* -----------------------------------
   RESET BÁSICO
----------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Open Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #506064;
    background-color: #ffffff;
}

/* -----------------------------------
   VARIABLES
----------------------------------- */
:root {
    --custos-green: #009688;      /* verde/teal principal */
    --custos-green-dark: #00796b;
    --custos-green-soft: #e0f4f2;
    --custos-gray-soft: #f4f5f6;
    --custos-gray-footer: #f0f0f0;
    --custos-gray-dark: #3d4548;
    --container-width: 1160px;
    --overlay-opacity: 0.50; /* final tweak: slightly lighter overlay */
}

/* -----------------------------------
   UTILIDADES GENERALES
----------------------------------- */

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.section-kicker {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: #9aa4a7;
    margin: 0 0 0.4rem;
    font-family: "Montserrat", sans-serif;
}

.section-kicker.center {
    text-align: center;
}

.section-title {
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 1.7rem;
    color: #374347;
    margin: 0 0 1.3rem;
}

.section-title.center {
    text-align: center;
}

.section-text {
    font-size: 0.95rem;
    line-height: 1.8;
}

/* Botón principal */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2.6rem;
    border-radius: 999px;
    border: none;
    background: var(--custos-green);
    color: #ffffff;
    text-transform: uppercase;
    font-family: "Montserrat", sans-serif;
    letter-spacing: 0.2em;
    font-size: 0.8rem;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
    transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.btn-primary:hover {
    background: var(--custos-green-dark);
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
}

/* -----------------------------------
   HEADER
----------------------------------- */

.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 74px;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid #e3e6e8;
    z-index: 100;
    backdrop-filter: blur(12px);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    border: 2px solid var(--custos-green);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--custos-green);
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-name {
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    letter-spacing: 0.18em;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: #3f4b4f;
}

.logo-tagline {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #9aa4a7;
}

.main-menu {
    display: flex;
    gap: 1.9rem;
    font-size: 0.83rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-family: "Montserrat", sans-serif;
}

.main-menu a {
    text-decoration: none;
    color: #7e8a8d;
    position: relative;
    padding-bottom: 0.2rem;
}

.main-menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background: var(--custos-green);
    transition: width 0.2s ease;
}

.main-menu a:hover::after,
.main-menu a.active::after {
    width: 100%;
}

/* -----------------------------------
   HERO
----------------------------------- */

.hero {
    margin-top: 74px; /* altura del header */
    position: relative;
    min-height: 520px;
    background-color: #eef0f2;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(90deg, rgba(0, 150, 136, 0.62), rgba(0, 150, 136, 0.25)),
        url("img/hero-industrial.jpg"); /* REEMPLAZA POR TU IMAGEN */
    background-size: cover;
    background-position: center;
    filter: saturate(110%) contrast(102%);
    z-index: -2;
}

/* capa blanca translúcida en la parte central como en el mockup */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(255, 255, 255, 0.92) 45%,
        rgba(255, 255, 255, 0.2) 100%
    );
    z-index: -1;
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: center;
    gap: 3.5rem;
    padding: 4.3rem 0 4.6rem;
}

.hero-copy {
    max-width: 520px;
}

.hero-subtitle {
    font-size: 0.8rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #9aa4a7;
    margin: 0 0 0.6rem;
    font-family: "Montserrat", sans-serif;
}

.hero-title {
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 2.4rem;
    line-height: 1.1;
    margin: 0 0 1.4rem;
    color: #374347;
}

.hero-title span {
    color: var(--custos-green-dark);
}

.hero-text {
    font-size: 0.98rem;
    line-height: 1.9;
    margin: 0 0 1.9rem;
}

.hero-photo {
    width: 100%;
    min-height: 320px;
    background-image: url("img/hero-executive.jpg"); /* REEMPLAZA POR TU IMAGEN */
    background-size: cover;
    background-position: center;
    border-radius: 2px;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.25);
}

/* Hero slideshow slides (stacked, crossfade) */
.hero-photo {
    position: relative; /* allow absolutely positioned slides */
    overflow: hidden;
}
.hero-photo .hero-slides { position: absolute; inset: 0; }
.hero-photo .hero-slides .slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 900ms cubic-bezier(.22,.9,.35,1), transform 900ms ease;
    will-change: opacity, transform;
}
.hero-photo .hero-slides .slide.active {
    opacity: 1;
    transform: scale(1);
}

/* pause cursor indicator when slideshow is interactive */
.hero-photo:hover { cursor: default; }

/* -----------------------------------
   NOSOTROS
----------------------------------- */

.about {
    background: #ffffff;
}

.about-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.6fr);
    gap: 3rem;
    align-items: center;
}

.about-photo {
    width: 100%;
    padding-bottom: 70%;
    background-image: url("img/about-photo.webp"); /* REEMPLAZA POR TU IMAGEN */
    background-size: cover;
    background-position: center top;
    border-radius: 2px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.about-content .section-title {
    margin-top: 0.3rem;
}

.about-content .section-text {
    margin-bottom: 1.2rem;
}

.about-list {
    list-style: none;
    margin: 0 0 1.8rem;
    padding: 0;
    columns: 2;
    column-gap: 2rem;
    font-size: 0.9rem;
}

.about-list li {
    margin-bottom: 0.4rem;
    position: relative;
    padding-left: 1.3rem;
}

.about-list li::before {
    content: "▸";
    color: var(--custos-green-dark);
    position: absolute;
    left: 0;
    top: 0;
}

/* Quote / testimonio */
.about-quote {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.about-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-image: url("img/Adriana Higuera.png"); /* REEMPLAZA POR TU IMAGEN */
    background-size: cover;
    background-position: center;
    border: 2px solid var(--custos-green);
}

.about-quote-text p {
    margin: 0 0 0.2rem;
    font-size: 0.9rem;
    font-style: italic;
}

.about-quote-name {
    display: block;
    font-size: 0.8rem;
    color: #9aa4a7;
}

/* -----------------------------------
   SERVICIOS
----------------------------------- */

.services {
    background: var(--custos-gray-soft);
}

.services-grid {
    margin-top: 2.7rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.6rem;
}

.service-card {
    background: #ffffff;
    border-radius: 2px;
    padding: 1.8rem 1.5rem;
    text-align: left;
    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.07);
    font-size: 0.9rem;
}

.service-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--custos-green-soft);
    margin-bottom: 1.1rem;
}

.service-card h3 {
    font-family: "Montserrat", sans-serif;
    font-size: 0.96rem;
    margin: 0 0 0.6rem;
    color: #374347;
}

/* -----------------------------------
   PROYECTO DESTACADO / ENFOQUE
----------------------------------- */

.featured {
    background: #ffffff;
    padding-top: 0;
}

.featured-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.4fr);
    gap: 3rem;
    align-items: center;
}

.featured-image-wrap {
    position: relative;
}

.featured-image {
    width: 100%;
    padding-bottom: 62%;
    background-image: url("img/manejo-de-inversiones.webp"); /* imagen destacada */
    background-size: cover;
    background-position: center;
    border-radius: 2px;
}

.featured-badge {
    position: absolute;
    left: 1.1rem;
    bottom: 1.1rem;
    background: #ffffff;
    padding: 0.7rem 1.6rem;
    border-radius: 999px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-family: "Montserrat", sans-serif;
    color: var(--custos-green-dark);
}

.featured-card {
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.10);
    padding: 2.3rem 2.5rem;
    border-radius: 2px;
}

/* -----------------------------------
   CLIENTES / LOGOS
----------------------------------- */

.clients {
    background: #242b30;
    padding: 2.8rem 0;
}

.clients-wrap {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.clients-track-wrapper {
    overflow: hidden; /* ocultar desbordamiento visible */
    flex: 1 1 auto;
}
.clients-inner {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 0.6rem 0.2rem;
    white-space: nowrap;
    flex-wrap: nowrap;          /* asegurar una sola fila */
    min-width: max-content;    /* que el contenido pueda crecer y permitir scroll */
}
.clients-control {
    display: none; /* botones ocultos según petición */
}
.clients-prev { margin-right: 0.4rem; }
.clients-next { margin-left: 0.4rem; }

.client-logo {
    color: #ffffff;
    font-family: "Montserrat", sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 0.8rem 1.4rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    flex: 0 0 auto; /* evitar que los items se encojan o envuelvan */
}

/* -----------------------------------
   PORTAFOLIO
----------------------------------- */

.portfolio-title {
    background: var(--custos-green);
    padding: 1.8rem 0;
    text-align: center;
}

.portfolio-title h2 {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.9rem;
    color: #ffffff;
    font-family: "Montserrat", sans-serif;
}

.portfolio {
    background: #ffffff;
    padding-top: 3.2rem;
}

.portfolio-track-wrapper {
    overflow: hidden;
}

/* Pista horizontal para el portafolio */
.portfolio-inner {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 0.8rem 0;
    white-space: nowrap;
    flex-wrap: nowrap;
    min-width: max-content;
}

/* Cada item es un rectángulo de imagen dentro del carousel */

.portfolio-item {
    flex: 0 0 30%;
    max-width: 420px;
    aspect-ratio: 1 / 1; /* asegura cuadrado en navegadores modernos */
    height: auto; /* eliminar padding-bottom hack */
    background-size: cover;
    background-position: center;
    border-radius: 2px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.portfolio-caption {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    align-items: flex-start;
}
.portfolio-caption .card-title {
    display: inline-block;
    background: rgba(0,0,0,0.6);
    padding: 0.45rem 0.9rem;
    border-radius: 3px;
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
    margin-bottom: 0.2rem;
}
.portfolio-caption .portfolio-desc {
    font-size: 0.85rem;
    line-height: 1.15;
    color: rgba(255,255,255,0.95);
    max-height: 5.2rem;
    overflow: hidden;
}

/* uniform lines displayed for each project (no title) */
.portfolio-caption .portfolio-line {
    font-size: 0.95rem;
    line-height: 1.2;
    color: rgba(255,255,255,0.95);
    display: block;
    max-height: calc(1.2em * 5); /* show up to 5 lines */
    overflow: hidden;
    white-space: normal; /* allow wrapping */
    overflow-wrap: anywhere; /* break long words if needed */
    word-break: break-word;
    margin: 0;
}

.portfolio-caption { gap: 0.25rem; }

/* visual weight for the project name line */
.portfolio-caption .portfolio-line.portfolio-project {
    font-weight: 700;
    margin-bottom: 0.15rem;
}

/* Overlay with full info */
.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,var(--overlay-opacity)) 0%, rgba(0,0,0,var(--overlay-opacity)) 100%);
    color: #fff;
    padding: 1rem;
    overflow: auto;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 260ms cubic-bezier(.22,.9,.35,1), opacity 260ms cubic-bezier(.22,.9,.35,1);
    backdrop-filter: blur(6px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* On desktop show overlay on hover */
@media (hover: hover) and (pointer: fine) {
    .portfolio-item:hover .portfolio-overlay {
        transform: translateY(0);
        opacity: 1;
    }
    /* fade the small caption when overlay is visible to avoid duplicate text */
    .portfolio-item:hover .portfolio-caption { opacity: 0; pointer-events: none; }
}

/* On mobile, toggle via class */
.portfolio-item.show-tooltip .portfolio-overlay {
    transform: translateY(0);
    opacity: 1;
}
/* hide caption when tooltip is shown on mobile (smooth fade) */
.portfolio-item.show-tooltip .portfolio-caption { opacity: 0; pointer-events: none; }

.portfolio-name {
    font-weight: 600;
    color: #fff;
    text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

/* smooth caption transitions so the overlay feels less abrupt */
.portfolio-caption {
    transition: opacity 260ms cubic-bezier(.22,.9,.35,1);
}

.portfolio-overlay .portfolio-line { margin-bottom: 0.45rem; }
/* ensure overlay lines wrap correctly */
.portfolio-overlay .portfolio-line{
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
}

/* evitar que el título haga wrap fuera del área; truncar con ellipsis */
.portfolio-caption .card-title{
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* responsive: reducir aún más el título en pantallas pequeñas */
@media (max-width: 768px) {
    .portfolio-caption .card-title { font-size: 0.88rem; }
    .portfolio-caption .portfolio-desc { font-size: 0.78rem; max-height: 4.2rem; }
    /* mobile/tablet: reduce portfolio lines slightly for readability */
    .portfolio-caption .portfolio-line,
    .portfolio-overlay .portfolio-line { font-size: 0.86rem; }
}

@media (max-width: 520px) {
    .portfolio-caption .card-title { font-size: 0.82rem; }
    .portfolio-caption .portfolio-desc { font-size: 0.75rem; max-height: 3.6rem; }
    /* small mobile: smaller lines to avoid overflow */
    .portfolio-caption .portfolio-line,
    .portfolio-overlay .portfolio-line { font-size: 0.78rem; }
    .portfolio-name { font-size: 0.82rem; }
}

/* Imágenes de ejemplo (pon tus propias rutas) */
.portfolio-item.p1 { background-image: url("img/port-1.jpg"); }
.portfolio-item.p2 { background-image: url("img/port-2.jpg"); }
.portfolio-item.p3 { background-image: url("img/port-3.jpg"); }
.portfolio-item.p4 { background-image: url("img/port-4.jpg"); }
.portfolio-item.p5 { background-image: url("img/port-5.jpg"); }
.portfolio-item.p6 { background-image: url("img/port-6.jpg"); }
.portfolio-item.p7 { background-image: url("img/port-7.jpg"); }
.portfolio-item.p8 { background-image: url("img/port-8.jpg"); }

/* Leyenda sobre cada imagen del portafolio */
.portfolio-item .portfolio-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.8rem;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.75) 100%);
    color: #ffffff;
    font-size: 0.95rem;
    font-family: "Open Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.caption-meta{
    display: flex;
    gap: 0.6rem;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.95);
    margin: 0.25rem 0;
}

/* allow title to wrap up to 2 lines but clamp visually */
.portfolio-caption .card-title{
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
    text-overflow: ellipsis;
}

/* reduce sizes on small screens */
@media (max-width: 768px) {
    .portfolio-caption .card-title { font-size: 0.9rem; }
    .caption-meta{ font-size: 0.72rem; }
}

/* Mobile hero adjustments: stack copy and photo, reduce paddings and font sizes for better fit */
@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        padding: 2rem 0 2.4rem;
        align-items: start;
    }
    .hero-photo {
        order: 2;
        min-height: 220px;
        box-shadow: none;
        border-radius: 8px;
    }
    /* allow the hero copy to use full width on mobile (avoid side offset) */
    .hero-copy { order: 1; max-width: none; width: 100%; padding: 0 0.75rem; }
    .hero-title { font-size: 1.6rem; line-height: 1.05; }
    .hero-subtitle { font-size: 0.72rem; }
    .hero-text { font-size: 0.92rem; line-height: 1.6; }
    .btn-primary { padding: 0.6rem 1.4rem; font-size: 0.78rem; }
    .hero-photo .hero-slides .slide { background-position: center center; }
}

@media (max-width: 420px) {
    .hero-inner { padding: 1.4rem 0 1.6rem; }
    .hero-title { font-size: 1.35rem; }
    .hero-text { font-size: 0.86rem; }
    .hero-photo { min-height: 180px; }
    .btn-primary { padding: 0.56rem 1.1rem; font-size: 0.72rem; }
}

/* About quote avatar: mobile adjustments to avoid vertical misalignment */
@media (max-width: 520px) {
    .about-quote {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
    }
    .about-avatar {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        flex: 0 0 auto;
        border-width: 2px;
    }
    .about-quote-text {
        margin-left: 0;
    }
    .about-quote-text p {
        font-size: 0.95rem;
        margin-bottom: 0.2rem;
    }
    .about-quote-name {
        font-size: 0.78rem;
    }
}

.portfolio-item { position: relative; overflow: hidden; }

/* -----------------------------------
   CONTACTO + FORM
----------------------------------- */

.contact {
    background: var(--custos-green-soft);
}

.contact-header {
    text-align: left;
    margin-bottom: 2.1rem;
}

.contact-kicker {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: #7c8a8d;
    margin: 0 0 0.3rem;
    font-family: "Montserrat", sans-serif;
}

.contact-title {
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 1.5rem;
    margin: 0;
    color: #304044;
}

.contact-form {
    background: #ffffff;
    padding: 2.2rem 2.3rem 2.6rem;
    border-radius: 2px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    font-size: 0.9rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
    margin-bottom: 1.3rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.form-group.full {
    grid-column: 1 / -1;
}

label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #7e8a8d;
    font-family: "Montserrat", sans-serif;
}

input,
textarea {
    border: 1px solid #d3dde0;
    border-radius: 2px;
    padding: 0.55rem 0.6rem;
    font-family: inherit;
    font-size: 0.9rem;
    color: #405054;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
textarea:focus {
    border-color: var(--custos-green);
    box-shadow: 0 0 0 1px rgba(0, 150, 136, 0.35);
}

textarea {
    resize: vertical;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.3rem;
}

/* -----------------------------------
   MAPA
----------------------------------- */

.map-section {
    height: 260px;
    background: #d8dde0;
    position: relative;
}

.map-overlay {
    position: absolute;
    inset: 0;
    background-image: url("img/map.jpg"); /* REEMPLAZA POR TU MAPA */
    background-size: cover;
    background-position: center;
    opacity: 0.6;
}

/* -----------------------------------
   FOOTER
----------------------------------- */

.footer {
    margin-top: 0;
}

.footer-top {
    background: var(--custos-gray-footer);
    padding: 2.6rem 0 2rem;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2.1fr 1.2fr 1.2fr 1fr;
    gap: 2.4rem;
    font-size: 0.85rem;
}

.footer-logo .logo-mark {
    background: var(--custos-green);
    color: #ffffff;
}

.footer-text {
    margin-top: 1rem;
    line-height: 1.7;
}

.footer-column h4 {
    font-family: "Montserrat", sans-serif;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin: 0 0 0.7rem;
    color: #5b666a;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
    line-height: 1.9;
}

.footer-list a {
    color: inherit;
    text-decoration: none;
}

.footer-list a:hover {
    text-decoration: underline;
}

.footer-social {
    display: flex;
    gap: 0.6rem;
}

.footer-social a {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #9aa4a7;
    font-size: 0.7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #5b666a;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.footer-social a:hover {
    background: var(--custos-green);
    border-color: var(--custos-green);
    color: #ffffff;
}

.footer-bottom {
    background: #dedfe0;
    padding: 0.8rem 0;
    text-align: center;
    font-size: 0.78rem;
    color: #7c8a8d;
}

/* -----------------------------------
   RESPONSIVE
----------------------------------- */

@media (max-width: 1100px) {
    .hero-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-photo {
        max-width: 380px;
        justify-self: center;
        margin-top: 2rem;
    }

    .about-inner {
        grid-template-columns: 1fr;
    }

    .featured-inner {
        grid-template-columns: 1fr;
    }

    .featured-card {
        margin-top: 2rem;
    }

    .services-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .portfolio-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .footer-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .main-menu {
        display: none; /* versión simple sin menú móvil */
    }

    .section {
        padding: 3.5rem 0;
    }

    .hero-inner {
        padding: 3.2rem 0 3.5rem;
    }

    /* Mobile hero adjustments */
    .hero {
        min-height: 420px;
        padding-bottom: 1rem;
    }
    .hero-inner {
        gap: 1.2rem;
        padding: 2rem 0;
    }
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.08;
    }
    .hero-text {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    .hero-photo {
        min-height: 220px;
        box-shadow: 0 10px 26px rgba(0,0,0,0.18);
    }
    .hero-subtitle { font-size: 0.75rem; }

    /* Featured / About adjustments for mobile */
    .featured-image { padding-bottom: 56%; }
    .about-photo { padding-bottom: 56%; }

    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .services-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2rem;
    }

    /* Small mobile tweaks */
    .hero {
        min-height: 320px;
    }
    .hero-inner { padding: 1.4rem 0; gap: 0.9rem; }
    .hero-title { font-size: 1.6rem; }
    .hero-text { font-size: 0.88rem; }
    .hero-photo { min-height: 180px; }
    .featured-image { padding-bottom: 62%; }
}
