:root {
    --primary-color: #28605F;
    --white: #ffffff;
    --black: #000000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
  font-family: 'RomanS';
  src: url('fonts/RomanS.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

html, body {
    /* Evita scroll horizontal no deseado provocado por elementos
       que se desbordan del viewport en pantallas chicas */
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Calibri', Arial, sans-serif;
    font-weight: 300;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Raleway ligth', 'Calibri', Arial, sans-serif, 'Roboto';
  font-weight: 400;
}

/* ===== HEADER ===== */

.header {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Calibri', Arial, sans-serif;
    font-size: 19px;
}

.logo {
    height: 70px;
    width: 70px;
    display: flex;
    align-items: center;
}

.logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: rgba(40, 96, 95, 0.7);
}

.hamburger {
    display: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 2rem;
        gap: 2rem;
        transition: right 0.3s ease-in-out;
        z-index: 1000;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
    }
}


/* Carousel Styles */
.carousel {
    margin-top: 80px;
    width: 100%;
    /* Resta la altura fija de la navbar (80px) para que el carrusel
       entre completo en el viewport sin necesidad de scroll */
    height: calc(100vh - 80px);
    position: relative;
    overflow: hidden;
}

.carousel-container {
    width: 100%;
    height: calc(100vh - 80px);
    position: relative;
}

/* Capa oscura sutil para dar contraste al texto superpuesto */
.carousel-container::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.55) 0%,
        rgba(0, 0, 0, 0.22) 38%,
        rgba(0, 0, 0, 0.05) 65%,
        rgba(0, 0, 0, 0.15) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.carousel-caption {
    position: absolute;
    left: clamp(1.5rem, 5vw, 4rem);
    bottom: clamp(2.5rem, 10vh, 6rem);
    z-index: 2;
    max-width: 640px;
    color: #fff;
}

.carousel-caption__title {
    font-family: 'Raleway ligth', 'Calibri', Arial, sans-serif;
    font-weight: 200;
    font-size: clamp(1.6rem, 3.6vw, 2.8rem);
    letter-spacing: 0.06em;
    line-height: 1.25;
    margin: 0 0 0.75rem;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.carousel-caption__subtitle {
    font-weight: 300;
    font-size: clamp(0.95rem, 1.3vw, 1.15rem);
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.92);
    margin: 0;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

@media (max-width: 680px) {
    .carousel-caption {
        left: 1.25rem;
        right: 1.25rem;
        bottom: 2rem;
        max-width: none;
    }
}

.carousel-slide {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    object-fit: cover;
}

.carousel-slide img.active {
    opacity: 1;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    padding: 0;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    z-index: 3;
    transition: background 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
    opacity: 0.75;
}

.carousel-button:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.6);
    opacity: 1;
}

.prev {
    left: 1rem;
}

.next {
    right: 1rem;
}

/* --- Carrusel responsive (mobile) --- */
@media (max-width: 768px) {
    .carousel {
        height: 60vh;
        min-height: 50vh;
    }

    .carousel-container {
        height: 100%;
    }

    .carousel-caption {
        left: 1.25rem;
        right: 1.25rem;
        bottom: 1.5rem;
        max-width: none;
    }

    .carousel-caption__title {
        font-size: clamp(1.3rem, 5.5vw, 1.5rem);
        margin-bottom: 0.5rem;
    }

    .carousel-caption__subtitle {
        font-size: 0.9rem;
    }

    .carousel-button {
        width: 2.1rem;
        height: 2.1rem;
        font-size: 0.9rem;
        top: 42%;
    }
}


/* === SECCION ESTUDIO === */



/* Sobre nosotros */
/* ===== Split 50/50: Sobre nosotros ===== */
.split-about {
  display: grid;
  grid-template-columns: 48% 52%;
  gap: 2rem;
  min-height: unset; /* <- elimina la altura mínima forzada */
  background: #fff;
  align-items: center; /* centra verticalmente el contenido */
  padding: 0rem 0; /* margen visual razonable arriba y abajo */
}

.split-about__text {
  padding: clamp(2rem, 6vw, 5rem);
  display:flex;
  flex-direction:column;

  gap:1.25rem; 
}

.split-about__eyebrow{
  letter-spacing:.2em;
  font-size:.9rem;
  color:#777;
}

/* Base del título */
.split-about__title {
  font-family: 'Raleway ligth', 'Calibri', Arial, sans-serif;
  font-weight: 100; /* ultra fino */
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: 0.08em;
  line-height: 1.1;
  color: #222;
}


.split-about__title .amp{
  font-weight:200;
  color: var(--primary-color);
}

.split-about__lead{
  max-width: 60ch;
  color:#444;
  font-size: clamp(1rem, 1.3vw, 1.20rem);
  font-weight: 300;
}

.split-about__cta {
  position: static;
  margin-top: 1.25rem;      /* lo subís/bajás con este valor */
  align-self: flex-end;   /* alineado a la izquierda (o flex-end si lo querés a la derecha) */
  display:inline-flex;
  align-items:center;
  gap:.3rem;
  text-decoration:none;
  font-weight:400;
  letter-spacing:.06em;
  padding:.6rem 1rem;
  color: var(--primary-color);
  transition: transform .2s ease, background .2s ease, color .2s ease;
  justify-content: flex-end;
  text-align: center;
  width: 100%;
}



.split-about__media{
  max-height: 800px;
  overflow:hidden;
}

.split-about__media img{

  height: 100%; /* probá con 80%, 70%, etc. */
  width: 100%;
  object-fit: cover;
  object-position: center center;
}

.split-about__title--vermas{
  font-family: 'Raleway ligth', 'Calibri', Arial, sans-serif;
  font-weight: 400; /* ultra fino */
  font-size: 30px;
  letter-spacing: 0.08em;
  line-height: 1.1;
  color: #222;
  justify-content: center;
  text-align: center;
}

/* --- Responsive --- */
@media (max-width: 992px){
  .split-about{
    grid-template-columns: 1fr;
    min-height: unset;
  }
  .split-about__media{
    order:2;             /* imagen debajo del texto */
    height: 48vh;        /* altura visual en mobile */
  }
  .split-about__cta{
    margin-top: 1rem;
    align-self: flex-start;
  }
}



/* Estudio Styles */
.estudio {
    padding: 4rem 2rem;
    background-color: var(--white);
}

.estudio-container {
    max-width: 1200px;
    margin: 0 auto;
}

.estudio-header {
    text-align: center;
    margin-bottom: 3rem;
}

.estudio-header h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.estudio-intro {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    color: #333;
}

.estudio-contacto {
    background-color: #fff;
    text-align: center;
    padding: 6rem 2rem;
    letter-spacing: 0.2rem;
}

.estudio-contacto h3 {
    font-family: 'Montserrat', sans-serif; /* o la fuente que uses */
    font-weight: 100; /* súper fino */
    font-size: 2.2rem;
    color: #3d3d3d;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
}

.estudio-contacto p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: #333;
    letter-spacing: 0.15rem;
    text-transform: uppercase;
    margin-bottom: 2.5rem;
}

.btn-contacto {
    background-color: #40655d; /* verde similar al de tu diseño */
    color: #fff;
    padding: 0.9rem 2.5rem;
    text-decoration: none;
    font-size: 1rem;
    border-radius: 6px;
    transition: background-color 0.3s ease;
    display: inline-block;
}

.btn-contacto:hover {
    background-color: #2f4f4a;
}


.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
}

/* Ajustes para móviles */
@media (max-width: 768px) {
    .estudio-header h2 {
        font-size: 2rem;
    }

    .estudio-filosofia h3,
    .estudio-trayectoria h3,
    .estudio-contacto h3 {
        font-size: 1.6rem;
    }
}


/* --- SERVICIOS --- */

.servicios-descripcion {
  font-weight: 250;
  font-size: 1.25rem;
  line-height: 1.4; /* menos espacio vertical */
  letter-spacing: 0.01em; /* menos separación horizontal */
  color: #333;
  max-width: 700px;
  margin: 0 auto 2rem auto; /* centrado y con margen inferior */
  text-align: center;
}


/* ===== Servicios – Card Concept ===== */
.servicios-conceptual {
  padding: 8rem 0;
  background: #ffffff;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.section-title-concept {
  font-size: 3.5rem;
  text-align: center;
  letter-spacing: 0.3rem; /* un poco menos espaciado */
  color: var(--black);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  font-family: 'Raleway ligth', 'Calibri'; /* fuente más moderna y fina */
  font-weight: 100; /* más delgada */
}


.grid-conceptual {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  padding: 0 2rem;
  box-sizing: border-box;
}

/* ---- Tarjetas ---- */
.card-concept {
  position: relative;
  height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;   /* centrado vertical del contenido */
  align-items: flex-start;
  padding: 3rem;
  box-sizing: border-box;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  isolation: isolate;
  transition: transform .4s cubic-bezier(.25,.46,.45,.94);
}

/* Overlay (antes estaba en el linear-gradient inline) */
.card-concept::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 5, 0.64);
  z-index: -1;                   /* queda debajo del contenido pero sobre la imagen */
}

/* La tarjeta de Dirección y ejecución de obra usa un fondo más claro:
   overlay reforzado para que el texto blanco no se encandile */
.card--reformas::before {
  background: rgba(0, 0, 0, 0.72);
}

.card-concept:hover { transform: translateY(-15px); }

.card-concept h3 {
  color: #fff;
  font-size: clamp(1.8rem, 2.4vw, 2.8rem);  /* más grande y responsive */
  margin-bottom: 1.1rem;
  line-height: 1.2;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: .02em;
  text-shadow: 0 2px 8px rgba(0,0,0,.25);   /* legibilidad */
}

.concept-text {
  padding-left: 0;           /* quitamos sangría */
  max-width: 42ch;           /* ancho de lectura cómodo */

}

.concept-text p {
  color: #fff;
  font-size: clamp(1rem, 1.15vw, 1.1rem);
  line-height: 1.8;
  margin: 0;
  text-shadow: 0 1px 6px rgba(0,0,0,.25);
}


/* ---- Modificadores de imagen (reemplazan el style inline) ---- */
.card--residencial { background-image: url("img/Servicios/imagen\ 1\ proyecto.jpg"); }
.card--interiores  { background-image: url("img/Servicios/imagen\ 2\ interiorismo.jpg"); }
.card--reformas    { background-image: url("img/Servicios/imagen\ 3\ direccion.jpg"); }

/* ---- Responsive ---- */
@media (max-width: 1100px){
  .grid-conceptual { grid-template-columns: repeat(2, 1fr); }
  .card-concept { height: 520px; }
}

@media (max-width: 680px){
  .grid-conceptual { grid-template-columns: 1fr; padding: 0 1.5rem; }
  .card-concept { height: 480px; padding: 2rem; }
  .section-title-concept { letter-spacing: .3rem; font-size: 2.2rem; }
}


@media (max-width: 860px) {
    .hamburger {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        padding: 1rem 0;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .estudio-tipos {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .separator {
        display: none;
    }

    .card-concept {
        height: 500px;
        padding: 2rem;
    }

    .card-concept h3 {
        font-size: 1.8rem;
    }

    .grid-conceptual {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 480px) {
    .card-concept {
        height: auto; /* dejar altura libre */
        min-height: 300px;
        padding: 1.2rem;
    }

    .card-concept h3 {
        font-size: 1.6rem;
    }

    .grid-conceptual {
        grid-template-columns: 1fr; /* 1 columna en móvil chico */
    }

    .concept-text {
        border-left: 2px solid #fff;
        padding-left: 1rem;
    }

    .concept-text p {
        font-size: 1rem;
        line-height: 1.6;
    }
}


/* - Footer */
.footer {
    padding: 2rem 0; /* en desktop queda igual */
    color: rgb(0, 0, 0);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.footer-logo img {
    height: 80px;
    width: 80px;
    object-fit: contain;
    /* filter: brightness(0) invert(1); */ /* opcional */
}

.footer-info {
    text-align: center;
    line-height: 1.6;
    margin: 0 2rem;
}

.footer-contacto {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-contacto a {
    color: rgb(0, 0, 0);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: opacity 0.3s ease;
}

.footer-contacto a:hover {
    opacity: 0.8;
}

.footer-contacto i {
    font-size: 1.2rem;
    width: 25px;
}

/* --- FOOTER COMPACTO EN MOBILE --- */
@media (max-width: 768px) {
    .footer {
        padding: 1.5rem 0; /* menos padding */
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 1.25rem;
        padding: 0 1.5rem;
    }

    .footer-logo img {
        height: 60px;
        width: 60px; /* logo más chico */
    }

    .footer-info {
        margin: 0; /* el gap del contenedor ya separa los bloques */
        font-size: 0.9rem; /* texto un poco más chico */
    }

    .footer-contacto {
        align-items: center;
        gap: 0.5rem; /* menos espacio entre contactos */
    }

    .footer-contacto a {
        flex-direction: column;
        gap: 0.3rem;
        font-size: 0.9rem; /* texto contacto un poco más chico */
    }
}

@media (max-width: 480px) {
    .footer-logo img {
        height: 50px;
        width: 50px; /* más chico aún en teléfonos chicos */
    }
}


/* Estilos específicos para la página de proyectos */
.proyectos {
    padding: 8rem 0 4rem;
    background-color: #f5f3f0;
}

.proyectos-header {
    text-align: center;
    margin-bottom: 3rem;
}

.proyectos-header h1 {
    color:#000000;
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    margin-bottom: 2rem;
}

.proyectos-descripcion {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
    line-height: 1.8;
    color: #333;
    padding: 0 2rem;
}

.proyectos-filtros {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    padding: 0 2rem;
}

.filtro-btn {
    background: none;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.filtro-btn:hover, .filtro-btn.active {
    background-color: var(--primary-color);
    color: white;
}

.proyectos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    padding: 0 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.proyecto-card {
    position: relative;
    height: 400px;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s ease;
}

.proyecto-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.proyecto-imagen {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.proyecto-card:hover .proyecto-imagen {
    transform: scale(1.05);
}

.proyecto-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.25) 55%, transparent 100%);
    padding: 3.5rem 1.5rem 1.5rem;
    text-align: center;
    pointer-events: none;
    transition: all 0.3s ease;
}

.proyecto-titulo {
    color: var(--white);
    font-size: 1.15rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15rem;
    margin: 0;
}

.proyecto-subtitulo {
    display: block;
    font-weight: 600;
    margin-top: 0.5rem;
}

.proyecto-descripcion {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    border-left: 3px solid #fff;
    padding-left: 1rem;
}

.proyecto-link {
    display:flex;
    align-items: center;
    justify-content: center;
    color: rgb(0, 0, 0);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    border-bottom: 1px solid rgb(0, 0, 0);
    padding-bottom: 2px;
    transition: all 0.2s ease;
}

.proyecto-link:hover {
    transform: translateX(5px);
}

/* Página individual de proyecto (para futuro desarrollo) */
.proyecto-detalle {
    padding: 8rem 0 4rem;
    background-color: #f5f3f0;
}

.proyecto-galeria {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 15px;
    margin-bottom: 3rem;
}

.proyecto-galeria-principal {
    grid-column: span 8;
    height: 500px;
}

.proyecto-galeria-secundarias {
    grid-column: span 4;
    display: grid;
    grid-template-rows: repeat(2, 1fr);
    gap: 15px;
}

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

.galeria-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.galeria-item:hover img {
    transform: scale(1.05);
}

.proyecto-info-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    padding: 0 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.proyecto-info-descripcion h2 {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.proyecto-info-descripcion p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #333;
}

.proyecto-info-detalles {
    background: var(--primary-color);
    color: white;
    padding: 2rem;
}

.proyecto-info-detalles h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.proyecto-info-detalles h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: white;
}

.proyecto-meta {
    margin-bottom: 2rem;
}

.meta-item {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.meta-label {
    font-weight: 600;
}

/* Estilos responsive */
@media (max-width: 992px) {
    .proyecto-info-container {
        grid-template-columns: 1fr;
    }
    
    .proyecto-galeria-principal {
        grid-column: span 12;
    }
    
    .proyecto-galeria-secundarias {
        grid-column: span 12;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: 1fr;
    }
}

@media (max-width: 768px) {
    .proyectos-grid,
    .proyectos-descripcion,
    .proyectos-filtros {
        padding: 0 1.5rem;
    }

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

    .proyecto-card {
        height: 350px;
    }

    .proyecto-titulo {
        font-size: 1rem;
    }

    .proyecto-descripcion {
        font-size: 0.9rem;
    }
    
    .proyecto-galeria {
        display: flex;
        flex-direction: column;
    }
    
    .proyecto-galeria-principal, 
    .proyecto-galeria-secundarias {
        height: 300px;
    }
    
    .proyecto-galeria-secundarias {
        display: flex;
        overflow-x: auto;
        margin-top: 15px;
    }
    
    .proyecto-galeria-secundarias .galeria-item {
        flex: 0 0 250px;
        height: 100%;
    }
}

@media (max-width: 480px) {
    .proyectos-header h1 {
        font-size: 2rem;
        letter-spacing: 0.3rem;
    }
    
    .proyecto-card {
        height: 300px;
    }
    
    .proyecto-overlay {
        padding: 2rem 1.5rem 1.5rem;
    }
    
    .proyecto-titulo {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }
    
    .proyecto-descripcion {
        margin-bottom: 1rem;
    }
}

/* Estilos para la página de contacto */
.contacto {
    padding: 8rem 2rem 4rem;
    background-color: #f5f3f0;
}

.contacto-contenido {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contacto-textos h1 {
    color:#000000;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.contacto-textos p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 18px;
}

.contacto-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.contacto-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
}

.contacto-formulario {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contacto-formulario input,
.contacto-formulario select,
.contacto-formulario button {
    padding: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

.contacto-formulario button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contacto-formulario button:hover {
    background-color: rgba(40, 96, 95, 0.8);
}

.instagram-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit; /* mantiene el color actual */
  gap: 10px;
  transition: color 0.3s ease;
}

.instagram-link:hover {
  color: #E1306C; /* color oficial de Instagram */
}

.contacto-formulario textarea {
    padding: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    resize: vertical; /* permite agrandar solo hacia arriba/abajo */
    min-height: 150px;
}

/* Responsive */
@media (max-width: 768px) {
    .contacto {
        padding: 6rem 1.5rem 3rem;
    }

    .contacto-info {
        flex-direction: column;
        align-items: center;
    }
}


/*  Galeria de proyectos */
.proyecto-galeria-completa {
    padding: 4rem 2rem;
    background-color: #f5f3f0;
    max-width: 1200px;
    margin: 0 auto;
}

.proyecto-galeria-completa h1 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 2rem;
}

.galeria {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 15px;
}

.galeria-item {
    overflow: hidden;
    position: relative;
    border-radius: 8px;
}

.galeria-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.galeria-item:hover img {
    transform: scale(1.05);
}


.btn-atras {
  display: inline-block;
  background-color: var(--primary-color);   /* color principal */
  color: #ffffff;
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  font-size: 16px;
  font-weight: 700;
  padding: 12px 26px;
  border-radius: 6px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  margin: 0 0 -30px 60px;  /* margen superior, derecha, inferior, izquierda */
  text-decoration: none;
}

.btn-atras:hover {
  background-color: #1f4d4c;   /* tono más oscuro al pasar el mouse */
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .proyecto-galeria-completa {
    padding: 3rem 1.5rem;
  }

  .btn-atras {
    margin: 1.5rem 0 -20px 1.5rem; /* mismo margen lateral que el resto del contenido */
  }
}

/* Utilidad SEO/accesibilidad: visible para lectores de pantalla y buscadores, oculta visualmente */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* Responsive
   The .galeria grid is now fully responsive using auto-fill and minmax, so no specific media queries are needed here. */
