/* 
Colors

gray :586f7c
white:fffffa
whitebone:f7f9f7
otherwhite:f7f7ff
black:131112
blacky:181d27
grayother:353535
purpleblack:1a1423
otherblack:070600
*/

:root{
 --bg-color:#fffffa;
 --fn-color:#181d27;
 --drk-bg-color:#353535;
 --drk-fn-color:#f7f7ff;   
}
*, *::before, *::after {
    box-sizing: border-box;
}
.body{
    background-color: var(--bg-color);
    color: var(--fn-color);
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.header{
    position: relative;
    width: 100%; 
    padding: 1rem 5%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: var(--bg-color);
    z-index: 10;
    
    
}
.header-logo-a{
     text-decoration: none;
     color: var(--fn-color); 
     
}
.nav-ul{
    display: flex;
    list-style: none;
    gap: .8rem;
    font-size: 1.5rem;
    
}
.nav-li-a{
    text-decoration: none;
    color: var(--fn-color);
    text-transform: uppercase;

}
.main{
    width: 100%;
    display: flex;
    flex-direction: column;
}
.banner{
    width: 100%;
    height: 100vh;
    margin: 0;
    padding: 0;
    
    
}
.banner-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  
}
.service{
    height: 50vh;
    background-color: bisque;
    
}
/*
.portafolio{
    display: flex;
    width: 100%;
    height: 100vh;
    overflow: hidden;

}

 .galery{
    z-index: 2;
    display: flex;
    flex-direction: column; 
    transform: rotate(-90deg)translate3d(0,-140vh,0);
    transform-origin: right top; 
    overflow-y: auto;
    overflow-x: hidden;
    height: 100vw;
    perspective: 1px;
	transform-style: preserve-3d;
    
      &::-webkit-scrollbar {
         width: 1px;
         height: 1px;
        }
 }


.galery-img{
  transform: rotate(90deg);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40vh;
  transform-origin: 50% 50%;
  transform: rotate(90deg) translateZ(.1px) scale(0.9) translateX(0px) translateY(-3vh);
  transition: 1s;
}
*/
.portafolio {
    width: 100%;
    padding: 60px 0;
    background-color: var(--bg-color);
    overflow: hidden; /* Oculta barras de scroll feas */
}

.gallery-div {
    display: flex;
    flex-wrap: nowrap; /* ¡OJO! Esto impide que las fotos se bajen al siguiente renglón */
    gap: 25px;
    padding: 20px 5%;
    overflow-x: auto; /* Cambia de 'scroll' a 'auto' 
    scroll-snap-type: x mandatory;*/
    scroll-behavior: smooth;
    width: 100%; /* El contenedor mide el 100% de la pantalla... */
    &::-webkit-scrollbar {
        display: none;
    }
}

.galery-img {
    flex: 0 0 450px; /* Esto obliga a cada imagen a medir 450px siempre, sin encogerse   scroll-snap-align: center;*/
    height: 65vh;
    object-fit: cover;
   
    border-radius: 8px;
}


/* Esta parte requiere un poquito de JS extra para detectar 
la imagen central, pero por ahora podemos usar el hover */
.galery-img:hover {
    opacity: 1;
    transform: scale(1.03);
}
 /* Espaciado general para secciones de texto */
.about, .formulario, .service {
    width: 100%;
    padding: 4rem 10%; /* Mucho aire arriba y abajo, 10% a los lados */
    text-align: center;
}

.about-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.about-art h2 {
    font-family: 'Playfair Display', serif; /* Si usas una fuente elegante */
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 1.1rem;
    margin: 20px 0;
}

.about-art h4 {
    font-weight: 300;
    line-height: 1.8;
    color: var(--drk-bg-color);
}

/* Títulos de sección elegantes */
.section-title, .about-text, .formulario-h1 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 40px;
}
.formulario {
    max-width: 800px; /* Centramos el formulario para que no sea eterno a lo ancho */
    margin: 0 auto;
    padding: 100px 20px;
}

.formulario-sub {
    font-weight: 300;
    margin-bottom: 50px;
    color: var(--gray);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Dos columnas */
    gap: 30px;
    margin-bottom: 30px;
}

/* Contenedor del campo */
.campo {
    position: relative;
    margin-bottom: 30px;
}

/* Estilo del Input (solo línea inferior) */
.formulario-input {
    width: 100%;
    padding: 10px 0;
    border: none;
    border-bottom: 1px solid #ccc; /* Línea sutil como en la imagen */
    background: transparent;
    outline: none;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.formulario-input:focus {
    border-bottom: 1px solid var(--fn-color);
}

/* Label Flotante */
.formulario-label {
    position: absolute;
    left: 0;
    top: 10px;
    color: #999;
    pointer-events: none;
    transition: 0.3s ease all;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* Magia del movimiento: cuando el input tiene foco o texto */
.formulario-input:focus + .formulario-label,
.formulario-input:not(:placeholder-shown) + .formulario-label {
    top: -15px;
    font-size: 0.7rem;
    color: var(--fn-color);
}

/* Botón Estilo Plantilla */
.formulario-submit {
    margin-top: 30px;
    padding: 15px 50px;
    background-color: var(--fn-color);
    color: white;
    border: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.formulario-submit:hover {
    opacity: 0.8;
}

/* Responsive para móviles */
@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}