/* filosofia.css - Estilos específicos para la sección de filosofía */

.philosophy {
    background: linear-gradient(135deg, var(--arena-claro) 0%, var(--azul-suave) 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.philosophy-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.philosophy-card {
    background: var(--blanco);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    border: 3px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* Animación de burbujas/espuma - VERSIÓN MEJORADA */
.philosophy-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.6s ease;
}

.philosophy-card:hover::before {
    left: 100%;
}

/* Sistema de burbujas animadas - VISIBLES Y COLORIDAS */
.bubble {
    position: absolute;
    border-radius: 50%;
    background: rgba(100, 200, 255, 0.8);
    animation: float 10s infinite ease-in-out;
    z-index: 1;
    pointer-events: none;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Animación mejorada y más visible */
@keyframes float {
    0% {
        transform: translateY(120%) translateX(0px) scale(0.7);
        opacity: 0;
    }
    10% {
        opacity: 0.9;
        transform: translateY(100%) translateX(15px) scale(0.8);
    }
    20% {
        opacity: 1;
        transform: translateY(80%) translateX(-10px) scale(0.9);
    }
    40% {
        opacity: 1;
        transform: translateY(60%) translateX(12px) scale(1);
    }
    60% {
        opacity: 0.9;
        transform: translateY(40%) translateX(-8px) scale(1.1);
    }
    80% {
        opacity: 0.7;
        transform: translateY(20%) translateX(5px) scale(1);
    }
    90% {
        opacity: 0.4;
        transform: translateY(0%) translateX(-3px) scale(0.9);
    }
    100% {
        transform: translateY(-180%) translateX(0px) scale(0.6);
        opacity: 0;
    }
}

/* Efecto de espuma marina en el hover */
.philosophy-card::after {
    content: '';
    position: absolute;
    bottom: -60%;
    left: -20%;
    width: 140%;
    height: 120%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.4) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,0.3) 0%, transparent 45%),
        radial-gradient(circle at 40% 90%, rgba(255,255,255,0.5) 0%, transparent 40%);
    opacity: 0;
    transition: all 0.6s ease;
    border-radius: 40%;
    z-index: 1;
    transform: scale(0.8);
}

.philosophy-card:hover::after {
    opacity: 0.8;
    bottom: -40%;
    transform: scale(1.1);
}

.philosophy-card:hover {
    transform: translateY(-10px);
    border-color: var(--azul-medio);
    box-shadow: 0 20px 40px rgba(45, 139, 168, 0.2);
}

.philosophy-card.active {
    transform: scale(1.02);
    border-color: var(--azul-marino);
    background: linear-gradient(135deg, var(--blanco) 0%, var(--azul-suave) 100%);
    box-shadow: 0 25px 50px rgba(26, 95, 122, 0.3);
    z-index: 10;
}

.philosophy-card .icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--azul-medio), var(--azul-celeste));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

.philosophy-card:hover .icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, var(--azul-marino), var(--azul-medio));
}

.philosophy-card.active .icon {
    transform: scale(1.15);
    box-shadow: 0 10px 25px rgba(26, 95, 122, 0.4);
}

.philosophy-card .icon i {
    font-size: 2rem;
    color: var(--blanco);
    transition: transform 0.3s ease;
}

.philosophy-card:hover .icon i {
    transform: scale(1.1);
}

.philosophy-card h3 {
    color: var(--azul-marino);
    margin-bottom: 20px;
    font-size: 1.8rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.philosophy-card:hover h3 {
    color: var(--azul-medio);
    transform: translateY(-2px);
}

.philosophy-card.active h3 {
    color: var(--azul-marino);
    font-size: 2rem;
}

.philosophy-card p {
    color: var(--texto-medio);
    line-height: 1.7;
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
}

.philosophy-card ul {
    text-align: left;
    list-style: none;
    margin-top: 20px;
    position: relative;
    z-index: 2;
}

.philosophy-card ul li {
    margin-bottom: 12px;
    padding: 12px 15px;
    background: var(--azul-suave);
    border-radius: 8px;
    border-left: 4px solid var(--azul-medio);
    transition: all 0.3s ease;
    position: relative;
    padding-left: 45px;
}

.philosophy-card ul li::before {
    content: '✓';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--azul-marino);
    font-weight: bold;
    font-size: 1.1rem;
    background: var(--blanco);
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.philosophy-card:hover ul li {
    transform: translateX(5px);
    background: var(--blanco);
    border-left-color: var(--azul-celeste);
}

.philosophy-card.active ul li {
    background: var(--blanco);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-left-color: var(--azul-marino);
}

.philosophy-card ul li strong {
    color: var(--azul-marino);
    display: block;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

/* Efectos de color específicos para cada tarjeta */
.philosophy-card:nth-child(1):hover {
    background: linear-gradient(135deg, #e6f7ff, var(--blanco));
}

.philosophy-card:nth-child(2):hover {
    background: linear-gradient(135deg, #f0f9ff, var(--blanco));
}

.philosophy-card:nth-child(3):hover {
    background: linear-gradient(135deg, #f8fdff, var(--blanco));
}

/* MODAL STYLES */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 700px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.8);
    opacity: 0;
    transition: all 0.4s ease;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--azul-marino);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    border: none;
}

.modal-close:hover {
    background: var(--azul-medio);
    transform: rotate(90deg);
}

.modal-header {
    text-align: center;
    margin-bottom: 30px;
    padding-right: 50px;
}

.modal-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--azul-medio), var(--azul-celeste));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-icon i {
    font-size: 2.5rem;
    color: white;
}

.modal-title {
    color: var(--azul-marino);
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.modal-body {
    line-height: 1.8;
    font-size: 1.1rem;
    color: var(--texto-medio);
}

.modal-body ul {
    list-style: none;
    margin-top: 20px;
}

.modal-body ul li {
    margin-bottom: 15px;
    padding: 15px;
    background: var(--azul-suave);
    border-radius: 10px;
    border-left: 5px solid var(--azul-medio);
    padding-left: 50px;
    position: relative;
}

.modal-body ul li::before {
    content: '✓';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--azul-marino);
    font-weight: bold;
    font-size: 1.2rem;
    background: var(--blanco);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-body ul li strong {
    color: var(--azul-marino);
    display: block;
    margin-bottom: 5px;
    font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .philosophy-card {
        padding: 30px 25px;
        margin: 0 10px;
    }
    
    .philosophy-card h3 {
        font-size: 1.5rem;
    }
    
    .philosophy-card.active h3 {
        font-size: 1.6rem;
    }
    
    .philosophy-card .icon {
        width: 70px;
        height: 70px;
        margin-bottom: 20px;
    }
    
    .philosophy-card .icon i {
        font-size: 1.8rem;
    }
    
    .philosophy-card ul li {
        padding: 10px 12px;
        padding-left: 40px;
        font-size: 0.95rem;
    }
    
    /* Burbujas más pequeñas en móvil */
    .bubble:nth-child(1),
    .bubble:nth-child(2),
    .bubble:nth-child(3),
    .bubble:nth-child(4),
    .bubble:nth-child(5),
    .bubble:nth-child(6) {
        width: 20px;
        height: 20px;
    }
    
    .modal-content {
        padding: 30px 25px;
    }
    
    .modal-icon {
        width: 80px;
        height: 80px;
    }
    
    .modal-icon i {
        font-size: 2rem;
    }
    
    .modal-title {
        font-size: 1.8rem;
    }
}

/* Animación del ojo*/

/* Contenedor del icono del ojo con overflow */
.philosophy-card:nth-child(2) .icon {
    overflow: hidden;
    position: relative;
}

/* Ojo animado */
.animated-eye {
    position: relative;
    width: 40px;
    height: 40px;
    transition: all 0.3s ease;
}

.eye-ball {
    position: absolute;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    border: 2px solid var(--azul-marino);
    overflow: hidden;
}

.eye-pupil {
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--azul-marino);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.2s ease;
    animation: look-around 8s infinite ease-in-out;
}

.eye-lid {
    position: absolute;
    width: 44px;
    height: 22px;
    background: linear-gradient(135deg, var(--azul-medio), var(--azul-celeste));
    border-radius: 50%;
    top: -5px;
    left: -2px;
    animation: blink 4s infinite;
}

/* Animaciones del ojo */
@keyframes look-around {
    0%, 100% {
        transform: translate(-50%, -50%);
    }
    25% {
        transform: translate(-70%, -50%);
    }
    50% {
        transform: translate(-50%, -70%);
    }
    75% {
        transform: translate(-30%, -50%);
    }
}

@keyframes blink {
    0%, 45%, 55%, 100% {
        height: 22px;
        top: -5px;
    }
    48%, 52% {
        height: 2px;
        top: 8px;
    }
}

/* Efecto especial al hacer hover en la tarjeta de visión */
.philosophy-card:nth-child(2):hover .eye-pupil {
    animation-duration: 2s;
    transform: scale(1.1);
}

.philosophy-card:nth-child(2):hover .eye-lid {
    animation-duration: 1.5s;
}


/* Animación del diamante - Añade esto al CSS */
.animated-diamond {
    position: relative;
    width: 50px;
    height: 50px;
    transform-style: preserve-3d;
    animation: diamond-rotate 6s infinite linear;
}

.diamond-shape {
    position: absolute;
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, var(--azul-celeste), var(--azul-medio));
    transform: rotate(45deg);
    border: 2px solid white;
    box-shadow: 0 0 15px rgba(100, 200, 255, 0.5);
}

.diamond-facet {
    position: absolute;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.facet-1 {
    top: 5px;
    left: 5px;
    width: 15px;
    height: 15px;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.facet-2 {
    bottom: 5px;
    left: 5px;
    width: 15px;
    height: 15px;
    clip-path: polygon(50% 100%, 0% 0%, 100% 0%);
}

.facet-3 {
    top: 5px;
    right: 5px;
    width: 15px;
    height: 15px;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.facet-4 {
    bottom: 5px;
    right: 5px;
    width: 15px;
    height: 15px;
    clip-path: polygon(50% 100%, 0% 0%, 100% 0%);
}

.diamond-core {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: core-pulse 2s infinite alternate;
}

.diamond-sparkle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    top: 15%;
    left: 15%;
    animation: sparkle-move 3s infinite ease-in-out;
    box-shadow: 0 0 10px white;
}

@keyframes diamond-rotate {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.1);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

@keyframes core-pulse {
    0% {
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.3);
        box-shadow: 0 0 15px white;
    }
}

@keyframes sparkle-move {
    0%, 100% {
        top: 15%;
        left: 15%;
        opacity: 1;
    }
    25% {
        top: 70%;
        left: 20%;
        opacity: 0.5;
    }
    50% {
        top: 30%;
        left: 70%;
        opacity: 0.8;
    }
    75% {
        top: 60%;
        left: 60%;
        opacity: 0.3;
    }
}

/* Efecto hover para el diamante */
.philosophy-card:nth-child(3):hover .animated-diamond {
    animation-duration: 3s;
    filter: brightness(1.2);
}

.philosophy-card:nth-child(3):hover .diamond-sparkle {
    animation-duration: 1.5s;
}

/* Animación de la diana - Añade esto al CSS */
.animated-target {
    position: relative;
    width: 50px;
    height: 50px;
    animation: target-float 4s infinite ease-in-out;
}

.target-ring {
    position: absolute;
    border: 2px solid var(--azul-marino);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: target-pulse 3s infinite ease-in-out;
}

.ring-1 {
    width: 45px;
    height: 45px;
    animation-delay: 0s;
    border-color: var(--azul-marino);
}

.ring-2 {
    width: 35px;
    height: 35px;
    animation-delay: 0.3s;
    border-color: var(--azul-medio);
}

.ring-3 {
    width: 25px;
    height: 25px;
    animation-delay: 0.6s;
    border-color: var(--azul-celeste);
}

.target-center {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--azul-marino);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: center-hit 2s infinite;
    box-shadow: 0 0 10px var(--azul-marino);
}

.target-arrow {
    position: absolute;
    width: 20px;
    height: 20px;
    top: -5px;
    right: -5px;
    animation: arrow-rotate 5s infinite linear;
}

.target-arrow::before {
    content: '➜';
    color: var(--azul-marino);
    font-size: 16px;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255,255,255,0.8);
}

@keyframes target-float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes target-pulse {
    0%, 100% {
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
        box-shadow: 0 0 15px currentColor;
    }
}

@keyframes center-hit {
    0%, 100% {
        background: var(--azul-marino);
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        background: #ff4444;
        transform: translate(-50%, -50%) scale(1.3);
        box-shadow: 0 0 20px #ff4444;
    }
}

@keyframes arrow-rotate {
    0% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(90deg);
    }
    50% {
        transform: rotate(180deg);
    }
    75% {
        transform: rotate(270deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Efecto hover para la diana */
.philosophy-card:nth-child(1):hover .animated-target {
    animation-duration: 2s;
}

.philosophy-card:nth-child(1):hover .target-center {
    animation-duration: 1s;
    background: #ff4444;
}

.philosophy-card:nth-child(1):hover .target-arrow {
    animation-duration: 2s;
}

/* Efecto de "acierto" al hacer hover */
.philosophy-card:nth-child(1):hover .ring-1,
.philosophy-card:nth-child(1):hover .ring-2,
.philosophy-card:nth-child(1):hover .ring-3 {
    animation: target-hit 0.5s ease-out;
}

@keyframes target-hit {
    0% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}