/* ==========================================================================
   Author's custom styles
   ========================================================================== */
@import 'css/bootstrap.min.css';
@import url('https://fonts.googleapis.com/css2?family=Barlow: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&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Shadows+Into+Light&display=swap');
:root {
    --azul: #003664;
    --blanco:#ffffff;
    --destacado:#ff9f50;
    --descacado2:#ffda50;
    --footer:#4c7292;
}

/* Normalización de Gutenberg */
/* Bloques de columnas */
.wp-block-columns {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-default);
}

.wp-block-column {
    padding: calc(var(--gap-default) / 2);
}

/* Compatibilidad con clases de contenedor */
.wp-block-columns.container,
.wp-block-columns.container-fluid {
    padding-left: 15px;
    padding-right: 15px;
}

.wp-block-columns.container .wp-block-column,
.wp-block-columns.container-fluid .wp-block-column {
    padding: 0 calc(var(--gap-default) / 2);
}

/* Compatibilidad adicional en el editor de bloques */
.block-editor .wp-block-columns {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-default);
}

.block-editor .wp-block-column {
    flex: 1 1 auto;
    padding: calc(var(--gap-default) / 2);
}

/* Contenedores y depuración visual */
.debug .wp-block-columns {
    border: 1px dashed red;
}

.debug .wp-block-column {
    border: 1px solid blue;
}

.debug .container {
    background-color: rgba(255, 0, 0, 0.2);
}

.debug .container-fluid {
    background-color: rgba(0, 0, 255, 0.1);
}

.debug .row {
    border: thin dashed red;
}

.debug [class*='col-'] {
    border: thin solid green;
}

.debug footer {
    background-color: rgba(0, 255, 0, 0.2);
}

.debug .wp-block-columns[class~="container"] .row {
    padding-left: 0;
    padding-right: 0;
    background-color: rgba(0, 180, 120, 0.2);
}

/* ==========================================
   GRID SOLO CON LÍNEAS VERTICALES - Alineado con Bootstrap
   ========================================== */

.wrapper {
    position: relative;
    font-family: "Barlow", sans-serif !important;
    background-color: #f8f9fa;
    background-image: repeating-linear-gradient(90deg, rgba(200, 200, 200, 0.5) 0px, rgba(200, 200, 200, 0.5) 1px, transparent 1px, transparent calc(1920px / 12));
    background-size: 100% 100%;
    background-position: center center;
    overflow-x: hidden;
}
.informal, .informal h1, .informal h2, .informal h3, .informal h4, .informal p{
      font-family: "Shadows Into Light", cursive !Important;
}
.text-justify{
    text-align: justify !important;
}
.destacado {
    color:var(--blanco);
  text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.6);
}


/* Contenedor flotante que sigue al cursor */
.rosa-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
  opacity: 0;
  transition: opacity .35s ease;
}

.rosa-cursor.is-visible {
  opacity: 1;
}

/* El SVG ocupa todo el contenedor */
.rosa-cursor__svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Color amarillo del polígono */
.rosa-cursor__svg .st0 {
  fill: var(--destacado);
}
/* ============================================
   ROSA CURSOR - GIRO
   ============================================ */
@keyframes rosa-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(0deg); }
}

.rosa-cursor__svg {
  animation: rosa-spin 6s linear infinite;
  transform-origin: 50% 50%;
} 


.header {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: auto;
    z-index: 10;
    padding-top: 20px;
}

.vh-100 {
    min-height: 100vw;
}
.vh-80 {
    min-height: 80vw;
}
.vh-60 {
    min-height: 60vw;
}
.vh-50 {
    min-height: 50vw;
}
.vh-40 {
    min-height: 40vw;
}
.vh-30 {
    min-height: 30vw;
}
.vh-20 {
    min-height: 20vw;
}


/* clases para el editor */
.is-root-container .is-style-container-container-fluid {
    border: thin dashed red;
}
.is-root-container .is-style-container-container {
    border: thin dashed blue;
}
.custom-logo {
    width: 250px;
    height: auto !important;
    }
    .custom-logo-link {
    display: inline-block;
    }
    /* Ocultar título si está activado */
    .site-title-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    border: 0 !important;
    }



.navbar,
.navbar a {
    color: #fff;
    text-transform: uppercase;
    padding-left: 0;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.4);
}
.navbar li {
    height: 20px;
}

.navbar li a::after {
    content: "";
    border-right: 1px solid #fff;
    margin-left: 10px;
    margin-right: 10px;
}
.nav-link {
    display: contents;
}

/* El último li no tendrá borde */
.navbar li:last-child a::after {
    border-right: none;
}
.navbar{
    padding: 20px 10px 0;
    font-weight: 600;
}
.nav-link:focus, .nav-link:hover{
     color: var(--destacado);   
}
/* ============================================
   MENÚ MÓVIL - CORTINA DESDE DERECHA
   ============================================ */

/* Ocultar el menú por defecto en móviles */
@media only screen and (max-width: 991px) {
    .navbar-collapse {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        width: 100% !important;
        height: 100vh !important;
        max-height: 100vh !important;
        background: rgba(0, 54, 100, 0.92) !important;
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        transition: right 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
        z-index: 9999 !important;
        padding: 40px 20px !important;
        overflow-y: auto !important;
        
    }

    .navbar-collapse.show {
        right: 0 !important;
    }

    /* Ocultar el bg-collapse y logo-mobile si existen */
    .bg-collapse,
    .logo-mobile {
        display: none !important;
    }

    /* Estilos del menú en móvil */
    .navbar-nav {
        flex-direction: column !important;
        align-items: center !important;
        gap: 20px !important;
        width: 100% !important;
        max-width: 400px !important;
        margin: 0 auto !important;
    }

    .navbar-nav .nav-item {
        width: 100% !important;
        text-align: center !important;
        margin: 0 !important;
        padding: 0 !important;
        height: auto !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
        padding-bottom: 15px !important;
    }

    .navbar-nav .nav-item:last-child {
        border-bottom: none !important;
        padding-bottom: 0 !important;
    }

    .navbar-nav .nav-link {
        color: #ffffff !important;
        font-size: 1.4rem !important;
        font-weight: 500 !important;
        text-transform: uppercase !important;
        letter-spacing: 2px !important;
        padding: 10px 0 !important;
        transition: all 0.3s ease !important;
        position: relative !important;
        display: inline-block !important;
    }

    .navbar-nav .nav-link::after {
        content: none !important;
        border-right: none !important;
    }

    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link:focus {
        color: var(--descacado); !important;
        transform: scale(1.05) !important;
    }


    .navbar-nav .nav-link.active {
        color: #ffffff !important;
        font-weight: 700 !important;
    }

    .navbar-nav .nav-link.active::before {
        content: "✦ ";
        opacity: 0.6;
    }

    .navbar-nav .nav-link.active::after {
        content: " ✦";
        opacity: 0.6;
    }

    /* Botón hamburguesa en móvil */
    .navbar-toggler {
        position: relative !important;
        z-index: 10000 !important;
        border: none !important;
        padding: 0 !important;
        background: transparent !important;
        transition: transform 0.3s ease !important;
        outline: none !important;
        box-shadow: none !important;
        margin-left: auto !important;
    }

    .navbar-toggler[aria-expanded="true"] {
        transform: rotate(90deg) !important;
    }

    .navbar-toggler svg {
        transition: all 0.3s ease !important;
        fill: #ffffff !important;
    }

    .navbar-toggler svg#openmenu {
        display: block !important;
    }

    .navbar-toggler[aria-expanded="true"] svg#openmenu {
        display: none !important;
    }

    .navbar-toggler svg#closemenu {
        display: none !important;
    }

    .navbar-toggler[aria-expanded="true"] svg#closemenu {
        display: block !important;
        fill: #ffffff !important;
    }

    /* Fondo para cuando el menú está abierto (oscurece el contenido) */
    .navbar-collapse.show::before {
        content: '' !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background: rgba(0, 0, 0, 0.3) !important;
        z-index: -1 !important;
    }

    /* Ajuste para el header en móvil */
    .header-site {
        position: relative !important;
        z-index: 9998 !important;
    }

    /* Evitar scroll cuando menú está abierto */
    body.menu-open {
        overflow: hidden !important;
    }
}

/* ============================================
   AJUSTES PARA TABLETS PEQUEÑAS
   ============================================ */
@media only screen and (max-width: 768px) {
    .navbar-nav .nav-link {
        font-size: 1.2rem !important;
        letter-spacing: 1.5px !important;
        padding: 8px 0 !important;
    }

    .navbar-nav {
        gap: 15px !important;
    }

    .navbar-nav .nav-item {
        padding-bottom: 12px !important;
    }
}

/* ============================================
   AJUSTES PARA MÓVILES PEQUEÑOS
   ============================================ */
@media only screen and (max-width: 480px) {
    .navbar-collapse {
        padding: 30px 15px !important;
        backdrop-filter: blur(8px) !important;
        -webkit-backdrop-filter: blur(8px) !important;
    }

    .navbar-nav .nav-link {
        font-size: 1rem !important;
        letter-spacing: 1px !important;
        padding: 6px 0 !important;
    }

    .navbar-nav {
        gap: 10px !important;
        max-width: 300px !important;
    }

    .navbar-nav .nav-item {
        padding-bottom: 10px !important;
    }

    .navbar-toggler svg {
        width: 24px !important;
        height: 24px !important;
    }
}

/* ============================================
   ANIMACIÓN DE ENTRADA PARA ITEMS DEL MENÚ
   ============================================ */
@media only screen and (max-width: 991px) {
    .navbar-collapse.show .nav-item {
        animation: menuItemFadeIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
        opacity: 0;
        transform: translateX(30px);
    }

    .navbar-collapse.show .nav-item:nth-child(1) { animation-delay: 0.05s; }
    .navbar-collapse.show .nav-item:nth-child(2) { animation-delay: 0.10s; }
    .navbar-collapse.show .nav-item:nth-child(3) { animation-delay: 0.15s; }
    .navbar-collapse.show .nav-item:nth-child(4) { animation-delay: 0.20s; }
    .navbar-collapse.show .nav-item:nth-child(5) { animation-delay: 0.25s; }
    .navbar-collapse.show .nav-item:nth-child(6) { animation-delay: 0.30s; }
    .navbar-collapse.show .nav-item:nth-child(7) { animation-delay: 0.35s; }
    .navbar-collapse.show .nav-item:nth-child(8) { animation-delay: 0.40s; }
    .navbar-collapse.show .nav-item:nth-child(9) { animation-delay: 0.45s; }
    .navbar-collapse.show .nav-item:nth-child(10) { animation-delay: 0.50s; }

    @keyframes menuItemFadeIn {
        from {
            opacity: 0;
            transform: translateX(30px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
}

.carta {
  /* Fondo celeste similar a #003664 al 10% de opacidad */
  background-color: rgba(0, 54, 100, 0.1);
  
  /* Borde con el mismo tono pero un poco más definido */
  border: 1px solid rgba(0, 54, 100, 0.2);
  
  /* Sombra suave */
  box-shadow: 0 4px 10px rgba(0, 54, 100, 0.15);
    margin: 0 20px 0 0 !important; 
  /* Opcional: para que se vea como tarjeta */
  border-radius: 10px;
  padding: 20px;
}

/* ============================================
   BASICOS
   ============================================ */
.has-x-large-font-size {
    font-size: 55px !important;
}
.has-large-font-size {
    font-size: 45px !important;
}
.has-medium-font-size {
    font-size: 24px !important;
    font-weight: 400;
}
.has-small-font-size {
    font-size: 18px !important;
}

p{
    font-size: 18px;
}
.titulo strong, .titulo b{
    color:var(--destacado);
}
.p-10{
    padding: 0 20px;
}
/* ============================================
   BLOQUE: TARJETA (SOLO FRONTEND)
   ============================================ */

.team-block-wrapper {
    padding: 40px 0;
}

.team-grid {
    margin: 0 -15px;
    display: flex;
    flex-wrap: wrap;
}

.team-card {
    padding: 0 15px;
    cursor: pointer;
}

.team-card_media {
    position: relative;
    overflow: hidden;
    background: #1a1a1a;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.4s ease;
}

/* EFECTO KEN BURNS - Hover */
.team-card_media:hover .team-card_image {
    transform: scale(1.15);
}

.team-card_media:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.team-card_image {
    display: block;
    width: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    aspect-ratio: 1 / 0.7;
    transform: scale(1);
}

/* ============================================
   OVERLAY CENTRADO CON DEGRADADO
   ============================================ */

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 40%, rgba(0, 0, 0, 0.3) 70%, rgba(0, 0, 0, 0.5) 100%);
    color: #ffffff;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
}

/* Efecto hover en el overlay - degradado más pronunciado */
.team-card_media:hover .card-overlay {
    background: linear-gradient(rgba(188, 185, 185, 0) 46.71%, rgba(0, 0, 0, 0.5) 100%), linear-gradient(rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.2) 100%);
}

/* ============================================
   TÍTULO - SOLO APARECE EN HOVER
   ============================================ */

.team-card_title {
    color: #ffffff;
    margin: 0 0 10px 0;
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* El título solo aparece en hover */
.team-card_media:hover .team-card_title {
    opacity: 1;
    transform: translateY(-8px);
}

/* ============================================
   VER MÁS - SOLO APARECE EN HOVER
   ============================================ */

.card-hint {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    padding: 10px 30px;
    color: #ffffff;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 10px;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(5px);
    pointer-events: none;
}

/* El hint solo aparece en hover */
.team-card_media:hover .card-hint {
    opacity: 1;
    transform: translateY(0);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
}

/* ============================================
   FLYOUT - PANEL LATERAL FIJO
   ============================================ */

.flyout-container {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 99999 !important;
    display: none;
}

.flyout-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    animation: flyoutFadeIn 0.4s ease !important;
}

.flyout-panel {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 80vw !important;
    height: 100% !important;
    background: #ffffff !important;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3) !important;
    animation: flyoutSlideInRight 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    z-index: 99999 !important;
    padding: 40px !important;
}

/* Scroll personalizado para el flyout */
.flyout-panel::-webkit-scrollbar {
    width: 6px;
}

.flyout-panel::-webkit-scrollbar-track {
    background: var(--azul);
}

.flyout-panel::-webkit-scrollbar-thumb {
    background: var(--azul);
    border-radius: 3px;
}

.flyout-panel::-webkit-scrollbar-thumb:hover {
    background: var(--azul);
}

/* ============================================
   BOTÓN CERRAR - btn-popup-close
   ============================================ */

.btn-popup-close {
    position: fixed !important;
    top: 30px !important;
    right: 30px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    border: none !important;
    padding: 5px 8px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    z-index: 100000 !important;
    background: rgba(0, 54, 100, 0.4) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
    text-decoration: none !important;
    color: #1a1a1a !important;
    font-family: inherit !important;
    border-radius: 0;
}

.btn-popup-close:hover {
    background:  var(--azul) !important;
    color: #1a1a1a !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2) !important;
    transform: scale(1.05);
}


.btn-popup-close__icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 24px !important;
    height: 24px !important;
    color: #1a1a1a !important;
}

.btn-popup-close__icon svg {
    width: 100% !important;
    height: 100% !important;
}

.btn-popup-close__text {
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    color: #1a1a1a !important;
}
.btn-popup-close:hover .btn-popup-close__text,.btn-popup-close:hover .btn-popup-close__icon {
    color: #ffffff !important;
}

/* ============================================
   CONTENIDO DEL FLYOUT
   ============================================ */

.flyout-content {
    display: block !important;
    min-height: 100% !important;
    padding: 0 !important;
}

#flyout-body {
    padding: 20px 0;
}

#flyout-body h2,
#flyout-body h3,
#flyout-body h4 {
    color: var(--azul);
}

#flyout-body p {
    font-size: 16px;
}

#flyout-body ul,
#flyout-body ol {
    margin-bottom: 20px !important;
    padding-left: 25px !important;
}

#flyout-body ul li,
#flyout-body ol li {
    margin-bottom: 8px !important;
}

/* ============================================
   ANIMACIONES DEL FLYOUT
   ============================================ */

@keyframes flyoutFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes flyoutSlideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}



/* ============================================
   CARD OVERLAY - VISIBLE EN MÓVIL
   ============================================ */

/* Móviles y tablets - overlay siempre visible */
@media only screen and (max-width: 991px) {
    .card-overlay {
        background: linear-gradient(rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.6) 100%) !important;
        
        -webkit-backdrop-filter: blur(2px) !important;
        padding: 20px !important;
    }

    /* Título siempre visible en móvil */
    .team-card_title {
        opacity: 1 !important;
        transform: translateY(0) !important;
        font-size: 1.4rem !important;
        margin-bottom: 5px !important;
        text-shadow: 0 2px 15px rgba(0, 0, 0, 0.8) !important;
    }

    /* Hint siempre visible en móvil */
    .card-hint {
        opacity: 1 !important;
        transform: translateY(0) !important;
        background: rgba(0, 54, 100, 0.6) !important;
        border-color: rgba(255, 255, 255, 0.4) !important;
        padding: 6px 18px !important;
        font-size: 0.65rem !important;
        margin-top: 5px !important;
        backdrop-filter: blur(4px) !important;
        -webkit-backdrop-filter: blur(4px) !important;
        pointer-events: none !important;
    }

    /* La imagen mantiene su escala pero sin el zoom exagerado en móvil */
    .team-card_image {
        aspect-ratio: 1 / 0.8 !important;
        transform: scale(1) !important;
    }

    /* Removemos el efecto hover en móvil para mantener consistencia */
    .team-card_media:hover .team-card_image {
        transform: scale(1) !important;
    }

    .team-card_media:hover .card-overlay {
        background: linear-gradient(rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.6) 100%) !important;
    }

    .team-card_media:hover .team-card_title {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }

    .team-card_media:hover .card-hint {
        opacity: 1 !important;
        transform: translateY(0) !important;
        background: rgba(0, 54, 100, 0.6) !important;
        border-color: rgba(255, 255, 255, 0.4) !important;
    }
}

/* Ajuste para tablets pequeñas */
@media only screen and (max-width: 768px) {
    .card-overlay {
        padding: 15px !important;
        background: linear-gradient(rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.7) 100%) !important;
    }

    .team-card_title {
        font-size: 1.2rem !important;
    }

    .card-hint {
        font-size: 0.6rem !important;
        padding: 5px 14px !important;
        background: rgba(0, 54, 100, 0.7) !important;
    }
    .p-10{
        padding: 0;
    }
}

/* Ajuste para móviles pequeños */
@media only screen and (max-width: 480px) {
    .card-overlay {
        padding: 12px !important;
        background: linear-gradient(rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.8) 100%) !important;
    }

    .team-card_title {
        font-size: 1rem !important;
        margin-bottom: 3px !important;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9) !important;
    }

    .card-hint {
        font-size: 0.5rem !important;
        padding: 4px 12px !important;
        letter-spacing: 1px !important;
        background: rgba(0, 54, 100, 0.8) !important;
        border-width: 1px !important;
    }

    .team-card_image {
        aspect-ratio: 1 / 0.9 !important;
    }
}





/* ============================================
   BLOQUE: SERVICIOS (CON BOOTSTRAP)
   ============================================ */

.services-block-wrapper {
    padding: 60px 0;
}

.services-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--azul);
    margin-bottom: 10px;
}

/* ============================================
   TARJETA DE SERVICIO - ESTILOS
   ============================================ */

.services-card {
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.services-card:hover {
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

/* ============================================
   HEADER DE LA TARJETA (con imagen de fondo)
   ============================================ */

.services-card_header {
    position: relative;
    padding: 60px 25px 40px 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    min-height: 180px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

/* Overlay para legibilidad */
.services-card_overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.6) 100%
    );
    transition: all 0.4s ease;
    z-index: 1;
}

.services-card_header:hover .services-card_overlay {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.7) 100%
    );
}

.services-card_content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.services-card_title {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* ============================================
   CUERPO EXPANDIBLE (contenido oculto)
   ============================================ */

.services-card_body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                padding 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 0 25px;
}

.services-card.is-open .services-card_body {
    max-height: 800px;
    padding: 25px;
}

.services-card_body-content {
    padding-top: 20px;
    border-top: 2px solid var(--azul);
}

.services-card_body-content p {
    margin-bottom: 12px;
    color: #4a4a4a;
    font-size: 0.95rem;
    line-height: 1.6;
}

.services-card_body-content ul,
.services-card_body-content ol {
    padding-left: 20px;
    margin-bottom: 12px;
}

.services-card_body-content ul li,
.services-card_body-content ol li {
    margin-bottom: 6px;
    color: #4a4a4a;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ============================================
   RESPONSIVE - SERVICIOS
   ============================================ */

/* Tablets */
@media only screen and (max-width: 991px) {
    .services-title {
        font-size: 2rem;
    }

    .services-card_header {
        padding: 50px 20px 30px 20px;
        min-height: 150px;
    }

    .services-card_title {
        font-size: 1.1rem;
    }
}

/* Móviles */
@media only screen and (max-width: 768px) {
    .services-block-wrapper {
        padding: 40px 0;
    }

    .services-title {
        font-size: 1.8rem;
    }

    .services-card_header {
        padding: 40px 16px 25px 16px;
        min-height: 130px;
    }

    .services-card_title {
        font-size: 1rem;
    }

    .services-card_body-content p,
    .services-card_body-content ul li,
    .services-card_body-content ol li {
        font-size: 0.85rem;
    }

    .services-card.is-open .services-card_body {
        padding: 20px 16px;
    }
}

/* Móviles pequeños */
@media only screen and (max-width: 480px) {
    .services-card_header {
        padding: 30px 12px 20px 12px;
        min-height: 110px;
    }

    .services-card_title {
        font-size: 0.9rem;
    }

    .services-card.is-open .services-card_body {
        padding: 16px 12px;
    }

    .services-card_body-content p,
    .services-card_body-content ul li,
    .services-card_body-content ol li {
        font-size: 0.8rem;
    }

    .services-title {
        font-size: 1.5rem;
    }
}





/* ==========================================
   SLIDER CON FONDO DINÁMICO (Swiper + imagen / video)
   ========================================== */

/* Altura en toda la cadena de contenedores de Swiper */
.ma-swiperslider {
    width: 100%;
    height: 100vh;
    min-height: 500px; /* fallback para pantallas bajas */
    position: relative;
    overflow: hidden;
}

.ma-swiperslider .swiper-wrapper {
    width: 100%;
    height: 100%;
}

.ma-swiperslider .swiper-slide {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.ma-swiperslider .swiper-slide .item.slides.has-bg {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

/* Fondo: imagen */
.ma-swiperslider .swiper-slide .slide-bg-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 0;
}

/* Fondo: video */
.ma-swiperslider .swiper-slide .slide-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: 0;
    pointer-events: none;
}

/* Contenido por encima del fondo */
.ma-swiperslider .swiper-slide .slide-content,
.ma-swiperslider .swiper-slide .contenido-centro,
.ma-swiperslider .swiper-slide .shadow {
    position: relative;
    z-index: 1;
}

.slider_text {
    margin: 100px 0px;
}

/* ==========================================
   AJUSTES ESPECÍFICOS DE SWIPER (fade + video)
   ========================================== */

/*
 * Importante: en modo fade, Swiper superpone los slides.
 * Necesitamos que el fondo esté visible en el slide activo y que
 * los inactivos no capturen eventos.
 */
.ma-swiperslider .swiper-slide {
    opacity: 0;
    transition: opacity 1.2s ease;
    pointer-events: none;
}

.ma-swiperslider .swiper-slide-active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

/* Si querés un leve zoom al entrar, descomentá estas líneas */
/*
.ma-swiperslider .swiper-slide-active .item.slides {
    animation: slideZoom 6s ease-out forwards;
}

@keyframes slideZoom {
    0%   { transform: scale(1.05); }
    100% { transform: scale(1); }
}
*/
/* ============================================
   FOOTER
   ============================================ */

footer{
    padding: 50px 0 ;
}
.footer-zone{
    background: var(--footer);
    color:var(--blanco);
    padding:20px !Important;
}
.footer-zone a{
    color:var(--blanco);
}
.footer-zone .vw-30{
    min-height: 20vh;
}
.footer-zone .vw-30{
    min-height: 30vh;
}
.footer-zone .vw-40{
    min-height: 40vh;
}
.footer-zone .vw-50{
    min-height: 50vh;
}
.footer-zone .menu{
    text-align: center;
    list-style: none;
    display: flex;
    justify-content: center;
}
.footer-zone .menu li{
    margin: 0 20px;
}
.footer-zone .menu a{
    text-transform: uppercase;
    color:var(--blanco);
    font-weight: 600;
    text-decoration: none;
}
.footer-zone .menu a:hover{
    color:var(--destacado);
}
/* Overlay degradado de abajo (0.8) hacia arriba (0) */
.slider_block .item.slides .slide-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.5) 10%,
        rgba(0, 0, 0, 0.2) 35%,
        rgba(0, 0, 0, 0.15) 65%,
        rgba(0, 0, 0, 0.2) 100%
    );
}
.logo_footer img{
    height: 100px;
}




/* ==========================================
   SCRUB STORY
   ========================================== */

.scrub-story-container {
    position: relative;
    width: 100%;
    height: 100vh;
    background-color: #fff;
    overflow: visible;   /* no recortar la composición */
    z-index: 1;
}

.scrub-desktop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* Composición anclada arriba, crece hacia abajo */
.scrub-images-stage {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    pointer-events: none;
}

.scrub-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
}

.scrub-image {
    position: relative;
    overflow: hidden;
    flex: 0 0 auto;
    will-change: width, height;
}

.scrub-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scrub-image--center {
    width: 100vw;
    height: 100vh;
    z-index: 3;
}

.scrub-image--left,
.scrub-image--right,
.scrub-image--top-left,
.scrub-image--top-right,
.scrub-image--bottom-left,
.scrub-image--bottom-right {
    width: 0;
    height: 0;
    z-index: 1;
}

/* El siguiente bloque tapa la parte que sobresale del scrub */
.scrub-story-container + * {
    position: relative;
    z-index: 2;
}

/* Texto superpuesto */
.scrub-content-wrapper {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 10;
}

.scrub-content-inner {
    max-width: 800px;
    text-align: center;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    padding: 20px;
    will-change: opacity, transform;
}
/* ==========================================
   SCRUB STORY — vista en el editor de Gutenberg
   ========================================== */

.scrub-editor {
    position: relative;
    width: 100%;
    /* En el editor, el bloque no debe ocupar toda la pantalla.
       Le damos una proporción 16/9 para que se vea cómodo. */
    aspect-ratio: 16 / 9;
    max-height: 60vh;      /* nunca más alto que el 60% del editor */
    overflow: hidden;
    background: #000;
}

.scrub-editor__media {
    position: relative;
    width: 100%;
    height: 100%;
}

.scrub-editor__media > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.scrub-editor__content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    pointer-events: none;
}

.scrub-editor__content > * {
    max-width: 700px;
}

/* ============================================
   CONTACT FORM 7
   ============================================ */

.wpcf7 form,
.wpcf7 label {
    width: 100%;
}

.wpcf7 input,
.wpcf7 textarea {
    width: 100%;
    padding: 5px;
    margin-top: 15px;
}

.wpcf7 textarea {
    outline: none;
    resize: none;
    font-size: 12px;
    overflow: auto;
    max-height: 80px;
}

.wpcf7 input[type="submit"] {
    width: 200px;
    background-color: var(--link);
    border: none;
    color: white;
    padding: 5px 10px;
    text-align: center;
    font-size: 18px;
    margin: 0px 2px;
    cursor: pointer;
    border-radius: 5px;
    float: right;
}

/* ============================================
   COMPATIBILIDAD GENERAL PARA IMÁGENES
   ============================================ */

img {
    max-width: 100%;
    height: auto;
}
/* ============================================
   RESPONSIVE - MEDIA QUERIES CORREGIDAS
   ============================================ */

/* Tablets y móviles grandes */
@media only screen and (max-width: 1024px) {
    .flyout-panel {
        max-width: 90vw !important;
        padding: 30px !important;
    }

    .team-card_title {
        font-size: 1.5rem !important;
    }

    .has-x-large-font-size {
        font-size: 42px !important;
    }
    .has-large-font-size {
        font-size: 36px !important;
    }
    .has-medium-font-size {
        font-size: 20px !important;
    }
    .has-small-font-size {
        font-size: 16px !important;
    }
}

/* Móviles y tablets pequeñas */
@media only screen and (max-width: 768px) {
    .flyout-panel {
        max-width: 95vw !important;
        padding: 25px !important;
    }

    .btn-popup-close {
        top: 20px !important;
        right: 20px !important;
        padding: 10px 16px !important;
    }

    .btn-popup-close__text {
        display: none !important; /* Oculta el texto en móviles */
    }

    .btn-popup-close__icon {
        width: 20px !important;
        height: 20px !important;
    }

    .team-card_title {
        font-size: 1.3rem !important;
    }

    .card-hint {
        font-size: 0.65rem !important;
        padding: 8px 20px !important;
        letter-spacing: 2px !important;
    }

    .team-card_image {
        aspect-ratio: 1 / 0.8 !important;
    }

    .has-x-large-font-size {
        font-size: 32px !important;
    }
    .has-large-font-size {
        font-size: 28px !important;
    }
    .has-medium-font-size {
        font-size: 18px !important;
    }
    .has-small-font-size {
        font-size: 14px !important;
    }

    .navbar li a::after {
        border-right: none !important;
    }

    .navbar li {
        height: auto !important;
        margin-bottom: 10px !important;
    }
    p{
        font-size: 16px;
    }
    /* Altura en toda la cadena de contenedores de Swiper */
    .ma-swiperslider {
        height: 50vh;    
    }
    .footer-zone{
        text-align: center;
    }
    .footer-zone .menu{
        text-align: center;
    
    }
    .logo_footer img {
        height: 70px;
        margin: 20px 0 0 0;
    }
    .footer-zone .menu {
        margin: 0 0 20px;
        display: block;
        padding: 0;
    }
    
    }
}

/* Móviles pequeños */
@media only screen and (max-width: 480px) {
    .flyout-panel.flyout-panel {
        max-width: 95vw !important;
        padding: 25px !important;
    }

    .btn-popup-close {
        top: 15px !important;
        right: 15px !important;
        padding: 8px 12px !important;
    }

    .btn-popup-close__icon {
        width: 18px !important;
        height: 18px !important;
    }

    .team-card_title {
        font-size: 1.1rem !important;
        margin-bottom: 5px !important;
    }

    .card-hint {
        font-size: 0.55rem !important;
        padding: 6px 14px !important;
        letter-spacing: 1.5px !important;
        margin-top: 5px !important;
    }

    .team-card_image {
        aspect-ratio: 1 / 0.9 !important;
    }

    .team-block-wrapper {
        padding: 20px 0 !important;
    }

    .team-grid {
        margin: 0 -8px !important;
    }

    .team-card {
        padding: 0 8px !important;
    }

    .has-x-large-font-size {
        font-size: 26px !important;
    }
    .has-large-font-size {
        font-size: 22px !important;
    }
    .has-medium-font-size {
        font-size: 16px !important;
    }
    .has-small-font-size {
        font-size: 12px !important;
    }

    .card-overlay {
        padding: 15px !important;
    }

    #flyout-body {
        padding: 10px 0 !important;
    }

    #flyout-body h2 {
        font-size: 24px !important;
    }
    #flyout-body h3 {
        font-size: 20px !important;
    }
    #flyout-body p {
        font-size: 14px !important;
    }
}

/* ============================================
   RETINA / ALTA DENSIDAD DE PÍXELES
   ============================================ */

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    img {
        image-rendering: crisp-edges;
    }

    .team-card_image {
        image-rendering: -webkit-optimize-contrast;
    }

    .flyout-panel {
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.4) !important;
    }

    .btn-popup-close {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2) !important;
    }
}

