/* === RESET GLOBAL === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* === BODY === */
body {
    background-color: #fff; 
    color: #0f172a; /* ✅ antes #fff: podía ocultar cosas del header */
    padding: 0;
    position: relative;
    overflow-x: hidden;
}



/* CONTENEDOR DE SECCIONES */
.section {
  max-width: 1600px;
  margin: 10px 20px;
  padding: 80px 40px;
  min-height: 500px;
  background-color: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  border-radius: 16px;
}

/* ESTRUCTURA GRID */
.row {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 40px;
  align-items: center;
}

/* Invertir columnas */
.row.reverse {
  grid-template-columns: 3fr 1fr;
}


/* IMAGEN / PLACEHOLDER */
.image-box {
  background: #eaeaea;
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #666;
  border-radius: 8px;
}


/* CONTENIDO TEXTO */
.content h2 {
    color: #0f172a;
    margin-top: 0;
    font-size: 28px;
    font-weight: 600;
}

.content h3 {

    margin: 10px 0 20px;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #475569;
}

.content p {
  line-height: 1.6;
  margin-bottom: 20px;
  color: #374151;
}


/* BOTÓN */
.content button {
  padding: 12px 24px;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
}

.content button:hover {
  opacity: 0.85;
}

.section:first-of-type {
    margin-top: 20px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.section:last-of-type {
    margin-bottom: 20px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

section button {
    background-color: #0f172a;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .section {
        min-height: auto;
        padding: 60px 20px;
    }

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

/* === FOOTER === */
.footer {
    position: relative;
    background: #fff;
    color: #000;
    padding: 40px 5%;
    font-family: Arial, sans-serif;
    border-top: 3px solid transparent;
    border-image: linear-gradient(to right, #266b58, #31cda8) 1;
}
.footer-row {
    display: grid;
    grid-template-columns: 1fr 1fr 0.8fr;
    gap: 25px;
}
.footer-links h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    position: relative;
}
.footer-links h4::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 40px;
    height: 2px;
    background: #000;
}
.footer-links.small-col h4 {
    font-size: 0.95rem;
    margin-bottom: 12px;
}
.footer-links.small-col .footer-payments h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #000;
    font-weight: 600;
    text-align: center;
}
.footer-links ul { list-style: none; padding: 0; }
.footer-links ul li { margin-bottom: 10px; }
.footer-links ul li a {
    color: #000;
    text-decoration: none;
    transition: 0.3s;
}
.footer-links ul li a:hover {
    color: #266b58;
    padding: 2px 6px;
    border-radius: 4px;
}
.footer-links.small-col .social-link a {
    margin-right: 10px;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: #fff;
    color: #000;
    border-radius: 50%;
    transition: 0.3s ease;
}
.footer-links.small-col .social-link a:hover {
    transform: scale(1.3);
    background: #fff;
    color: #266b58;
}
.footer-payments { margin-top: 20px; text-align: center; }
.payment-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.payment-icons div {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.payment-icons div img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: transform 0.3s;
}
.payment-icons div img:hover { filter: brightness(0) invert(1); }
.footer-bottom {
    text-align: center;
    margin-top: 30px;
    font-size: 0.85rem;
    color: #000;
}
.footer-bottom .direccion {
    margin-bottom: 5px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* === RESPONSIVE GENERAL === */
@media (max-width: 768px) {

    .footer-row {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 25px;
    }
    .footer-links.small-col { margin: 0 auto; }
    .footer-links ul { display: inline-block; }
    .footer-links ul li { margin-bottom: 8px; }
    .footer-payments { margin-top: 15px; }
    .payment-icons { justify-content: center; }
    .footer-links.small-col .social-link a {
        margin: 0 6px;
        margin-bottom: 10px;
    }
    .footer-bottom {
        margin-top: 20px;
        font-size: 0.8rem;
    }
}

/* =========================
   FIX: No pisar el header (proyectos.css)
   ========================= */
header, header *{
  font-family: inherit; /* el header se controla en header_ts.css */
}

header .icons,
header .icons a,
header .icons i{
  display: inline-flex;
  align-items: center;
  visibility: visible;
  opacity: 1;
}

header .social-nav i{
  display: inline-block;
  visibility: visible;
  opacity: 1;
}

/* Evita herencia rara de color desde body */
header a,
header i{
  color: inherit;
}