:root {
    --color-principal: #4a2b11;
    --color-secundario: #fdfdfd;
    --color-texto: #333;
}

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

body {
    font-family: 'Nexa', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    background: var(--color-secundario);
    color: var(--color-texto);
    min-height: 100vh;
}

/* Splash Screen */
#splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fdfdfd;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.logo-splash {
    background-color: #fff;
    animation: fadeIn 2s ease-in-out;
}

.logo-splash img {
    width: 250px;
    height: auto;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* Header y logo */
header {
    position: sticky;
    top: 0;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 40px;
    background-color: var(--color-secundario);
    border-bottom: 4px solid #ada48f;
}

.logo img {
    height: 60px;
}

.menu {
    display: flex;
    gap: 20px;
    list-style: none;
    flex-wrap: wrap;
}

.menu li a {
    text-transform: uppercase;
    padding: 10px 20px;
    text-decoration: none;
    color: var(--color-principal);
    font-size: 16px;
    font-weight: 600;
    transition: 0.3s ease;
    font-family: 'Nexa', sans-serif;
}

.menu li a:hover {
    background-color: var(--color-principal);
    color: #fff;
    border-radius: 6px;
}

/*video */

.modal-video {
  display: none;
  position: fixed;
  z-index: 999;
  padding-top: 100px;
  left: 0; top: 0;
  width: 100%; height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
}

.modal-video-content {
  margin: auto;
  background-color: #fff;
  padding: 20px;
  width: 80%;
  max-width: 700px;
  position: relative;
  border-radius: 15px;
}

.close-video {
  position: absolute;
  top: 10px;
  right: 25px;
  font-size: 30px;
  cursor: pointer;
}

/* ¿Quiénes somos? */
.quienes-somos-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin: 0 30px;
}

.quienes-somos-flex .text {
  flex: 1;
  text-align: left;
    max-width: 800px;
    margin: auto;
    text-align: justify;
    font-family: Georgia, serif;
    font-size: 17px;
    margin-bottom: 50px;
    margin-top: 25px;
    margin-top: 25px;
    margin-left: 30px;
    margin-right: 30px;
}

.quienes-somos-flex .text h2 {
  text-align: left;
  font-size: 32px;
  font-family: 'Cocogoose-Pro-Ultralight-Italic-trial', serif;
    color: var(--color-principal);
    margin-top: 25px;
    margin-left: 200px;
    margin-right: 200px;
}

.quienes-somos-flex .image {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  margin-bottom: 25px;
    margin-top: 25px;
    margin-top: 25px;
    margin-left: 30px;
    margin-right: 30px;
}

.quienes-somos-flex .image img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Servicios */
.contenedor-servicios {
    background-color: #ada48f;
    height: 430px;
}

.servicios {
    padding: 50px 20px;
    text-align: center;
    border-radius: 10px;
}

.servicios img {
    border-radius: 8px;
    gap: 20px;
}

.servicios h2 {
    font-size: 32px;
    font-family: 'Cocogoose-Pro-Ultralight-Italic-trial', serif;
    color: #fdfdfd;
}

.servicios .text {
    max-width: 800px;
    margin: auto;
    text-align: justify;
    font-family: Georgia, serif;
    font-size: 17px;
    color: #fdfdfd;
}

.servicios .imagenes {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    margin-top: 20px;
}

/* Botón Chido */
.boton-chido {
  padding: 14px 36px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #4a2b11, #6b4423);
  border: none;
  border-radius: 12px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
}

.boton-chido:hover {
  background: linear-gradient(135deg, #6b4423, #4a2b11);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.boton-chido:active {
  transform: scale(0.97);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}


/* Mapa */
.texto p {
    font-size: 18px;
    color: var(--color-principal);
    margin-bottom: 20px;
    text-align: center;
}

.mapa-contacto {
  background-color: var(--color-secundario);
  padding: 60px 20px;
}

.mapa-contacto h2 {
  font-size: 32px;
  color: var(--color-principal);
  margin-bottom: 40px;
  text-align: center;
}

.mapa-contacto-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.contacto {
  flex: 1 1 320px;
  max-width: 400px;
  background-color: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 16px #ada48f;
}

.contacto input,
.contacto textarea {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 15px;
  transition: border-color 0.3s;
}

.contacto input:focus,
.contacto textarea:focus {
  border-color: var(--color-principal);
  outline: none;
}

.contacto input[type="submit"] {
  padding: 14px 36px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #4a2b11, #6b4423);
  border: none;
  border-radius: 12px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
}

.contacto input[type="submit"]:hover {
  background: linear-gradient(135deg, #6b4423, #4a2b11);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.contacto input[type="submit"]:active {
  transform: scale(0.97);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}


.contenedor-mapa {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 16px #ada48f;
}

.contenedor-mapa iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.typewriter {
    font-size: 32px;
    font-weight: bold;
    color: var(--color-principal);
    overflow: hidden;
    border-right: 3px solid var(--color-principal);
    white-space: nowrap;
    margin: 0 auto 20px auto;
    width: 0;
    animation: typing 3s steps(10, end) forwards, blink 0.7s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 12ch }
}

@keyframes blink {
    from, to { border-color: transparent }
    50% { border-color: var(--color-principal) }
}

.mensaje-contacto {
  margin-top: 10px;
  text-align: center;
  color: #3a210c;
  font-size: 15px;
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
}

.contacto h2 {
  text-align: center;
  margin-bottom: 18px;
  font-size: 2rem;
  font-weight: 400;
    color: var(--color-principal);
    font-family: 'Cocogoose-Pro-Ultralight-Italic-trial', serif;    
}

/* Carousel */
.carousel-container {
    width: 100%;
    overflow: hidden;
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px 0;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-group {
    display: flex;
    flex-shrink: 0;
    width: 100%;
    justify-content: space-around;
}

.carousel-group img {
    width: 18%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.3s ease;
    filter: grayscale(100%);
}

.carousel-group img:hover {
    transform: scale(1.05);
    filter: none;
}

.carousel-container h2 {
    font-size: 32px;
    font-family: 'Times New Roman', serif;
    color: var(--color-principal);
    margin-bottom: 25px;
    text-align: center;
}


/* Modal */
.contenedor-boton { 
  text-align: right; 
  margin-right: 20px;
  margin-top: -40px;
}

.btn-btn-primary{
  background-color: #4a2b11;
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 10px;
  text-align: center;
}
.modal-title {
  font-size: 1.5rem;
  font-weight: 500;
  color: #333; 
  text-align: center;
}

.btn-btn-secondary{
  background-color: #ada48f;
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 10px;
  text-align: center;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 500;
  color: #333; 
  text-align: center; 
}

.modal-body {
  font-size: 16px;
  line-height: 1.5;
  color: #333;
}

.modal-content {
  background-color: #fdfdfd;
  color: #333;
}

    /*footer*/
footer {
    background-color: #ada48f;
    color: #fff;
    padding: 20px 0;
    text-align: center;
  }
  
  @media (max-width: 768px) {
    .menu {
      flex-direction: column;
      gap: 10px;
    }
}

/* Responsivo */
@media (max-width: 768px) {
    .menu {
        flex-direction: column;
        gap: 10px;
    }

    header {
        padding: 10px 20px;
    }
    
    .carousel-group img {
        width: 22%;
    }

    .quienes-somos {
        padding: 30px 15px;
    }

    .quienes-somos h2 {
        font-size: 24px;
    }

    .quienes-somos .text {
        font-size: 15px;
    }

    .contenedor-servicios {
        height: auto;
        padding: 20px 15px;
    }

    .servicios {
        padding: 20px 15px;
    }

    .servicios h2 {
        font-size: 24px;
    }

    .servicios .text {
        font-size: 15px;
    }

    .servicios .imagenes {
        flex-direction: column;
        align-items: center;
    }

    .servicios .imagenes img {
        max-width: 100%;
        margin-bottom: 15px;
    }

    .mapa-contacto {
        padding: 30px 15px;
    }

    .mapa-contacto h2 {
        font-size: 24px;
    }

    .contenedor-mapa {
        width: 100%;
    }

    footer {
        font-size: 14px;
        padding: 15px 10px;
    }
}