/* ===============================
   BASE
================================= */

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background: #f4f4f4;
  color: #444;
  line-height: 1.6;
}

img {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 92%;
  max-width: 1200px;
  margin: auto;
}

/* ===============================
   TIPOGRAFIA
================================= */

h1, h2, h3, h4 {
  margin: 0;
}

h1 {
  font-size: clamp(28px, 5vw, 48px);
  color: #e31f26;
  font-weight: 700;
}

h2 {
  font-size: clamp(24px, 4vw, 34px);
  color: #e31f26;
  margin-bottom: 30px;
}

h3 {
  color: #f07e19;
}

/* ===============================
   HEADER
================================= */

.header {
  position: relative;
  background: url("images/marmol.jpg") center/cover;
  padding: 50px 0;
}

.header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.65);
}

.header .container {
  position: relative;
  z-index: 2;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  height: 120px;    /* ajusta si quieres más/menos */
  width: auto;
  object-fit: contain;
}

.slogan {
  color: #333;
  font-size: 18px;
}

/* ===============================
   SECCIONES
================================= */

.section {
  padding: clamp(50px, 8vw, 90px) 0;
}

.section.alt {
  background: white;
}

/* ===============================
   IMAGENES ROW
================================= */

.image-row {
  display: grid;
  gap: 15px;
  margin-top: 30px;
}

.image-row.three {
  grid-template-columns: repeat(3,1fr);
}

.image-row.four {
  grid-template-columns: repeat(4,1fr);
}

.image-row img {
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
}

/* ===============================
   SERVICIOS
================================= */

.services-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 20px;
}

.card {
  background: linear-gradient(135deg,#f07e19,#e31f26);
  padding: 25px;
  border-radius: 12px;
  color: white;
  box-shadow: 0 10px 25px rgba(0,0,0,.08);
  transition: .3s;
}

.card h3,
.card p,
.card li {
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.35); /* ayuda a leer sobre gradiente */
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

/* si tienes listas dentro de card */
.card ul {
  margin: 0.25rem 0 0 0;
  padding-left: 1rem;
}

.card:hover {
  transform: translateY(-6px);
}

/* ===============================
   VALORES
================================= */

.values {
  padding-left: 20px;
}

.values li {
  margin-bottom: 12px;
}

/* ===============================
   PROYECTOS
================================= */

.projects {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* dos proyectos lado a lado en PC */
  gap: 50px;
}

/* Mantener estructura interna del .project (imagen + info en 2 columnas) */
.project {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
}

.image-box.portrait {
  position: relative;
  aspect-ratio: 89/124;
  border-radius: 12px;
  overflow: hidden;
}

.image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overlay-top {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(227,31,38,.9);
  color: white;
  padding: 10px 15px;
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
}

/* ===============================
   ALMAGRO
================================= */

.almagro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
}

.almagro-grid ul {
  list-style: none;
  padding: 0;
}

.almagro-grid li::before {
  content: "• ";
  color: #f07e19;
}

/* ===============================
   FOOTER
================================= */

.footer {
  background: #1f1f1f;
  color: white;
  padding: 60px 0 20px;
  width: 100%;
  overflow-x: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 40px;
}

.footer h4 {
  color: #f07e19;
}

.footer p {
  font-size: 14px;
  opacity: .85;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.footer a {
  color: #ffffff;
  text-decoration: none;
}

.footer a:hover {
  color: #f07e19;
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: 13px;
}

/* ===============================
   RESPONSIVE REAL
================================= */

@media (max-width: 1024px) {

  .services-grid {
    grid-template-columns: repeat(2,1fr);
  }

  .project {
    grid-template-columns: 1fr; /* imagen encima, info debajo */
  }

  .projects {
    grid-template-columns: 1fr;
  }

  .almagro-grid {
    grid-template-columns: 1fr;
  }
}

/* Tablet */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 30px;
  }
}

@media (max-width: 768px) {

  .logo-area {
    flex-direction: column;
    text-align: center;
  }

  .logo {
    height: 90px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .image-row.three,
  .image-row.four {
    grid-template-columns: 1fr 1fr;
  }

  h2 {
    font-size: 26px;
  }
}

/* Mobile real */
@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 0 15px;
  }

  .footer-bottom {
    padding: 20px 15px;
  }
}

@media (max-width: 480px) {

  .image-row.three,
  .image-row.four {
    grid-template-columns: 1fr;
  }

  .image-row img {
    height: 200px;
  }
}