:root {
    --blanco: #ffffff;
    --oscuro: #000000;
    --primario: #ffc107;
    --secundario: #0097a7;
    --gris: #757575;
}
/* control+kluego c para comentar */
/** Globales **/
html {
    font-size: 62.5%;
    box-sizing: border-box; 
    scroll-snap-type: y mandatory;
}
/** Scroll snap 
.servicios,
.navegacion-principal, 
.formulario,
.footer {
    scroll-snap-align: center;
    scroll-snap-stop: always;
}**/
*, *:before, *:after {
    box-sizing: inherit;
  }
body {
    font-size: 16px;/* 1 rem = 10px */
    font-family: krub, sans-serif;/* Hack para box model */
    background-image: linear-gradient(to top, #15edc920 0%, var(--blanco) 100%);
}
.contenedor {
    max-width: 100rem;
    margin: 0 auto;
}
.boton {
    background-color: var(--secundario);
    color: var(--blanco);
    padding: 10px 30px;
    margin-top: 5rem;
    font-size: 2rem;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
    border-radius: .5rem;
    /* width: 90%; */
    text-align: center;
    border: none;
}
/*@media (min-width: 768px) {
    .boton {
        width: auto;
    }
 }  */
.boton:hover {
    cursor: pointer;
}
.sombra {
    -webkit-box-shadow: 0px 5px 15px 0px rgba(187, 153, 85, 0.65);
    -moz-box-shadow: 0px 5px 15px 0px rgba(105,98,105,0.65);
    box-shadow: 0px 5px 15px 0px rgba(105,98,105,0.65);
    background-color: var(--blanco);
    padding: 2rem;
    border-radius: 1rem;
}
/** Tipografía **/
h1 {
    font-size: 3.8rem;
}
h2 {
    font-size: 2.8rem;
}
h3 {
    font-size: 1.8rem;
}
h1,h2,h3 {
    text-align: center;
}
 /* Títulos  */
.titulo span {
    font-size: 2rem;
}
/* Utilidades */
.w-sm-100 {
    width: 100%;
}
@media (min-width: 768px) {
    .w-sm-100 {
        width: auto;
    }
}
.flex {
    display: flex;
}
.alinear-derecha {
    justify-content: flex-end;
}
/* Navegación principal */
.nav-bg {
    background-color: var(--secundario);
}
.navegacion-principal {
    display: flex;
    flex-direction: column;  
}
@media (min-width: 768px) {
    .navegacion-principal {
        flex-direction: row;
        justify-content: space-between;
    }
}
.navegacion-principal a {
    display: block;
    text-align: center;
  color: var(--blanco);
  text-decoration: none;
  font-size: 2rem;
  font-weight: 700;
  padding: 1rem;
}
.navegacion-principal a:hover {
    background-color: var(--primario);
    color: var(--oscuro);
}
/* Hero */
.hero {
    background-image: url(../img/hero.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    height: 450px;
    position: relative;
    margin-bottom: 2rem;
}
.contenido-hero {
    position: absolute;
    background-color: rgba(0,0,0, .7 ); /** Anterior **/
    background-color: rgb( 0 0 0 / 70%);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.contenido-hero h2,
.contenido-hero p {
    color: var(--blanco);
}
.contenido-hero .ubicacion {
    display: flex;
    align-items: flex-end;
}
.hero-porta {
    background-image: url(https://xiomara-freelancer.netlify.app/img/heroporta.jpg);
}

/** Servicios **/
@media (min-width: 768px) {
    .servicios {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        column-gap: 2rem;
    }
}
.servicio {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #f8f8f8; /* Color de fondo suave */
    padding: 20px; /* Espacio interno */
    border-radius: 10px; /* Bordes redondeados */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); /* Sombra elegante */
    text-align: center; /* Centrar contenido */
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    margin-top: 1rem;
    margin-bottom: 1rem;
}
.servicio img {
    border-radius: 20px;
}
.servicio:hover {
    transform: scale(1.05); /* Hace que el bloque se agrande ligeramente */
    transition: 0.3s ease-in-out; /* Suaviza el efecto */
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.3); /* Sombra más pronunciada al hacer hover */   
}
.servicio h3 {
    color: var(--secundario);
}
.servicio p {
    line-height: 2;
    text-align: center;
}
/*.iconos {
    height: 15rem;
    width: 15rem;
    background-color: var(--primario);
    border-radius: 50%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    width: 100px;
    height: 150px;
    overflow: hidden;
}*/
.iconosdos {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 150px;
    overflow: hidden;
}
.iconosdos img {
    width: 200px;
    height: 150px;
    object-fit: cover;
}
.clientes {
    width: 100; /* Ajusta según necesidad */
    height: auto; /* Ajusta según necesidad */
    padding: 20px;
    border-radius: 10px; /* Bordes redondeados */
    background: linear-gradient(to right, #faf9f835, #f4a23e0a, #fe7c0201);
    /*background: linear-gradient(to right, #ff660043, #ffcc0057, #00bfff25);  Degradado de naranja a amarillo */ 
    margin: 0 auto;
}
@media (min-width: 760px) {
    .clientes {
        margin-top: 5rem;
        width: 140rem;
    }
}
/** Contacto **/
.formulario {
    background-color: var(--gris);
    width: min(60rem, 100%); /** Utilizar el valor mas pequeño **/
    margin: 0 auto;
    padding: 2rem;
    border-radius: 1rem;
}
.formulario fieldset {
    border: none;
}
.formulario legend {
    text-align: center;
    font-size: 1.8rem;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--primario);
} 
@media (min-width: 768px) {
    .contenedor-campos {
        display: grid;
        grid-template-columns: repeat(2,1fr);
        grid-template-rows: auto auto 20rem;
        column-gap: 1rem;
    }
    .campo:nth-child(3), 
    .campo:nth-child(4) {
        grid-column: 1 / 3;
    }
}
.campo {
    margin-bottom: 1rem;
}
.campo label {
    color: var(--blanco);
    font-weight: bold;
    margin-bottom: 2rem;
    display: block;
}
.campo textarea {
    height: 20rem;
}
.input-text {
    width: 100%;
    border: none;
    padding: 1.5rem;
    border-radius: .5rem;
}
/** Footer **/
.footer {
    text-align: center;
    padding: 3rem;
}

.text-center {
    text-align: center;
}