  :root {
  /* Colores principales */
  --color-primary: #d00e3d;
  --color-primary-dark: #aa052c;
  --color-secondary-light: #858a90;
  --color-secondary: #394854;
  --color-secondary-dark: #222b32;
  --color-form-background: #f5f4f5;
  --color-white: #fff;
  --color-white-60: rgba(255,255,255,0.6);
  --max-width: 1200px;
 /* --font-family-base: "Geist", sans-serif;*/
  --font-family-base: "Playfair Display", serif;
  --font-size-base: clamp(0.80rem, 0.80vw, 1rem);
  --font-weight-400: 400;
  --font-weight-600: 600;
  --font-size-title: calc(0.5rem + 5 * ((100vw - 720px) / 720));
  }
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--color-secondary);
}

.page-content {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem;
}
ul {
    list-style: none;
}
a {
    text-decoration: none;
}

.img-res {
    width:100%;
    height:auto;

}
/* ===============
    HEADER
/* =============== */
.header-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    transition: background-color 0.3s ease;
    z-index: 999;
    padding: .4em 1em;
    border-bottom: solid 1px var(--color-white-60); 
    display: flex;
    flex-direction: row;
    justify-content: space-between;
} 
.header-top.scrolled {
    position: fixed; /* cuando haces scroll, se fija */
    background-color: var(--color-secondary);
}

/* ===================
    MENU
/* =================== */
/* ====== BASE (Mobile First) ====== */

/* Menú */
.xentsoft-header-nav {
    position: relative;
}

.xentsoft-header-menu {
    display: none; /* oculto por defecto en mobile */
    flex-direction: column;
    gap: 10px;
    margin: 0;
    background-color: var(--color-secondary);
    position: absolute;
    top: 40px; /* debajo del header */
    right: 0;
    width: 200px;
    padding:.6em; 
}

.xentsoft-header-menu.active {
    display: flex; /* se muestra al abrir */
}

.menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--color-white);
    cursor: pointer;
}

 .xentsoft-header-menu li a {
    color: #fff;
    text-decoration: none;
}

@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }

    .xentsoft-header-menu {
        display: flex !important; /* siempre visible */
        flex-direction: row;
        gap: 20px;
        background: transparent;
        position: static;
        width: auto;
        padding: 0;
    }

    .site-logo img {
        max-height: 50px;
    }

    .header-right {
        display:flex;
        align-items: center;
    }
}

@media (min-width: 1024px) {
    .site-logo img {
        max-height: 60px;
    }
    .xentsoft-header-menu {
        gap: 30px;
    }
}

/* =======================
IMAGEN DESTACADA HOME
/* ======================= */

/* Imagen destacada */
.featured-image {
    width: 100%;
    height: 50vh;
    overflow: hidden;
    position: relative;
}

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

.featured-image-page {
    width: 100%;
    height: 45vh;
    overflow: hidden;
    position: relative;
}



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


/* Contenedor overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column; /* mobile first: uno debajo del otro */
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding:0;
    text-align: center;
    color: #fff;
}

/* Bloques */
.hero-box, .hero-box-page {
    background: transparent;
    padding: 15px;
    border-radius: 8px;
    max-width: 90%;
}   

.hero-box {
    text-align: center;
}

.hero-box-page {
    text-align: left;
}
.hero-box-right {
    position: relative;
    width:100%;
    height:100%;
    display:none;
}

.imagen-derecha {
  position: absolute;   /* Permite ubicar la imagen dentro del div */
  bottom: 0;            /* Pegada al borde inferior */
  right: 0;  
}




.hero-box h1, .hero-box-page h1, .hero-box h2, .hero-box-page h2 {
        font-weight: var(--font-weight-600);
        line-height: .88957em;
        letter-spacing: -.04em;
}

.hero-box h1, .hero-box-page h1 {
    font-size: calc(var(--font-size-title) * 6.2);
}

.hero-box h2, .hero-box-page h2 {
    font-size: calc(var(--font-size-title) * 4.2);
}

.hero-box p, .hero-box-page p {
    font-size: calc(var(--font-size-title) * 2.5);
    font-weight: var(--font-weight-600);
}

.guarda {
    background: url('../img/guarda.png') repeat-x;
    height:20px;
    width:100%;
}

.interes {
    display:flex;
    flex-direction: column;
    width: 100%;
    text-align: center;
    background: #2e466c;
    padding:2em;
    color:#fff;
    gap: 1em;
}

.interes div {
    flex-direction: column;
    gap:2em;
}

/* Tablet y Desktop */
@media (min-width: 768px) {
     /* Imagen destacada */
    .featured-image {
        height: 80vh;
    }
    
    .featured-image-page {
        height: 50vh;
    }

    .hero-overlay {
        flex-direction: row; /* en pantallas grandes, uno al lado del otro */
        justify-content: flex-start;
        align-items: center;
        text-align: left;
        padding:0;
    }
    .hero-box, .hero-box-page {
        max-width: 40%;
    }
    .hero-box p, .hero-box-page p {
        font-size: calc(var(--font-size-title) * 2);
        letter-spacing: -.04em;
    }

    .hero-box-right {
        display:block;
    }

    .interes div {
        flex-direction: row;
        text-align: center;
    }

}

/* =================
    PAGE
/* ================= */
.page-div, .page-div-2 {
    width:100%;
    display:flex;
    flex-direction: column;
    margin:0;
    padding:0;
}


.page-div div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.page-div-2 div {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-div-2 div:first-child {
    justify-content:flex-start;
}
.page-div-2 div:last-child {
    justify-content: center;
}
.page-black {
    background: #000;
    color: #fff;
}

.page-white {
    background: #fff;
    color: var(--color-secondary);
}
.page-destacado {
       font-size: var(--font-size-base);
       font-weight: var(--font-weight-600);
       letter-spacing: -.04em;
}

.home-pad {
    padding: 3em;
} 
.page-ul {
   display:flex;
   flex-direction: column;
   justify-content:flex-start;

}

.page-ul i {
    margin-right: .5em;
    color: var(--color-primary-dark);
    padding:.4em;
   
}

.page-ul li {
    padding: 1em 0;
    border-bottom: dotted 1px var(--color-secondary-light);
}

.page-ul li a {
    color: var(--color-secondary);
    font-size: var(--font-weight-600);
}


@media (min-width: 768px) {
    .page-div, .page-div-2 {
        flex-direction:row;
    }
    .page-div div, .page-div-2 div {
        width:50%;
    }
    .home-pad {
        padding: 6em 2em 6em 0;
    }

    .page-div-2 div div {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

    .page-destacado {
       font-size: calc(var(--font-size-title) * 1.1);
    }
}

/* ===============
    CONTACTO
/* =============== */

.page-contacto {
    width:100%;
    display:flex;
    flex-direction: column;
    margin:0;
    padding:0;
}

.video-container {
            position: relative;
            padding-bottom: 56.25%; /* Relación 16:9 */
            height: 0;
            overflow: hidden;
            max-width: 100%;
            background: #000;
        }
        .video-container iframe {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border: 0;
        }

.page-contacto-2 {
    border-top: dotted 1px var(--color-secondary-light);
    background-color: var(--color-white);
}

.contacto-left-1 {
    display:flex;
    justify-content: flex-end;
    align-items:center;
    background: var(--color-primary);
}

.contacto-left-1 div {
    padding:1em;
    font-size: var(--font-size-base);
    color: var(--color-white);

}

.contacto-right-1 {
    display:flex;
    justify-content: flex-start;
    align-items:center;
    background: var(--color-white);
}

.contacto-right-1 div {
    padding:4rem 1em;
    font-size: var(--font-size-base);
    color: var(--color-secondary);
}

.contacto-ul {
    display:flex;
    flex-direction: column;
    gap: 1em;
}
.contacto-ul i {
    margin-right: .5em;
    color: var(--color-primary-dark);
    padding:.4em;
    border: solid 1px var(--color-primary-dark);
    border-radius: 50%;
}

.contacto-ul li:first-child i {
    padding: .4em .55em;
}
.contacto-ul li {
    padding: 1em 0;
    border-bottom: dotted 1px var(--color-secondary-light);
}

.contacto-ul li a {
    color: var(--color-secondary);
    font-size: var(--font-weight-600);
}

.contacto-left-2 {
    display:flex;
    justify-content: flex-end;
    align-items:center;
    
}

.contacto-left-2 div {
    padding:1em;
    font-size: var(--font-size-base);
    color: var(--color-secondary);

}

.contacto-right-2 {
    display:flex;
    justify-content: flex-start;
    align-items:center;

}

.contacto-right-2 div {
    padding:2rem 1em;
    font-size: var(--font-size-base);
    color: var(--color-secondary);
}

@media(min-width:768px) {
    .page-contacto {
        flex-direction:row;
    }

    .contacto-left-1 {
        width:50%;
    }

    .contacto-left-1 div {
        padding:10rem 2em;
        font-size: calc(var(--font-size-title) * 1.1);
        max-width: calc(var(--max-width) / 2);

    }

    .contacto-right-1 {
        width:50%;
    }

    .contacto-right-1 div {
        max-width: calc(var(--max-width) / 2);
    }

    .contacto-left-2 {
        width:50%;
    }

    .contacto-left-2 div {
        font-size: calc(var(--font-size-title) * 1.1);
        max-width: calc(var(--max-width) / 2);

    }

    .contacto-right-2 {
        width:50%;
    }

    .contacto-right-2 div {
        padding-left: 2em;
        max-width: calc(var(--max-width) / 2);
    }
}

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

.wpcf7-form-control {
    border-radius:0;
    border: transparent;
    background: var(  --color-form-background);
    padding: .7em 1em;
}

.wpcf7-submit {
    width:100%;
    background: var(--color-primary);
    color: var(--color-white);
    font-weight: var(--font-weight-600);
    font-size: var(--font-size-button);
    text-transform: uppercase;
    border-radius: 5px;
    padding:1em;
}

@media(min-width:768px) {
    .wpcf7-form {
        width:65%
    }
}

.footer, .footer-bottom {
    background:  var(--color-secondary-dark);
    color: var(--color-white);
}

.page-footer {
    display:flex;
    flex-direction: column;
    gap: 1em;
}

.page-footer a {
    color: var(--color-white);
}
    
@media(min-width:768px) {
    .page-footer {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-nav {
    margin-left:0;
    padding-left:0;
}

.footer-nav li {
    padding: .3em 0;
}

.footer-nav i {
    margin-right: .5em;
    color: var(--color-primary-dark);
    padding:.4em;
    border-radius: 50%;
}

.footer-nav li:first-child i {
    padding: .4em .55em;
}

.xentsoft-footer-menu {
    margin-left:0;
    padding-left:0;
}

.xentsoft-footer-menu li  {
    padding: .3em;
}

.footer-bottom {
    padding: 1em 0;
    border-top: solid 1px var(--color-white-60);
    display:flex;
    flex-direction:column;
    justify-content: center;
    align-items: center;
    gap: 1em;

}

@media(min-width:768px) {
    .footer-bottom {
        flex-direction:row;
     
    }
}
.full-width {
    width:100%
}

.text-center {
    text-align:center;

}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 10px 14px;
    border-color: transparent;
    border-radius: 10px;
    font-size: .9rem;
    font-weight: 600;
    text-align: center;
}

@media(min-width:768px) {
    #mega-menu-wrap-header_menu {
        background-color: transparent;
    }
}

.div-left, .div-right {
  position: relative;
  opacity: 0;
  transform: translateX(0);
  transition: all 0.8s ease;
}

.div-left {
  transform: translateX(-100px);
}

.div-right {
  transform: translateX(100px);
}

.div-left.visible, .div-right.visible {
  transform: translateX(0);
  opacity: 1;
}


.masonry-gallery {
  margin: 2em auto;
}

.masonry-item {
  width: 250px;
  margin-bottom: 10px;
}

.masonry-item img {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
  border-radius: 4px;
  transition: transform 0.3s ease;
}

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

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 60px;
  left: 0; top: 0;
  width: 100%; height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80%;
}

#caption {
  margin: 15px auto;
  text-align: center;
  color: #ccc;
  font-size: 16px;
}

.close {
  position: absolute;
  top: 20px; right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}
