/*
 Theme Name:   GeneratePress Child (Altis Health)
 Theme URI:    https://generatepress.com
 Description:  Tema hijo optimizado para Altis Health. Desarrollo por Gonzalo Gutierrez.
 Author:       Gonzalo Gutierrez
 Author URI:  https://gongutierrez.es
 Template:     generatepress
 Version:      1.0.0
*/

:root {
    --color-primary: #0A2540;
    --color-text: #1A1A1A;
    --color-background: #FFFFFF;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
    font-family: var(--font-primary);
    color: var(--color-text);
}

.mta-hero-slider {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    min-height: 500px !important;
    height: 50vh !important;
    overflow: hidden;
}

.mta-hero-track,
.mta-hero-list {
    height: 100%;
    margin: 0 !important;
    padding: 0 !important;
}

.splide__list {
    display: grid !important;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
}

.splide__slide {
    grid-area: 1 / 1 / 2 / 2;
    width: 100% !important;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, visibility 1s ease;
    z-index: 0;
}

.splide__slide.is-active {
    opacity: 1 !important;
    visibility: visible;
    z-index: 1;
}

.splide__slide::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, rgba(10, 37, 64, 0.75) 0%, rgba(10, 37, 64, 0.3) 60%, rgba(255,255,255,0) 100%);
    z-index: 1;
    pointer-events: none;
}


.mta-hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.mta-hero-title {
    font-family: var(--font-primary);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    color: #FFFFFF !important;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5),0 2px 8px rgba(0,0,0,0.3);
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    max-width: 650px;
    opacity: 0;
    transform: translateY(30px);
}

@media (max-width: 767px) {
.mta-hero-title {
font-size: 2rem !important;
line-height: 1.2;
}
}

.mta-hero-subtitle {
    font-family: var(--font-primary);
    font-size: 1.25rem;
    line-height: 1.5;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4),0 1px 4px rgba(0,0,0,0.3);
    color: #F0F0F0;
    margin-bottom: 2.5rem;
    max-width: 600px;
    font-weight: 400;
    opacity: 0;
    transform: translateY(30px);
}

a.mta-hero-button {
    background-color: #FFFFFF !important;
    color: var(--color-primary) !important;
    font-weight: 700;
    border-radius: 50px;
    padding: 14px 36px !important;    
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    align-self: flex-start;
    border: 2px solid #FFFFFF;
    text-decoration: none;
    display: inline-flex; 
    align-items: center;
}

a.mta-hero-button:hover {
    background-color: transparent !important;
    color: #FFFFFF !important;
}


.splide__slide.is-active .mta-hero-title,
.splide__slide.is-active .mta-hero-subtitle,
.splide__slide.is-active .mta-hero-button {
    animation: fadeInUp 0.8s ease-out forwards;
}

.splide__slide.is-active .mta-hero-title { animation-delay: 0.2s; }
.splide__slide.is-active .mta-hero-subtitle { animation-delay: 0.4s; }
.splide__slide.is-active .mta-hero-button { animation-delay: 0.6s; }

.splide__slide.is-active {
    animation: bgZoom 10s ease-out forwards;
}

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

@keyframes bgZoom { 
    0% { transform: scale(1); }
    100% { transform: scale(1.1); } 
}

.mta-hero-slider .splide__arrow {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    width: 3.5rem !important;
    height: 3.5rem !important;
    border-radius: 50% !important;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 20 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.mta-hero-slider:hover .splide__arrow { 
    opacity: 1 !important; 
}

.mta-hero-slider .splide__arrow svg {
    fill: #FFFFFF !important;
    width: 1.5rem !important;
    height: 1.5rem !important;
}

.mta-hero-slider .splide__arrow:hover {
    background: #FFFFFF !important;
    border-color: #FFFFFF !important;
    opacity: 1 !important;
}

.mta-hero-slider .splide__arrow:hover svg { 
    fill: var(--color-primary) !important; 
}

.splide__arrow--prev { left: 3% !important; }
.splide__arrow--next { right: 3% !important; }


.mta-hero-slider .splide__pagination {
    bottom: 2.5rem;
    z-index: 20;
    gap: 8px; 
}

.mta-hero-slider .splide__pagination__page {
    width: 12px;
    height: 12px;
    background: transparent !important;
    border: 2px solid rgba(255, 255, 255, 0.6) !important;
    border-radius: 50%;
    margin: 0 4px !important;
    opacity: 1 !important;
    transition: all 0.3s ease;
    padding: 0;
}

.mta-hero-slider .splide__pagination__page:hover {
    border-color: #FFFFFF !important;
    transform: scale(1.1);
}

.mta-hero-slider .splide__pagination__page.is-active {
    background: #FFFFFF !important;
    border-color: #FFFFFF !important;
    width: 35px; 
    border-radius: 10px; 
    transform: scale(1);
    opacity: 1;
}

.mta-card-3d {
    position: relative;
    overflow: hidden !important;
    transform-style: preserve-3d;
    transform: perspective(1000px);
    transition: transform 0.1s ease-out;
    border-radius: 20px;
    background-color: #0a2540;     
    min-height: 450px; 
    display: flex;
    flex-direction: column;
    justify-content: flex-end; 
}

.mta-card-3d > .gb-container-image,
.mta-card-3d::before {
    transform: scale(1.3); 
    transition: transform 0.1s linear; 
    z-index: 0 !important;
    height: 120% !important; 
    top: -10%; 
    position: absolute !important;
    width: 100%;
    object-fit: cover;
}

.mta-card-3d::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;   
    background: linear-gradient(to bottom, rgba(10, 37, 64, 0.1) 0%, rgba(10, 37, 64, 0.6) 50%, rgba(10, 37, 64, 0.95) 100%);
    z-index: 1 !important; 
    pointer-events: none;
    transition: background 0.3s ease;
}

.mta-card-3d:hover::after {
    background: linear-gradient(to bottom, 
        rgba(0, 212, 255, 0.15) 0%,  
        rgba(0, 212, 255, 0.05) 40%, 
        rgba(5, 20, 35, 0.95) 100%   
    ) !important;
}

.mta-card-3d > .gb-inside-container {
    position: relative;
    z-index: 10 !important; 
    height: 100%;
    width: 100%;
    padding: 2.5rem !important; 
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transform: translateZ(30px); 
}

.mta-card-3d h3,
.mta-card-3d .gb-headline-text {
    color: #FFFFFF !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    opacity: 1 !important;
    z-index: 10; 
}

.mta-card-3d h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.mta-card-3d p {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 20px;
    line-height: 1.5;
}

.mta-card-3d:hover h3 {
    transform: translateY(-5px);
}

.mta-card-3d .gb-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;   
    background: rgba(255, 255, 255, 0.15);  
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px; 
    backdrop-filter: blur(4px); 
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.mta-card-3d .gb-icon svg {
    width: 30px;
    height: 30px;    
}

.mta-card-3d:hover .gb-icon {
    background: #4DB7FE !important; 
    border-color: #4DB7FE !important;
    transform: scale(1.1); 
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.mta-card-3d .gb-button {
    background: transparent !important;
    color: #4DB7FE !important; 
    padding: 0 !important;
    font-weight: 600;
    text-transform: none;
    display: inline-flex;
    align-items: center;
    margin-top: 10px;
    z-index: 10;
}

.mta-card-3d .gb-button:hover {
    color: #FFFFFF !important;
    transform: translateX(5px);
}

.mta-card-3d .gb-button .gb-icon {
    background: transparent !important;
    border: none !important;
    width: auto !important;
    height: auto !important;
    margin: 0 0 0 5px !important;
    box-shadow: none !important;
}