@import url('https://fonts.googleapis.com/css2?family=Cormorant+Upright:wght@300;400;500;600;700&family=Fira+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Playball&display=swap');

/* Zebulon Italic */
@font-face {
    font-family: "zebulonitalic";
    src: url("https://domost.agb.bo/assets/fonts/Zebulon_Italic.woff2") format("woff2"),
         url("https://domost.agb.bo/assets/fonts/Zebulon_Italic.woff") format("woff"),
         url("https://domost.agb.bo/assets/fonts/Zebulon_Italic.ttf") format("truetype");
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

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

.hero,
.about,
.features-section {
    margin: 0;
    padding: 0;
    width: 100vw;
    /* asegura que ocupe todo el ancho de la ventana */
    overflow-x: hidden;
    /* evita scroll horizontal */
}

:root {
    --primary-dark: #848e68;
    --primary-ultra-dark: #4e553b;
    --primary-light: #f3ead8;
    --back-light: #fcfbf8;
    --secondary: #c3ba9c;
    --secondary-dark: #dec8a7;
    --pure-white: #fefefe;
    --pure-black: #0e0e0e;
}

body {
    font-family: "Cormorant Upright", serif;
    color: var(--primary-dark);
    font-weight: 400;
    font-style: normal;
    overflow-x: hidden;
}

.playball-regular {
    font-family: "Playball", cursive;
    font-weight: 400;
    font-style: normal;
}

.cormorant-upright-light {
    font-family: "Cormorant Upright", serif;
    font-weight: 300;
    font-style: normal;
}

.cormorant-upright-regular {
    font-family: "Cormorant Upright", serif;
    font-weight: 400;
    font-style: normal;
}


.zebulon-italic {
    font-family: "ZebulonItalic", sans-serif;
    font-weight: 400;
}

.fira-sans-black-italic {
  font-family: "Fira Sans", sans-serif;
  font-weight: 900;
  font-style: italic;
}

/* Header */
/* --- HEADER BASE --- */
.header {
    background: rgba(255, 255, 255, 0.40);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    /* altura inicial */
    transition: all 0.4s ease;
    /* transición suave */
    border-bottom: 1px solid rgba(195, 186, 156, 0.2);
    box-shadow: none;
    backdrop-filter: blur(10px);
}

/* --- NAV BASE --- */
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    /* logo izq, menú der */
    align-items: center;
    /* centra logo y texto verticalmente */
    padding: 0 2rem;
    line-height: 1;
    transform: scale(1);
    transition: transform 0.4s ease;
}

/* --- LOGO BASE --- */
.logo img {
    width: 200px;
    /* tamaño inicial */
    display: block;
    margin: 0;
    padding: 0;
    transition: width 0.4s ease;
    /* transición suave al cambiar tamaño */
}

/* --- MENU BASE --- */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--primary-dark);
    /* links iniciales */
    transition: color 0.3s ease;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.nav-menu a:hover {
    color: var(--pure-white);
}

/* -------------------
    ESTILOS AL SCROLL
------------------- */
.header.scrolled {
    background: rgba(255, 255, 255, 0.7);
    /* fondo translúcido */
    backdrop-filter: blur(10px);
    /* efecto vidrio */
    box-shadow: 0 5px 20px rgba(14, 14, 14, 0.1);
    padding-top: 0.85rem;
    padding-bottom: 0.3rem;
}

.header.scrolled .nav-container {
    transform: scale(0.8);
    /* reduce todo el nav */
    transform-origin: top center;
}

.header.scrolled .logo img {
    width: 160px;
    /* logo reducido */
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--pure-white);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(243, 234, 216, 0.4), rgba(209, 187, 154, 0.3));
    z-index: 1;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
    padding: 0 2rem;
}

.hero-title {
    font-size: 4rem;
    margin-top: 20rem;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards 0.5s;
    letter-spacing: 3px;
    color: var(--back-light);
}

.hero-subtitle {
    font-size: 1.6rem;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards 0.8s;
    letter-spacing: 0.5px;
}

.cta-button {
    display: inline-block;
    background: var(--primary-dark);
    color: var(--primary-light);
    padding: 1.2rem 3rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards 1.1s;
    letter-spacing: 0.5px;
    font-variant: small-caps;
}

.secondary {
    background: var(--back-light);
    color: var(--primary-dark);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.section-title {
    text-align: center;
    font-size: 3.5rem;
    font-weight: 400;
    margin-bottom: 3rem;
    color: var(--primary-medium);
    letter-spacing: -1px;
}


/* ==== Floating Title ==== */
.floating-title {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    z-index: 5;
}

.floating-title-box {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    padding: 0.5rem 1.5rem;
    text-align: center;
    color: var(--back-light);
    font-weight: 500;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    pointer-events: none;

}

/* Tablets */
@media (max-width: 992px) {
    .floating-title {
        top: 15px;
    }

    .floating-title-box {
        font-size: 1.5rem;
        padding: 0.4rem 1.2rem;
    }
}

/* Móviles */
@media (max-width: 600px) {
    .floating-title {
        top: 10px;
    }

    .floating-title-box {
        font-size: 1.2rem;
        padding: 0.3rem 1rem;
    }
}

/* --- ABOUT SECTION --- */
.about {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
}

.about-image {
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.about-image::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(209, 187, 154, 0.3), rgba(243, 234, 216, 0.4));
    pointer-events: none;
    /* Para no interferir con interacciones */
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translateY(0);
    transition: transform 0.2s ease-out;
}

.about-card {
    position: absolute;
    top: 50%;
    left: 70%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.30);
    backdrop-filter: blur(10px);
    padding: 2rem 3rem;
    color: #000;
    max-width: 450px;
    text-align: left;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);

    /* Fade-in inicial */
    opacity: 0;
    transform: translate(-50%, -40%);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Cuando se agrega la clase show */
.about-card.show {
    opacity: 1;
    transform: translate(-50%, -50%);
}

.about-card h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.about-card p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0.8rem;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .about {
        flex-direction: column;
        height: 80vh;
        justify-content: center;
        align-items: center;
    }

    .about-image {
        width: 100%;
        height: 100%;
    }

    .about-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .about-card {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -40%);
        max-width: 85%;
        width: 85%;
        text-align: center;
        padding: 1.5rem;
        opacity: 0;
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

    .about-card.show {
        opacity: 1;
        transform: translate(-50%, -50%);
    }

    .about-card h2 {
        font-size: 1.5rem;
    }

    .about-card p {
        font-size: 16px;
    }
}

.section-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--primary-dark);
}

/* Features Section */
/* Features Section */
.features-section {
    width: 100%;
    height: 90vh;
    background: var(--back-light);
    margin: 0;
    padding: 0;
    display: flex;
    position: relative;
}

.features {
    display: flex;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Feature card base */
.feature-card {
    flex: 1;
    background-position: center;
    background-size: cover;
    position: relative;
    transition: flex 0.6s ease, transform 0.6s ease;
    display: flex;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
}

/* Pseudo overlay oscuro */
.feature-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    transition: background 0.4s ease;
    z-index: 1;
}

.feature-card.active::before,
.feature-card:hover::before {
    background: rgba(0, 0, 0, 0.2);
}

/* Overlay base (centrado inicial) */
.feature-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    padding: 0;
    background: none;
    backdrop-filter: none;
    color: #fff;
    text-align: center;
    opacity: 1;
    transition: all 0.5s ease;
    z-index: 2;
}

.feature-overlay h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
}

.feature-overlay p {
    display: none;
}

/* Overlay en hover/active rectángulo */
.feature-card.active .feature-overlay,
.feature-card:hover .feature-overlay {
    width: 60%;
    height: 8rem;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    color: var(--back-light);
    text-align: left;
    opacity: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 0;
    border-bottom: 4px solid var(--primary-dark);
}

/* Mostrar párrafo */
.feature-card.active .feature-overlay p,
.feature-card:hover .feature-overlay p {
    display: block;
    color: var(--pure-black);
}

.feature-card.active .feature-overlay h3,
.feature-card:hover .feature-overlay h3 {
    display: block;
    color: var(--primary-dark);
}

/* Overlay arriba */
.feature-card.overlay-top.active .feature-overlay,
.feature-card.overlay-top:hover .feature-overlay {
    top: 7rem;
    bottom: auto;
    left: 50%;
    transform: translateX(-50%);
}

/* Overlay centrado */
.feature-card.overlay-center.active .feature-overlay,
.feature-card.overlay-center:hover .feature-overlay {
    top: 50%;
    bottom: auto;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Overlay abajo */
.feature-card.overlay-bottom.active .feature-overlay,
.feature-card.overlay-bottom:hover .feature-overlay {
    top: auto;
    bottom: 7rem;
    left: 50%;
    transform: translateX(-50%);
}

.features.expanded .feature-card:not(.active) {
    flex: 0.7;
    filter: brightness(0.6);
}

.feature-card.active {
    flex: 2;
    transform: scale(1.02);
    z-index: 3;
}

@media (max-width: 1024px) {
    .features-section {
        height: auto;
        display: block;
        padding: 0;
    }

    .features {
        flex-direction: column;
        height: auto;
        overflow: visible;
        gap: 0;
    }

    .feature-card {
        width: 100%;
        height: auto;
        min-height: 280px;
        align-items: center;
        justify-content: center;
        position: relative;
        margin: 0;
    }

    /* Quitar pseudo-máscara negra completamente */
    .feature-card::before {
        content: none !important;
        background: none !important;
    }

    /* Overlay siempre centrado y visible */
    .feature-card .feature-overlay,
    .feature-card.overlay-top .feature-overlay,
    .feature-card.overlay-center .feature-overlay,
    .feature-card.overlay-bottom .feature-overlay {
        top: auto !important;
        bottom: 2rem !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 90%;
        height: 5rem;
        padding: 0.5rem 2rem;
        background: rgba(255, 255, 255, 0.8);
        backdrop-filter: blur(12px);
        color: var(--primary-dark);
        text-align: center;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        border-radius: 0;
        border-bottom: 4px solid var(--primary-dark);
        opacity: 1;
    }

    /* Estilos para hover/active en mobile - fondo más blanco */
    .feature-card:hover .feature-overlay,
    .feature-card.active .feature-overlay {
        transform: translate(-50%, -50%) !important;
        opacity: 1 !important;
        background: rgba(255, 255, 255, 0.8) !important;
        /* Fondo más blanco */
        backdrop-filter: blur(12px) !important;
        /* Mantener efecto espejo */
    }

    /* Colores específicos para hover/active en mobile */
    .feature-card:hover .feature-overlay h3,
    .feature-card.active .feature-overlay h3 {
        color: var(--primary-dark) !important;
        /* Color primary-dark para h3 */
    }

    .feature-card:hover .feature-overlay p,
    .feature-card.active .feature-overlay p {
        color: var(--pure-black) !important;
        /* Color pure-black para p */
        display: block !important;
    }

    .feature-overlay h3 {
        font-size: 1rem;
        margin: 0;
        line-height: 1.2;
        transition: color 0.3s ease;
    }

    .feature-overlay p {
        color: var(--back-light);
        transition: color 0.3s ease;
        margin: 0.3rem 0 0 0;
        font-size: 0.8rem;
        display: none;
    }
}

/* ==== Gallery Section ==== */
.gallery {
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 50vh);
    width: 100%;
    height: 100%;
}

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

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

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

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-text {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    padding: 0.5rem 1rem;
}

/* ==== Lightbox ==== */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.lightbox img {
    max-width: 90%;
    max-height: 85%;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
}

.lightbox .close {
    position: absolute;
    top: 20px;
    right: 35px;
    font-size: 40px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.lightbox .close:hover {
    transform: scale(1.2);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ==== Responsive ==== */

/* Tablets (pantallas medianas) */
@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }

    .gallery-item {
        height: 35vh;
    }

    .gallery-text {
        font-size: 1.2rem;
    }
}

/* Móviles (pantallas pequeñas) */
@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .gallery-item {
        height: 40vh;
    }

    .gallery-overlay {
        opacity: 1;
        /* siempre visible en mobile */
    }

    .gallery-text {
        font-size: 1rem;
        padding: 0.3rem 0.5rem;
    }
}

/* Experience Section */
.experience {
    padding: 8rem 0;
    background: var(--primary-dark);
    color: var(--pure-white);
}

.experience-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.experience-title {
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 3rem;
    letter-spacing: -1px;
}

.experience-text {
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1.8;
    margin-bottom: 3rem;
    color: rgba(254, 254, 254, 0.9);
}

/* ==== Contact Section ==== */
.contact-section {
  position: relative;
  padding: 5rem 2rem;
  background-image: url('/assets/images/background/title_back.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  font-family: inherit; /* hereda la tipografía del body */
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(243, 234, 216, 0.4), rgba(209, 187, 154, 0.3));
  z-index: 1;
}

.contact-container {
  position: relative;
  display: flex;
  gap: 2rem;
  z-index: 2;
  flex-wrap: wrap;
  font-family: inherit; /* hereda la tipografía del body */
}

/* ==== Formulario ==== */
.contact-form {
  flex: 1 1 400px;
  background: rgba(255,255,255,0.5); /* glass effect */
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

.contact-form h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--primary-dark);
  font-family: inherit;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select,
.contact-form button {
  border: none;
  border-radius: 0;
  font-family: inherit; /* hereda la tipografía del body */
  font-size: 1rem;
  background: rgba(255,255,255,0.25); /* glass effect */
  color: var(--pure-black);
  backdrop-filter: blur(12px);
  padding: 0.8rem 1rem;
  transition: all 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: 2px solid var(--primary-dark);
  background: rgba(255,255,255,0.35);
}

.contact-form button {
  background-color: var(--primary-dark);
  color: var(--back-light);
  padding: 0.8rem 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease;
  backdrop-filter: blur(12px);
}

.contact-form button:hover {
  transform: scale(1.05);
}

/* ==== Filas del formulario ==== */
.row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.row input,
.row select {
  flex: 1 1 45%;
}

/* ==== Textarea ==== */
textarea {
  resize: none;
  min-height: 80px;
}

/* ==== Info Cards ==== */
.contact-info-grid {
  flex: 1 1 400px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.info-card {
  background: rgba(255,255,255,0.5); /* glass effect */
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--pure-black);
  gap: 0.5rem;
  font-family: inherit; /* hereda la tipografía del body */
  box-shadow: 0 6px 24px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.info-card:hover {
  background: rgba(255,255,255,0.35);
}


.loc-img{
    width: 40px !important;
}

.info-card img {
  width: 50px;
}

.info-card h3 {
  margin: 0.5rem 0 0.3rem 0;
  font-size: 1.1rem;
  font-family: inherit; /* hereda la tipografía del body */
  color: var(--primary-dark);
}

.confirmation-message {
  color: green;
  font-weight: 600;
  margin-top: 0.5rem;
  font-family: inherit;
}

/* ==== Date Picker ==== */
input[type="date"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 0.8rem 1rem;
  background: rgba(255,255,255,0.25);
  color: var(--pure-black);
  border: none;
  border-radius: 0;
  backdrop-filter: blur(12px);
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  filter: invert(0.3);
}

input[type="date"]:focus {
  outline: 2px solid var(--primary-dark);
  background: rgba(255,255,255,0.35);
}

/* ==== Responsive ==== */
@media (max-width: 768px) {
  .contact-container {
    flex-direction: column;
  }
  .row {
    flex-direction: column;
  }
  .row input, .row select {
    flex: 1 1 100%;
  }
  .contact-info-grid {
    grid-template-columns: 1fr;
  }
}

.error-message {
  color: red;
  font-weight: 600;
  margin-top: 0.5rem;
  display: none; /* Oculto por defecto */
  font-family: inherit;
  transition: opacity 0.3s ease;
}

.error-message.show {
  display: block;
  opacity: 1;
}


/* Footer */
.footer {
    background: var(--pure-black);
    color: var(--pure-white);
    text-align: center;
    padding: 2rem 0;
}

.footer p {
    font-weight: 400;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .nav-container {
        justify-content: center;
    }

    .logo img {
        width: 160px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .experience {
        padding: 8rem 3rem;
    }

    .experience-title {
        font-size: 2.5rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}