/*
Theme Name: Astra Child
Theme URI: https://wpastra.com/
Description: Tema hijo de Astra para personalizaciones
Author: Enzo Sampieri
Author URI: https://tuweb.com
Template: astra
Version: 1.0.0
*/

/* Importa estilos del padre automáticamente */
@import url("../astra/style.css");

/* Tus estilos extra van aquí */


/* ────────────────────────────────────────────────────────────────────────────── */
/* ────────────brands-slider------------------------------------------------------ */
/* ────────────────────────────────────────────────────────────────────────────── */

    .brands-slider {
        --brand-item-width: 250px;
        --brand-item-height: 120px;
        --brand-gap: 20px;
        --animation-duration: 30s;
        --brand-logo-max-width: 180px;
        --brand-logo-max-height: 80px;
        --brand-bg: white;
        --brand-card-bg: white;
        --brand-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
        --brand-shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
        --brand-title-color: #333;
        --brand-title-size: 2rem;
        
        /* Contenedor principal del slider */
        width: 100%;
        overflow: hidden;
        background: var(--brand-bg);
        padding: 40px 0;
        position: relative;
    }

    /* Título de la sección */
    .brands-title {
        text-align: center;
        margin-bottom: 30px;
        font-size: var(--brand-title-size);
        color: var(--brand-title-color);
        font-weight: 600;
    }

     /* Contenedor del carrusel */
     .slider-track {
         display: flex;
         width: calc(var(--brand-item-width) * 16 + var(--brand-gap) * 15); /* 16 elementos + 15 gaps */
         animation: scroll var(--animation-duration) linear infinite;
         gap: var(--brand-gap);
     }

    /* Elementos individuales del slider */
    .brand-item {
        flex: 0 0 var(--brand-item-width);
        height: var(--brand-item-height);
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--brand-card-bg);
        border-radius: 12px;
        box-shadow: var(--brand-shadow);
        padding: 20px;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        position: relative;
        overflow: hidden;
    }

    /* Hover effect */
    .brand-item:hover {
        transform: translateY(-5px);
        box-shadow: var(--brand-shadow-hover);
    }

    /* Logos */
    .brand-logo {
        max-width: var(--brand-logo-max-width);
        max-height: var(--brand-logo-max-height);
        width: auto;
        height: auto;
        object-fit: contain;
        filter: grayscale(100%) opacity(0.7);
        transition: all 0.3s ease;
    }

    /* Logos en hover */
    .brand-item:hover .brand-logo {
        filter: grayscale(0%) opacity(1);
        transform: scale(1.05);
    }

    /* Animación del scroll infinito */
    @keyframes scroll {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-1 * (var(--brand-item-width) * 8 + var(--brand-gap) * 7)));
        }
    }

    /* Pausa la animación al hacer hover */
    .brands-slider:hover .slider-track {
        animation-play-state: paused;
    }

    /* Gradientes laterales para efecto fade */
    .brands-slider::before,
    .brands-slider::after {
        content: '';
        position: absolute;
        top: 0;
        width: 100px;
        height: 100%;
        z-index: 2;
        pointer-events: none;
    }

     .brands-slider::before {
         left: 0;
         background: linear-gradient(to right, white, transparent);
     }

     .brands-slider::after {
         right: 0;
         background: linear-gradient(to left, white, transparent);
     }

     /* Responsive */
     @media (max-width: 768px) {
         .brands-slider {
             --brand-item-width: 200px;
             --brand-item-height: 100px;
             --brand-logo-max-width: 140px;
             --brand-logo-max-height: 60px;
             --brand-title-size: 1.5rem;
             --animation-duration: 25s;
         }

         .brand-item {
             padding: 15px;
         }

         .brands-title {
             margin-bottom: 20px;
         }
     }

     @media (max-width: 480px) {
         .brands-slider {
             --brand-item-width: 150px;
             --brand-item-height: 80px;
             --brand-logo-max-width: 100px;
             --brand-logo-max-height: 40px;
             --brand-gap: 15px;
         }
     }

    /* Versión con logos en color para casos especiales */
    .brand-item.color-logo .brand-logo {
        filter: none;
        opacity: 0.8;
    }

    .brand-item.color-logo:hover .brand-logo {
        opacity: 1;
    }

    /* Estilos adicionales para diferentes tamaños de logo */
    .brand-item.large-logo {
        padding: 15px;
    }

    .brand-item.large-logo .brand-logo {
        max-width: 200px;
        max-height: 90px;
    }

    .brand-item.small-logo .brand-logo {
        max-width: 120px;
        max-height: 50px;
    }

    /* Mejoras de accesibilidad */
    .brand-item:focus {
        outline: 2px solid #007bff;
        outline-offset: 2px;
    }

    /* Reducir animaciones para usuarios que prefieren menos movimiento */
    @media (prefers-reduced-motion: reduce) {
        .slider-track {
            animation-duration: 60s; /* Más lento en lugar de deshabilitar */
        }
        
        .brand-item {
            transition-duration: 0.1s; /* Transiciones más rápidas */
        }
    }

.shadow-c{
	text-shadow:4px 4px 8px #B5A79C;
}
.shadow-t{
	text-shadow:3px 2px 18px black;
}

.resltador{
	width:100%;
	margin-left:0% !important;
}

.sub-t{
	margin-left:5%;
}


.section-header {
	margin-bottom: clamp(40px, 8vw, 30px) !important;

}

.number {
    font-size: clamp(2rem, 5vw, 4rem) !important;
	
	 }


@media (max-width: 720px){
	.ourcore{
	padding:0 !important;
	
}
	
}

.site-logo-img img {
  animation: entradaGritando 1s ease-out forwards;
}

@keyframes entradaGritando {
  0% {
    opacity: 0;
    transform: scale(0.2) rotate(-30deg);
  }
  60% {
    opacity: 1;
    transform: scale(1.3) rotate(10deg);
  }
  80% {
    transform: scale(0.9) rotate(-5deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}


/* Estado inicial (oculto y desplazado) */
.fade-in-left,
.fade-in-right,
.fade-in-up {
  opacity: 0;
  transform: translateX(0) translateY(0);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Animaciones específicas */
.fade-in-left.show {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right.show {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-up.show {
  opacity: 1;
  transform: translateY(0);
}

/* Posiciones iniciales distintas */
.fade-in-left {
  transform: translateX(-50px);
}

.fade-in-right {
  transform: translateX(50px);
}

.fade-in-up {
  transform: translateY(50px);
}



/*RETREAT EXPERIENCES*/

.wellness-section {
        background: #ffffff;
        padding: clamp(30px, 6vw, 60px) clamp(20px, 5vw, 60px);
        position: relative;
    }

    .container { max-width: 1200px; margin: 0 auto; }

        .section-header { 
            margin-bottom: clamp(40px, 8vw, 60px);
            margin-top: clamp(20px, 4vw, 30px);
        }

        .title-stats-container {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: clamp(20px, 4vw, 40px);
        }

    .badge {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: linear-gradient(135deg, #7FABA7 0%, #6B9A96 100%);
        color: #ffffff;
        padding: clamp(6px, 1.5vw, 10px) clamp(12px, 3vw, 18px);
        border-radius: 25px;
        margin-bottom: clamp(20px, 4vw, 30px);
        box-shadow: 0 4px 12px rgba(127, 171, 167, 0.3);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .badge:hover { transform: translateY(-2px); }

    .main-title {
        font-size: clamp(30px, 6vw, 50px);
        margin-bottom: clamp(15px, 3vw, 25px);
    }


    .primary {
        display: block;
        margin-bottom: clamp(3px, 1vw, 8px);
    }

    .secondary {
        display: block;
    }

    .subtitle {
        margin: clamp(15px, 3vw, 25px) 0 clamp(25px, 5vw, 35px) 0;
    }

        .stats {
            display: flex;
            gap: clamp(15px, 3vw, 25px);
            flex-wrap: wrap;
        }

    .stat {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .number {
        font-size: clamp(2rem, 5vw, 3rem);
        color: #7FABA7;
        line-height: 1;
    }

    .label {
        color: #7f8c8d;
    }

    .description {
        max-width: 900px;
        margin-bottom: clamp(50px, 8vw, 70px);
    }

    .description p {
        font-size: clamp(16px, 2.5vw, 20px);
        margin-bottom: clamp(25px, 5vw, 35px);
    }

    .highlights {
        display: flex;
        gap: clamp(15px, 3vw, 25px);
        flex-wrap: wrap;
        margin-top: clamp(20px, 4vw, 30px);
    }

    .highlight {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: clamp(8px, 2vw, 12px) clamp(12px, 3vw, 18px);
        background: linear-gradient(135deg, rgba(127, 171, 167, 0.08) 0%, rgba(107, 154, 150, 0.05) 100%);
        border: 1px solid rgba(127, 171, 167, 0.2);
        border-radius: 20px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .highlight:hover {
        transform: translateY(-2px);
        background: linear-gradient(135deg, rgba(127, 171, 167, 0.15) 0%, rgba(107, 154, 150, 0.1) 100%);
        border-color: rgba(127, 171, 167, 0.4);
        box-shadow: 0 4px 12px rgba(127, 171, 167, 0.2);
    }

    .highlight svg { color: #7FABA7; }

        .services-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: clamp(15px, 2vw, 25px);
            margin-bottom: clamp(50px, 8vw, 80px);
        }

        .service-card {
            background: #ffffff;
            border: 1px solid #e8f4f8;
            border-radius: 16px;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 4px 6px rgba(0,0,0,0.05);
            overflow: hidden;
            position: relative;
            display: flex;
            flex-direction: column;
        }

    .service-card::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, rgba(127, 171, 167, 0.05) 0%, rgba(107, 154, 150, 0.02) 100%);
        opacity: 0;
        transition: opacity 0.4s ease;
        z-index: 1;
    }

    .service-card:hover {
        transform: translateY(-8px) scale(1.02);
        box-shadow: 0 20px 40px rgba(127, 171, 167, 0.15);
        border-color: #7FABA7;
    }

    .service-card:hover::before { opacity: 1; }

    .card-image {
        width: 100%;
        height: clamp(160px, 22vw, 220px);
        overflow: hidden;
        position: relative;
        border-radius: 16px 16px 0 0;
    }

    .card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        filter: grayscale(15%) brightness(0.95) saturate(0.9);
    }

    .service-card:hover .card-image img {
        transform: scale(1.08);
        filter: grayscale(0%) brightness(1.1) saturate(1.1);
    }

    .overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, rgba(127, 171, 167, 0.9) 0%, rgba(107, 154, 150, 0.8) 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 2;
    }

    .service-card:hover .overlay { opacity: 1; }

    .overlay-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        transform: translateY(20px);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .service-card:hover .overlay-content { transform: translateY(0); }

    .overlay-content svg {
        width: 32px;
        height: 32px;
        color: var(--white);
        filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .service-card:hover .overlay-content svg {
        transform: scale(1.1) rotate(5deg);
        filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
    }

    .overlay-content span {
        color: #ffffff;
    }

        .card-content {
            padding: clamp(20px, 4vw, 35px);
            display: flex;
            flex-direction: column;
            align-items: center;
            position: relative;
            z-index: 3;
            flex: 1;
            justify-content: space-between;
        }

    .card-content h3 {
        font-size: clamp(18px, 3vw, 24px);
        margin-bottom: clamp(10px, 2.5vw, 18px);
        text-align: center;
    }

        .card-content p {
            font-size: clamp(14px, 2vw, 16px);
            margin: 0;
            text-align: center;
            max-width: clamp(220px, 28vw, 300px);
            flex: 1;
        }

    .btn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: clamp(10px, 2vw, 14px) clamp(16px, 3vw, 24px);
        background: linear-gradient(135deg, #7FABA7 0%, #6B9A96 100%);
        color: #ffffff;
        border: none;
        border-radius: 25px;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 4px 12px rgba(127, 171, 167, 0.3);
        position: relative;
        overflow: hidden;
    }

    .btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
        transition: left 0.5s ease;
    }

    .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(127, 171, 167, 0.4);
        background: linear-gradient(135deg, #6B9A96 0%, #5A8A86 100%);
    }

    .btn:hover::before { left: 100%; }
    .btn:hover svg { transform: translateX(3px); }

        @media (max-width: 1200px) {
            .services-grid { grid-template-columns: repeat(2, 1fr); }
        }
        
    @media (max-width: 768px) {
        .wellness-section { padding: clamp(40px, 8vw, 60px) clamp(10px, 3vw, 20px); }
        .services-grid { grid-template-columns: 1fr; }
        .title-stats-container { 
            flex-direction: column; 
            align-items: flex-start;
            gap: clamp(15px, 3vw, 25px);
        }
    }

    /* Modal Styles */
    .modal {
        display: none;
        position: fixed;
        z-index: 1000;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(5px);
        animation: fadeIn 0.3s ease;
    }

    .modal.show {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .modal-content {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        border-radius: 20px;
        padding: 2rem;
        max-width: 90vw;
        max-height: 90vh;
        width: 800px;
        position: relative;
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
        border: 1px solid rgba(127, 171, 167, 0.3);
        animation: slideIn 0.4s ease;
        overflow-y: auto;
    }

    .modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 2rem;
        padding-bottom: 1rem;
        border-bottom: 2px solid rgba(127, 171, 167, 0.2);
    }

    .modal-title {
        font-size: 1.8rem;
        font-weight: 600;
        color: #5a5346;
        margin: 0;
    }

    .close-btn {
        background: none;
        border: none;
        font-size: 2rem;
        color: #7FABA7;
        cursor: pointer;
        transition: all 0.3s ease;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
    }

    .close-btn:hover {
        background: rgba(127, 171, 167, 0.1);
        color: #6B9A96;
        transform: rotate(90deg);
    }

    .modal-images {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

    .modal-image-container {
        position: relative;
        overflow: hidden;
        border-radius: 12px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease;
        cursor: pointer;
    }

    .modal-image-container:hover {
        transform: scale(1.05);
    }

    .modal-image {
        width: 100%;
        height: 200px;
        object-fit: cover;
        display: block;
        transition: filter 0.3s ease;
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
        filter: contrast(1.1) brightness(1.05) saturate(1.1);
    }

    .modal-image-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(127, 171, 167, 0.9) 0%, rgba(107, 154, 150, 0.8) 100%);
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: opacity 0.3s ease;
        padding: 1rem;
        text-align: center;
        font-size: 0.9rem;
        font-weight: 500;
        line-height: 1.4;
    }

    .modal-image-container:hover .modal-image-overlay {
        opacity: 1;
    }

    .modal-image-container:hover .modal-image {
        filter: blur(2px);
    }

    .modal-description {
        font-size: 1.1rem;
        color: #7a7062;
        line-height: 1.6;
        text-align: center;
        margin-top: 1rem;
    }

    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    @keyframes slideIn {
        from { 
            opacity: 0;
            transform: translateY(-50px) scale(0.9);
        }
        to { 
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }

    @media (max-width: 768px) {
        .modal-content {
            width: 95vw;
            padding: 1.5rem;
        }
        
        .modal-title {
            font-size: 1.5rem;
        }
        
        .modal-images {
            grid-template-columns: 1fr;
            gap: 1rem;
        }
        
        .modal-image {
            height: 200px;
            object-fit: cover;
            aspect-ratio: 1;
        }
    }




/*MEET THE TEAM*/

 .team-section {
        background: #ffffff;
        padding: clamp(60px, 10vw, 100px) 0;
        position: relative;
        width: 100%;
        background-color: #f9f9f9; /* Fondo claro para simular el diseño */
    }

    .container { 
        max-width: 1400px; /* Más ancho para desktop */
        margin: 0 auto; 
        position: relative;
        padding: 0 clamp(10px, 2vw, 25px);
    }

    .team-showcase {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: clamp(15px, 2.5vw, 30px);
        max-width: 1600px;
        margin: 0 auto;
    }

    /* Large Desktop */
    @media (min-width: 1400px) {
        .team-showcase {
            grid-template-columns: repeat(2, 1fr);
            gap: clamp(30px, 4vw, 50px);
        }
        
        .team-member {
            min-height: 450px;
        }
    }

    .team-member {
        display: flex;
        align-items: stretch;
        gap: clamp(25px, 4vw, 40px);
        background: #ffffff;
        padding: clamp(25px, 4vw, 35px);
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        transition: all 0.3s ease;
        position: relative;
        min-height: 480px;
        perspective: 1000px;
        cursor: pointer;
        overflow: hidden; /* Evita desbordamiento */
    }

    .team-member:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    }

    .team-member:hover .flip-card-inner {
        transform: rotateY(180deg);
    }

    .flip-card-inner {
        position: relative;
        width: 100%;
        height: 100%;
        transition: transform 0.6s;
        transform-style: preserve-3d;
        min-height: 480px;
    }

    .flip-card-front, .flip-card-back {
        position: absolute;
        width: 100%;
        height: 100%;
        backface-visibility: hidden;
        border-radius: 12px;
        padding: clamp(15px, 2.5vw, 25px);
        display: flex;
        align-items: center;
        gap: clamp(20px, 3vw, 35px);
        overflow: hidden;
    }

    .flip-card-back {
        transform: rotateY(180deg);
    }

    .flip-card-back .member-image {
        display: none;
    }

    .flip-card-back .member-info {
        width: 100%;
        max-width: none;
        padding: 0;
    }

    .flip-card-back .member-description {
        max-width: none;
        width: 100%;
        max-height: 300px;
        overflow-y: auto; /* Scroll si el texto es largo */
    }

    .member-image {
        flex-shrink: 0;
        width: clamp(150px, 20vw, 220px);
        height: 100%;
        min-height: 320px;
        border-radius: 8px;
        overflow: hidden;
        position: relative;
        align-self: center;
    }

    .flip-card-front .member-image {
        width: clamp(150px, 20vw, 220px);
        height: 100%;
        min-height: 320px;
        align-self: center;
    }

    .flip-card-front .member-info {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: clamp(15px, 2vw, 20px);
    }

    .member-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        transition: transform 0.3s ease;
    }

    .focus-center { object-position: center; }
    .focus-top { object-position: center top; }
    .focus-bottom { object-position: center bottom; }
    .focus-left { object-position: left center; }
    .focus-right { object-position: right center; }
    .focus-top-left { object-position: left top; }
    .focus-top-right { object-position: right top; }
    .focus-bottom-left { object-position: left bottom; }
    .focus-bottom-right { object-position: right bottom; }
    .focus-custom-1 { object-position: 30% 20%; }
    .focus-custom-2 { object-position: 70% 30%; }
    .focus-custom-3 { object-position: 50% 80%; }
    .focus-lina { object-position: 80% center; }

    .team-member:hover .member-image img {
        transform: scale(1.02);
    }

    .member-info {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: clamp(12px, 1.5vw, 18px);
        overflow: hidden;
        padding: 0;
    }

    .member-name {
        font-size: clamp(24px, 4vw, 32px);
        font-weight: 300;
        color: #666;
        text-transform: uppercase;
        letter-spacing: 2px;
        margin: 0;
    }

    .member-role {
        font-size: clamp(16px, 2.5vw, 20px);
        font-weight: 400;
        color: #888;
        font-style: italic;
        margin: 0;
    }

    .member-description {
        font-size: clamp(14px, 2vw, 16px);
        color: #555;
        line-height: 1.5;
        margin: 0;
        max-width: 500px;
        overflow-y: auto;
        max-height: 250px;
        flex: 1;
    }

    .member-summary {
        font-size: clamp(14px, 2vw, 16px);
        color: #666;
        line-height: 1.4;
        margin: 8px 0;
        font-style: italic;
        overflow: hidden;
        max-height: 140px;
        display: -webkit-box;
        -webkit-line-clamp: 5;
        line-clamp: 5;
        -webkit-box-orient: vertical;
        flex: 1;
    }

    .member-linkedin {
        margin-top: clamp(25px, 4vw, 35px);
        position: absolute;
        bottom: 20px; /* Fija el enlace en la parte inferior con más espacio */
    }

    .linkedin-link {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        color: #0077b5;
        text-decoration: none;
        font-size: clamp(14px, 2vw, 16px);
        font-weight: 500;
        transition: all 0.3s ease;
    }

    .linkedin-link:hover {
        color: #005885;
        transform: translateX(3px);
    }

    .linkedin-link svg {
        width: 18px;
        height: 18px;
    }

    .instagram-link {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        color: #E4405F;
        text-decoration: none;
        font-size: clamp(14px, 2vw, 16px);
        font-weight: 500;
        transition: all 0.3s ease;
    }

    .instagram-link:hover {
        color: #C13584;
        transform: translateX(3px);
    }

    .instagram-link svg {
        width: 18px;
        height: 18px;
    }

    /* Tablet Portrait */
    @media (max-width: 1024px) and (orientation: portrait) {
        .team-showcase {
            grid-template-columns: 1fr;
            gap: clamp(25px, 4vw, 35px);
        }
        
        .team-member {
            min-height: 430px;
        }
    }

    /* Tablet Landscape */
    @media (max-width: 1024px) and (orientation: landscape) {
        .team-showcase {
            grid-template-columns: 1fr 1fr;
            gap: clamp(20px, 3vw, 30px);
        }
        
        .team-member {
            min-height: 300px;
        }
    }

    /* Small Tablet */
    @media (max-width: 900px) {
        .team-showcase {
            grid-template-columns: 1fr;
            gap: clamp(20px, 3vw, 30px);
        }
    }

    /* Mobile */
    @media (max-width: 768px) {
        .team-section { 
            padding: clamp(30px, 6vw, 50px) clamp(10px, 3vw, 20px); 
        }
        
        .team-showcase {
            grid-template-columns: 1fr;
            gap: clamp(20px, 4vw, 30px);
        }
        
        .team-member {
            flex-direction: row;
            align-items: center;
            text-align: left;
            gap: clamp(20px, 3vw, 30px);
            min-height: auto;
            padding: clamp(15px, 3vw, 25px) clamp(20px, 4vw, 30px);
        }

        .flip-card-front, .flip-card-back {
            flex-direction: row;
            align-items: center;
            text-align: left;
            gap: clamp(20px, 3vw, 30px);
            min-height: auto;
            overflow: visible;
            padding: clamp(15px, 3vw, 25px) clamp(20px, 4vw, 30px);
        }

        .member-image {
            width: clamp(120px, 30vw, 180px);
            height: clamp(120px, 30vw, 180px);
            align-self: center;
            margin-bottom: 0;
            order: 1;
            flex-shrink: 0;
        }

        .flip-card-front .member-image {
            width: clamp(120px, 30vw, 180px);
            height: clamp(120px, 30vw, 180px);
            margin-bottom: 0;
            order: 1;
            flex-shrink: 0;
            align-self: center;
        }

        .member-name {
            font-size: clamp(18px, 4vw, 24px);
            line-height: 1.2;
        }

        .member-role {
            font-size: clamp(13px, 2.5vw, 16px);
            line-height: 1.3;
        }

        .member-description {
            max-height: none;
            overflow: visible;
            font-size: clamp(13px, 2.5vw, 15px);
            line-height: 1.5;
        }

        .member-summary {
            max-height: none;
            -webkit-line-clamp: none;
            line-clamp: none;
            display: block;
            margin: 8px 0;
            font-size: clamp(13px, 2.5vw, 15px);
        }

        .member-info {
            padding: 0;
            gap: clamp(12px, 2vw, 18px);
            justify-content: flex-start;
            width: 100%;
            order: 2;
            text-align: left;
            flex: 1;
        }

        .flip-card-back .member-info {
            width: 100%;
            padding: 0;
        }

        .flip-card-back .member-description {
            max-width: none;
            width: 100%;
            max-height: none;
        }

        .member-linkedin {
            margin-top: clamp(15px, 3vw, 25px);
            order: 3;
            text-align: left;
        }

        .linkedin-link, .instagram-link {
            font-size: clamp(13px, 2.5vw, 15px);
        }
    }

    /* Small Mobile */
    @media (max-width: 480px) {
        .team-section { 
            padding: clamp(20px, 5vw, 30px) clamp(8px, 2vw, 15px); 
        }
        
        .team-showcase {
            gap: clamp(15px, 3vw, 25px);
        }
        
        .team-member {
            flex-direction: row;
            align-items: center;
            text-align: left;
            gap: clamp(15px, 2.5vw, 25px);
            padding: clamp(12px, 2.5vw, 20px) clamp(15px, 3vw, 25px);
        }

        .flip-card-front, .flip-card-back {
            flex-direction: row;
            align-items: center;
            text-align: left;
            gap: clamp(15px, 2.5vw, 25px);
            padding: clamp(12px, 2.5vw, 20px) clamp(15px, 3vw, 25px);
        }

        .member-image {
            width: clamp(100px, 25vw, 150px);
            height: clamp(100px, 25vw, 150px);
            margin-bottom: 0;
            order: 1;
            flex-shrink: 0;
            align-self: center;
        }

        .flip-card-front .member-image {
            width: clamp(100px, 25vw, 150px);
            height: clamp(100px, 25vw, 150px);
            margin-bottom: 0;
            order: 1;
            flex-shrink: 0;
            align-self: center;
        }

        .member-name {
            font-size: clamp(16px, 3.5vw, 20px);
            line-height: 1.2;
        }

        .member-role {
            font-size: clamp(12px, 2.2vw, 14px);
            line-height: 1.3;
        }

        .member-description, .member-summary {
            font-size: clamp(12px, 2.2vw, 14px);
        }

        .member-info {
            padding: 0;
            gap: clamp(10px, 2vw, 14px);
            justify-content: flex-start;
            order: 2;
            text-align: left;
            flex: 1;
        }

        .member-linkedin {
            margin-top: clamp(12px, 2.5vw, 20px);
            order: 3;
            text-align: left;
        }
    }


























    .programs-container {
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        flex-wrap: wrap;
        padding: 2rem 0;
        width: 100%;
    }
    
    .program-circle {
        position: relative;
        width: 280px;
        height: 280px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(180, 163, 134, 0.3);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 2rem;
        transition: all 0.4s ease;
        cursor: pointer;
        box-shadow: 0 8px 32px rgba(90, 83, 70, 0.08);
    }
    
    .program-circle:hover {
        transform: translateY(-8px) scale(1.02);
        box-shadow: 0 20px 40px rgba(90, 83, 70, 0.15);
        background: rgba(255, 255, 255, 0.95);
    }
    
    .program-circle::before {
        content: '';
        position: absolute;
        top: -2px;
        left: -2px;
        right: -2px;
        bottom: -2px;
        border-radius: 50%;
        background: linear-gradient(135deg, rgba(180, 163, 134, 0.4) 0%, rgba(201, 192, 179, 0.2) 100%);
        z-index: -1;
        opacity: 0;
        transition: opacity 0.4s ease;
    }
    
    .program-circle:hover::before {
        opacity: 1;
    }
    
    .program-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 1.5rem;
        opacity: 1;
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    }
    
    .program-title {
        font-size: 1.3rem;
        font-weight: 500;
        color: #5a5346;
        margin-bottom: 1rem;
        line-height: 1.3;
    }
    
    .program-description {
        font-size: 0.95rem;
        color: #7a7062;
        line-height: 1.5;
        font-weight: 300;
    }
    
    .center-element {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 120px;
        height: 120px;
        border-radius: 50%;
        background: linear-gradient(135deg, rgba(201, 192, 179, 0.3) 0%, rgba(180, 163, 134, 0.2) 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        backdrop-filter: blur(5px);
        border: 2px solid rgba(255, 255, 255, 0.8);
        z-index: 10;
    }
    
    .center-logo {
        width: 60px;
        height: 60px;
        opacity: 1;
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    }
    
    @media (max-width: 1024px) {
        .programs-container {
            gap: 2rem;
        }
        
        .program-circle {
            width: 240px;
            height: 240px;
            padding: 1.5rem;
        }
    
        .center-element {
            width: 100px;
            height: 100px;
        }
    
        .center-logo {
            width: 50px;
            height: 50px;
        }
    }
    
    @media (max-width: 768px) {
        .programs-container {
            flex-direction: column;
            gap: 2rem;
        }
        
        .program-circle {
            width: 300px;
            height: 200px;
            border-radius: 20px;
            padding: 2rem;
        }

        .program-circle:hover {
            transform: translateY(-4px) scale(1.01);
        }

        .center-element {
            position: static;
            transform: none;
            width: 80px;
            height: 80px;
            margin: 2rem auto;
        }
    }

    /* Modal Styles */
    .modal {
        display: none;
        position: fixed;
        z-index: 1000;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(5px);
        animation: fadeIn 0.3s ease;
    }

    .modal.show {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .modal-content {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        border-radius: 20px;
        padding: 2rem;
        max-width: 90vw;
        max-height: 90vh;
        width: 800px;
        position: relative;
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
        border: 1px solid rgba(180, 163, 134, 0.3);
        animation: slideIn 0.4s ease;
        overflow-y: auto;
    }

    .modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 2rem;
        padding-bottom: 1rem;
        border-bottom: 2px solid rgba(180, 163, 134, 0.2);
    }

    .modal-title {
        font-size: 1.8rem;
        font-weight: 600;
        color: #5a5346;
        margin: 0;
    }

    .close-btn {
        background: none;
        border: none;
        font-size: 2rem;
        color: #b4a386;
        cursor: pointer;
        transition: all 0.3s ease;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
    }

    .close-btn:hover {
        background: rgba(180, 163, 134, 0.1);
        color: #8a7a6b;
        transform: rotate(90deg);
    }

    .modal-images {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

    .modal-image-container {
        position: relative;
        overflow: hidden;
        border-radius: 12px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease;
        cursor: pointer;
    }

    .modal-image-container:hover {
        transform: scale(1.05);
    }

    .modal-image {
        width: 100%;
        height: 200px;
        object-fit: cover;
        display: block;
        transition: filter 0.3s ease;
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
        filter: contrast(1.1) brightness(1.05) saturate(1.1);
    }

    /* Estilos específicos para imágenes de masterclass (400x560) */
    .masterclass-image {
        height: 280px;
        object-fit: cover;
        object-position: center;
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
        display: block;
    }

    .modal-image-container:has(.masterclass-image) {
        max-width: 200px;
        margin: 0 auto;
    }

    /* Estilos para botón "Ver más" */
    .modal-more-container {
        display: flex;
        justify-content: center;
        margin: 2rem 0;
    }

    .modal-more-btn {
        background: linear-gradient(135deg, rgba(180, 163, 134, 0.9) 0%, rgba(201, 192, 179, 0.8) 100%);
        border: 2px solid rgba(180, 163, 134, 0.3);
        border-radius: 25px;
        color: #5a5346;
        padding: 12px 24px;
        font-size: 1rem;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        gap: 8px;
        backdrop-filter: blur(10px);
        box-shadow: 0 4px 15px rgba(90, 83, 70, 0.1);
    }

    .modal-more-btn:hover {
        background: linear-gradient(135deg, rgba(180, 163, 134, 1) 0%, rgba(201, 192, 179, 0.9) 100%);
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(90, 83, 70, 0.2);
    }

    .more-icon {
        width: 16px;
        height: 16px;
        transition: transform 0.3s ease;
    }

    .modal-more-btn.expanded .more-icon {
        transform: rotate(180deg);
    }

    /* Ocultar elementos en móvil por defecto */
    .masterclass-mobile-hidden {
        display: none;
    }

    /* Mostrar todos en desktop */
    @media (min-width: 769px) {
        .masterclass-mobile-hidden {
            display: block;
        }
        
        .modal-more-container {
            display: none;
        }
    }

    .modal-image-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(90, 83, 70, 0.9) 0%, rgba(180, 163, 134, 0.8) 100%);
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: opacity 0.3s ease;
        padding: 1rem;
        text-align: center;
        font-size: 0.9rem;
        font-weight: 500;
        line-height: 1.4;
    }

    .modal-image-container:hover .modal-image-overlay {
        opacity: 1;
    }

    .modal-image-container:hover .modal-image {
        filter: blur(2px);
    }

    /* Estilos para video en modal */
    .modal-video {
        width: 100%;
        height: 200px;
        object-fit: cover;
        display: block;
        border-radius: 12px;
    }

    .modal-video-container {
        position: relative;
        overflow: hidden;
        border-radius: 12px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease;
        cursor: pointer;
    }

    .modal-video-container:hover {
        transform: scale(1.05);
    }

    .modal-video-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(90, 83, 70, 0.7) 0%, rgba(180, 163, 134, 0.6) 100%);
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 1;
        transition: opacity 0.3s ease;
        padding: 1rem;
        text-align: center;
        font-size: 0.9rem;
        font-weight: 500;
        line-height: 1.4;
        pointer-events: none;
    }

    .modal-video-container:hover .modal-video-overlay {
        opacity: 0;
    }

    .modal-video-container:hover .modal-video {
        filter: none;
    }


    .enhanced-focus {
        filter: contrast(1.2) brightness(1.1) saturate(1.15) sharpness(1.1) !important;
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
        image-rendering: pixelated;
    }

    .modal-description {
        font-size: 1.1rem;
        color: #7a7062;
        line-height: 1.6;
        text-align: center;
        margin-top: 1rem;
    }

    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    @keyframes slideIn {
        from { 
            opacity: 0;
            transform: translateY(-50px) scale(0.9);
        }
        to { 
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }

    @media (max-width: 768px) {
        .modal-content {
            width: 95vw;
            padding: 1.5rem;
        }
        
        .modal-title {
            font-size: 1.5rem;
        }
        
        .modal-images {
            grid-template-columns: 1fr;
            gap: 1rem;
        }
        
        .modal-image {
            height: 200px;
            object-fit: cover;
            aspect-ratio: 1;
        }

        .masterclass-image {
            height: 250px;
            max-width: 180px;
        }

        .modal-image-container:has(.masterclass-image) {
            max-width: 180px;
        }
        
        }
        
        .over-gal {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
}

.over-gal img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.over-gal::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(67, 160, 71, 0); /* verde con transparencia inicial */
  transition: background 0.4s ease;
}

.over-gal p {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  font-size: 1.3rem;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 2;
  padding: 20px;
}

.over-gal:hover img {
  transform: scale(1.05);
}

.over-gal:hover::after {
  background: #7FABA7; /* tono verde cubriendo toda la imagen */
}

.over-gal:hover p {
  opacity: 1;
}



html, body {
  overflow-x: hidden;
  width: 100%;
}

}
.shadow-c{
	text-shadow:4px 4px 8px #B5A79C;
}
.shadow-t{
	text-shadow:3px 2px 18px black;
}

.resltador{
	width:100%;
	margin-left:0% !important;
}

.sub-t{
	margin-left:5%;
}

:root :where(.is-layout-flow) > * {
    margin-block-start: 0;
	
}


.section-header {
	margin-bottom: clamp(40px, 8vw, 30px) !important;

}

.number {
    font-size: clamp(2rem, 5vw, 4rem) !important;
	
	 }


@media (max-width: 720px){
	.ourcore{
	padding:0 !important;
	
}
	
.ufor-title{
	font-size:35px !important;
}
	
}

.site-logo-img img {
  animation: entradaGritando 1s ease-out forwards;
}

@keyframes entradaGritando {
  0% {
    opacity: 0;
    transform: scale(0.2) rotate(-30deg);
  }
  60% {
    opacity: 1;
    transform: scale(1.3) rotate(10deg);
  }
  80% {
    transform: scale(0.9) rotate(-5deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

.shadow-c{
	text-shadow:4px 4px 8px #B5A79C;
}
.shadow-t{
	text-shadow:3px 2px 18px black;
}

.resltador{
	width:100%;
	margin-left:0% !important;
}

.sub-t{
	margin-left:5%;
}

:root :where(.is-layout-flow) > * {
    margin-block-start: 0;
	
}


.section-header {
	margin-bottom: clamp(40px, 8vw, 30px) !important;

}

.number {
    font-size: clamp(2rem, 5vw, 4rem) !important;
	
	 }


@media (max-width: 720px){
	.ourcore{
	padding:0 !important;
	
}
	
}

.site-logo-img img {
  animation: entradaGritando 1s ease-out forwards;
}

@keyframes entradaGritando {
  0% {
    opacity: 0;
    transform: scale(0.2) rotate(-30deg);
  }
  60% {
    opacity: 1;
    transform: scale(1.3) rotate(10deg);
  }
  80% {
    transform: scale(0.9) rotate(-5deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}





    