/* Body 
------------------------------------- */
@font-face {
    font-family: 'Caviar'; /* El nombre con el que la llamarás después */
    src: url('fonts/CaviarDreams.woff2') format('woff2'),
         url('fonts/CaviarDreams.woff2') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap; /* Esto es vital para que el texto aparezca rápido */
}

body {
    background: #ffffff;   
    font-family: 'NombreDeTuFuente', sans-serif; /* Aquí usas el nombre que pusiste arriba */
    font-weight: 300;
    /* ... el resto de tus estilos ... */
}

html,body {
  width: 100%;
  overflow-x: hidden;
}

html {
  font-size: 100%;
}


/*---------------------------------------
    Typorgraphy              
-----------------------------------------*/

h1,h2,h3,h4 {
  font-weight: 300;
}

h1 {
  font-size: 2rem;
  line-height: 3rem;
  letter-spacing: 12px;
  text-transform: uppercase;
  padding-bottom: 8px;
}

h2 {
  color: #e44c65;
  font-size: 1.2rem;
  font-weight: bold;
  letter-spacing: 4px;
  text-transform: uppercase;
}

h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 4px;
}

p {
  color: #888;
  font-size: 20px;
  letter-spacing: 1px;
  line-height: 34px;
}

#home p,
#contact p, footer p {
  color: #f9f9f9;
}

.btn {
  border:none;
  border-radius: 4px;
  transition: all 0.4s ease-in-out;
}

.btn:focus {
  background: #e44c65;
  border-color: transparent;
}

.btn-success {
  background: #e44c65;
  font-weight: 300;
  letter-spacing: 2px;
  padding: 14px 32px;
  margin-top: 26px;
}

.btn-success:hover {
  background: #222;
}

a {
  color: #e44c65;
  -webkit-transition: 0.5s;
  -o-transition: 0.5s;
  transition: 0.5s;
  text-decoration: none !important;
}
a:hover, a:active, a:focus {
  color: #e44c65;
  outline: none;
}

* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

*:before,
*:after {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}



/*---------------------------------------
    All Section style              
-----------------------------------------*/

.section-title {
  padding-bottom: 62px;
}

#about .section-title {
  padding-top: 82px;
}

#about .section-title h1 {
  margin-bottom: 0px;
  padding-bottom: 0px;
}

#about,
#gallery,
#contact {
  padding-top: 120px;
  padding-bottom: 120px;
  position: relative;
}

#gallery,
#contact, footer {
  text-align: center;
}

.overlay {
  background: #304352;
  opacity: 0.9;
  position: absolute;
  width: 100%;
  height: 100%; /* Cambiado de 100vh a 100% */
  top: 0;
  left: 0;
  right: 0;
  z-index: 1;
}



/*---------------------------------------
    Pre Loader Style              
-----------------------------------------*/

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: center;
    background: none repeat scroll 0 0 #fff;
}

.sk-spinner-pulse {
  width: 60px;
  height: 60px;
  background-color: #e44c65;
  border-radius: 100%;
  margin: 40px auto;
  -webkit-animation: sk-pulseScaleOut 1s infinite ease-in-out;
          animation: sk-pulseScaleOut 1s infinite ease-in-out; }

@-webkit-keyframes sk-pulseScaleOut {
  0% {
    -webkit-transform: scale(0);
            transform: scale(0); }
  100% {
    -webkit-transform: scale(1);
            transform: scale(1);
    opacity: 0; } }

@keyframes sk-pulseScaleOut {
  0% {
    -webkit-transform: scale(0);
            transform: scale(0); }
  100% {
    -webkit-transform: scale(1);
            transform: scale(1);
    opacity: 0; } }



/*---------------------------------------
    Main Navigation             
-----------------------------------------*/

.navbar-default {
  background: #ffffff;
  box-shadow: 0px 2px 8px 0px rgba(50, 50, 50, 0.04);
  border: none;
  margin-bottom: 0px !important;
}

.navbar-default .navbar-brand {
  color: #304352;
  font-size: 28px;
  font-weight: bold;
  letter-spacing: 2px;
  margin: 0;
}

.navbar-default .navbar-nav li a {
    color: #777;
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase;
    -webkit-transition: all 0.4s ease-in-out;
    transition: all 0.4s ease-in-out;
    padding-right: 22px;
    padding-left: 22px;
}

.navbar-default .navbar-nav li a span {
  position: relative;
  display: block;
  padding-bottom: 2px;
}

.navbar-default .navbar-nav li a span:before {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: rgba(255, 255, 255, 0.5);
  visibility: hidden;
  -webkit-transform: scaleX(0);
  -moz-transform: scaleX(0);
  -ms-transform: scaleX(0);
  -o-transform: scaleX(0);
  transform: scaleX(0);
  -webkit-transition: all 0.3s ease-in-out 0s;
  -moz-transition: all 0.3s ease-in-out 0s;
  -ms-transition: all 0.3s ease-in-out 0s;
  -o-transition: all 0.3s ease-in-out 0s;
  transition: all 0.3s ease-in-out 0s;
}

.navbar-default .navbar-nav li a:hover span:before {
  visibility: visible;
  -webkit-transform: scaleX(1);
  -moz-transform: scaleX(1);
  -ms-transform: scaleX(1);
  -o-transform: scaleX(1);
  transform: scaleX(1);
}

.navbar-default .navbar-nav li.active a span:before {
  visibility: visible;
  -webkit-transform: scaleX(1);
  transform: scaleX(1);
  background-color: #304352;
}

.navbar-default .navbar-nav > li a:hover {
    color: #304352 !important;
}

.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus {
    color: #777;
    background-color: transparent;
}

.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
    color: #304352;
    background-color: transparent;
}

.navbar-default .navbar-toggle {
     border: none;
     padding-top: 10px;
  }

.navbar-default .navbar-toggle .icon-bar {
    border-color: transparent;
  }

.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus { 
  background-color: transparent;
}

@media screen and (max-width: 768px) {
  
  .navbar-default .navbar-nav li a span:before {
    background: transparent !important;
  }
  .navbar-default .navbar-nav li.active a {
    background: transparent;
    background: none;
    color: #304352 !important;
  }
  .navbar-default .navbar-nav li.active a span:before {
    visibility: visible;
    -webkit-transform: scaleX(1);
    transform: scaleX(1);
  }
}



/*---------------------------------------
    Home Section              
-----------------------------------------*/

#home {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: block; /* Quitamos flex de aquí para no interferir con Vegas */
}

#home h1 {
  color: #ffffff;
}

#home .col-md-8 {
  padding-left: 62px;
}



/*---------------------------------------
    About Section              
-----------------------------------------*/

#about {
  background: #f0f0f0;
}

#about .item {
  width: 100%;
  display: block;
}

#about .about-thumb {
  background: #ffffff;
  border-radius: 50px;
  padding: 100px;
  position: relative;
}

#about .about-img img {
  border: 8px solid #ffffff;
  position: absolute;
  left: -120px;
  bottom: -325px;
  padding: 12px;
}

#about .team-thumb {
  width: 100%;
  height: 400px;
  margin: 32px 0;
  text-align: center;
  background: #ffffff;
  border-radius: 4px;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

#about .team-thumb .image-holder {
  position: relative;
  top: 40px;
  display: inline-block;
  margin-bottom: 40px;
  padding: 10px;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

#about .team-thumb .heading {
  font-weight: bold;
  position: relative;
  top: 10px;
  -webkit-transition: all 600ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transition: all 600ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

#about .team-thumb:hover {
  background: #304352;
}

#about .team-thumb:hover .image-holder {
  top: -40px;
  margin-bottom: 0px;
}

#about .team-thumb:hover .heading {
  top: -10px;
}

#about .team-thumb .description {
  font-size: 18px;
  width: 80%;
  margin: 0 auto;
  opacity: 0;
  -webkit-transition: all 600ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transition: all 600ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
  -webkit-transform: scale(0);
  -ms-transform: scale(0);
  transform: scale(0);
}

#about .team-thumb:hover .description {
  opacity: 1;
  -webkit-transform: scale(1);
  -ms-transform: scale(1);
  transform: scale(1);
}

#about .team-thumb:hover p.description {
  color: #ffffff;
}

/* =========================================
   CORRECCIÓN DEL SALTO EN LA SEMBLANZA
========================================= */
/* Quita el margen superior del primer título para que no salte al abrir */
.texto-extra h2:first-child {
    margin-top: 0 !important;
    padding-top: 20px;
}

/* Quita el margen inferior del último párrafo para que no salte al cerrar */
.texto-extra p:last-child {
    margin-bottom: 0 !important;
    padding-bottom: 10px; /* Usamos padding en lugar de margin para dar espacio limpio */
}


/*---------------------------------------
    Galllery section              
-----------------------------------------*/

#gallery {
  background: #ffffff;
}

#gallery .gallery-thumb {
  background-color: #ffffff;
  box-shadow: 0px 1px 2px 0px rgba(90, 91, 95, 0.15);
  cursor: pointer;
  display: block;
  margin-bottom: 25px;
  position: relative;
  top: 0px;
  transition: all 0.4s ease-in-out;
}

#gallery .gallery-thumb:hover {
  box-shadow: 0px 16px 22px 0px rgba(90, 91, 95, 0.3);
  top: -5px;
}

#gallery .gallery-thumb img {
  border-top-right-radius: 2px;
  border-bottom-left-radius: 2px;
  width: 100%;
}



/*---------------------------------------
    Contact section              
-----------------------------------------*/

#contact, footer {
  background: #304352;
  color: #ffffff;
}

#contact .form-control {
  background: transparent;
  box-shadow: none;
  border: 1px solid #f9f9f9;
  color: #ccc;
  font-size: 20px;
  margin-top: 10px;
  margin-bottom: 14px;
  transition: all 0.4s ease-in-out;
}

#contact .form-control:focus {
  border-color: #e44c65;
  color: #ffffff;
}

#contact input {
  height: 55px;
}

#contact input[type="submit"] {
  background: #e44c65;
  border:none;
  color: #ffffff;
  font-weight: 400;
  letter-spacing: 1px;
}

#contact input[type="submit"]:hover {
  background: #222;
  color: #ffffff;
}



/*---------------------------------------
    Footer section             
-----------------------------------------*/

footer {
  padding-top: 80px;
  padding-bottom: 80px;
}



/*---------------------------------------
    Social icons style              
-----------------------------------------*/

.social-icon {
  padding: 0;
  margin: 0;
}

.social-icon li {
  list-style: none;
  display: inline-block;
}

.social-icon li a {
  border-radius: 50px;
  border: 1px solid #ffffff;
  color: #ffffff;
  font-size: 20px;
  width: 45px;
  height: 45px;
  line-height: 45px;
  text-align: center;
  margin: 10px 10px 42px 10px;
  padding: 0px;
}

.social-icon li a:hover {
  background: #ffffff;
  color: #e44c65;
}



/*---------------------------------------
   Back top         
-----------------------------------------*/

.go-top {
  background-color: #ffffff;
  box-shadow: 1px 1.732px 12px 0px rgba( 0, 0, 0, .14 ), 1px 1.732px 3px 0px rgba( 0, 0, 0, .12 );
  transition : all 1s ease;
  bottom: 2em;
  right: 2em;
  color: #222;
  font-size: 26px;
  display: none;
  position: fixed;
  text-decoration: none;
  width: 40px;
  height: 40px;
  line-height: 35px;
  text-align: center;
  border-radius: 100%;
}

.go-top:hover {
  background: #e44c65;
  color: #ffffff;
}



/*---------------------------------------
   Responsive Mobile         
-----------------------------------------*/

@media (max-width: 980px) {
/* 
  #home, .overlay {
    height: 50vh;
  }
*/
  #about .team-thumb {
    margin-top: 32px;
  }

}


@media (max-width: 767px) {

  #home, .overlay {
    height: 100vh;
  }

  #about .about-thumb {
    padding: 32px;
    margin-bottom: 32px;
    text-align: center;
  }

  #about .col-md-3 img {
    position: relative;
    top: 0;
    left: 0;
  }

}



@media (max-width: 650px) {

  h1 {
    font-size: 1.6rem;
  }

  p {
    font-size: 18px;
  }

  img {
    width: 100%;
  }

  #about,
  #gallery,
  #contact {
    padding-top: 80px;
    padding-bottom: 80px;
  }

}

/* Estilos para el logotipo de inicio (Hero) */
.hero-logo {
    max-width: 450px; /* Puedes subir o bajar este número para cambiar el tamaño del logo */
    height: auto;
    margin: 0 auto 30px auto; /* Lo centra y le da un espacio respirable antes del botón */
    display: block;
}

.hero-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
  position: relative;
  z-index: 2; /* Se posiciona por encima del slider */
  text-align: center;
}

/* Estilo limpio solo para el botón de Mostrar más */
.btn-more {
    background: transparent;
    border: none;
    color: #e44c65; /* Color de acento */
    font-weight: 600;
    font-size: 16px;
    padding: 10px 0;
    margin-top: 10px;
    cursor: pointer;
    outline: none;
}

.btn-more i {
    margin-left: 5px;
}

/* =========================================
   SECCIÓN PATREON CTA
========================================= */
#comunidad-patreon {
    padding: 80px 0;
    background-color: #f9f9f9; /* Un fondo gris súper sutil para separar la sección */
    border-top: 1px solid #eeeeee;
}

.cta-box h2 {
    font-weight: 600;
    margin-bottom: 20px;
    color: #333333;
}

.cta-box p {
    font-size: 18px;
    margin-bottom: 30px;
    color: #666666;
}

/* Estilo del botón llamativo */
.btn-patreon {
    background-color: #e44c65; /* Color coral/rojo oficial de Patreon (o cámbialo al de su marca) */
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    padding: 15px 40px;
    border-radius: 50px; /* Bordes muy redondeados para que se vea amigable y clickeable */
    border: none;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0px 8px 15px rgba(255, 66, 77, 0.2);
}

.btn-patreon:hover, 
.btn-patreon:focus {
    background-color: #e44c65;
    color: #ffffff;
    transform: translateY(-3px); /* Pequeño salto al pasar el cursor */
    box-shadow: 0px 12px 20px rgba(255, 66, 77, 0.4);
}

/* Bordes redondeados para las tarjetas de servicios */
.cs-style-4 figure {
    border-radius: 50px; /* Puedes subir o bajar este número (ej. 10px o 20px) para ajustar la curva */
    overflow: hidden; /* Esto es vital para que la imagen de fondo no se salga de las esquinas redondas */
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.08); /* Sombra opcional muy sutil para que resalten más */
}

/* Bordes redondeados para el recuadro de la semblanza */
.recuadro-redondeado {
    border-radius: 15px !important; /* El mismo nivel de curva que tus tarjetas */
}

/* =========================================
   ANIMACIÓN DE EXPANSIÓN (MODAL)
========================================= */
.modal-tarjeta-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #304352f0; /* Fondo oscuro general */
    backdrop-filter: blur(5px); /* El desenfoque premium */
    -webkit-backdrop-filter: blur(5px); /* Obligatorio para que funcione en iPhone/Safari */
    z-index: 9999;
    display: none; 
}

/* Estado Inicial (Oculto sobre la tarjetita pequeña) */
.tarjeta-expandida {
    position: fixed; /* Importante para que viaje por la pantalla */
    background: #ffffff;
    border-radius: 50px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    /* Transición súper suave (curva Apple/Material Design) */
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.tarjeta-expandida.activa {
    top: 10vh !important;
    height: 80vh !important;
    transform: none !important; /* Idéntico al estado inicial para estabilidad visual */
    
    /* Configuración por defecto para móviles */
    left: 5% !important;
    width: 90% !important;
}

/* Botón de volver (Flecha) */
.cerrar-tarjeta {
    position: absolute;
    top: 20px;
    left: 20px; /* Flecha anclada a la izquierda */
    font-size: 16px;
    color: #ffffff;
    cursor: pointer;
    z-index: 10;
    font-weight: 600;
    opacity: 0; /* Oculta al viajar */
    transition: opacity 0.3s ease;
    background: rgba(0, 0, 0, 0.649); /* Pequeño fondo para asegurar que se lea siempre */
    padding: 8px 15px;
    border-radius: 20px;
}

.cerrar-tarjeta i { margin-right: 5px; }

.tarjeta-expandida.activa .cerrar-tarjeta {
    opacity: 1; /* Aparece solo cuando ya creció */
}

/* Imagen interna viajando */
#modal-img-head {
    width: 100%;
    height: 100%; /* Inicia llenando la caja como la tarjetita original */
    object-fit: cover;
    transition: height 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.tarjeta-expandida.activa #modal-img-head {
    height: 40%; /* Se encoge para dar espacio al texto */
}

/* Contenido de texto */
.tarjeta-contenido {
    padding: 30px;
    opacity: 0;
    flex: 1;
    overflow-y: auto;
    transition: opacity 0.3s ease;
}

.tarjeta-expandida.activa .tarjeta-contenido {
    opacity: 1; /* El texto aparece al final */
    transition-delay: 0.2s; /* Espera a que la caja esté grande */
}

@media (min-width: 768px) {
    .tarjeta-expandida.activa {
        max-width: 600px !important;
        width: 600px !important;
        left: calc(50% - 300px) !important; /* Centrado matemático impecable sin transform matrices */
    }
}

/* Bloqueo absoluto de scroll para fondo */
html.no-scroll, body.no-scroll {
    overflow: hidden !important;
}

/* Clase temporal para ocultar la tarjeta base mientras está abierta */
.oculta-temporal {
    opacity: 0 !important;
    pointer-events: none !important;
    transition: none !important; /* Queremos que desaparezca y aparezca al instante */
}

/* =======================================================
   TEXTOS ADAPTATIVOS (Web vs Móvil) INFALIBLE
======================================================= */

/* 1. Por precaución, ocultamos ambos al principio */
#modal-texto .texto-web,
#modal-texto .texto-movil {
    display: none !important;
}

/* 2. REGLA EXCLUSIVA PARA ESCRITORIO (768px o más) */
@media (min-width: 768px) {
    #modal-texto .texto-web {
        display: block !important;
    }
}

/* 3. REGLA EXCLUSIVA PARA CELULARES (767px o menos) */
@media (max-width: 767px) {
    #modal-texto .texto-movil {
        display: block !important;
    }
}