/* ================================================
   DRA. IVANOVA GUERRERO - MODERN DESIGN v2.0
   Colores: #B15B75 (Rosa) + #00475D (Azul)
   ================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}

/* ================================================
   GLASSMORPHISM EFFECTS
   ================================================ */

.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 32px 0 rgba(0, 71, 93, 0.15),
        inset 0 0 20px rgba(255, 255, 255, 0.05);
}

.glass-card-strong {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 12px 48px 0 rgba(0, 71, 93, 0.2),
        inset 0 0 30px rgba(255, 255, 255, 0.08);
}

/* ================================================
   GLOWING BORDERS
   ================================================ */

.glow-border-rose {
    position: relative;
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #B15B75, #D89AA8) border-box;
    box-shadow: 
        0 0 20px rgba(177, 91, 117, 0.4),
        0 0 40px rgba(177, 91, 117, 0.2),
        inset 0 0 20px rgba(177, 91, 117, 0.1);
}

.glow-border-blue {
    position: relative;
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #00475D, #006B8A) border-box;
    box-shadow: 
        0 0 20px rgba(0, 71, 93, 0.4),
        0 0 40px rgba(0, 71, 93, 0.2),
        inset 0 0 20px rgba(0, 71, 93, 0.1);
}

.glow-border-dual {
    position: relative;
    box-shadow: 
        0 0 15px rgba(177, 91, 117, 0.3),
        0 0 30px rgba(0, 71, 93, 0.2),
        inset 0 0 15px rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(177, 91, 117, 0.5);
}

/* ================================================
   3D FLOATING SHADOWS
   ================================================ */

.shadow-3d {
    box-shadow: 
        0 2px 4px rgba(0, 71, 93, 0.05),
        0 4px 8px rgba(0, 71, 93, 0.08),
        0 8px 16px rgba(0, 71, 93, 0.1),
        0 16px 32px rgba(177, 91, 117, 0.08);
}

.shadow-3d-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.shadow-3d-hover:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 4px 8px rgba(0, 71, 93, 0.08),
        0 8px 16px rgba(0, 71, 93, 0.12),
        0 16px 32px rgba(0, 71, 93, 0.15),
        0 32px 64px rgba(177, 91, 117, 0.12);
}

/* ================================================
   ANIMATED PARTICLES BACKGROUND
   ================================================ */

.particles-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particles-bg::before,
.particles-bg::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 20s infinite ease-in-out;
}

.particles-bg::before {
    background: radial-gradient(circle, #B15B75 0%, transparent 70%);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.particles-bg::after {
    background: radial-gradient(circle, #00475D 0%, transparent 70%);
    bottom: 10%;
    right: 10%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* Dot pattern */
.dot-pattern {
    background-image: 
        radial-gradient(circle, rgba(177, 91, 117, 0.15) 1px, transparent 1px),
        radial-gradient(circle, rgba(0, 71, 93, 0.15) 1px, transparent 1px);
    background-size: 50px 50px, 40px 40px;
    background-position: 0 0, 25px 25px;
}

/* ================================================
   GRADIENT BACKGROUNDS
   ================================================ */

.gradient-blue-rose {
    background: linear-gradient(135deg, #00475D 0%, #006B8A 50%, #B15B75 100%);
}

.gradient-rose-blue {
    background: linear-gradient(135deg, #B15B75 0%, #D89AA8 50%, #00475D 100%);
}

.gradient-diagonal-blue {
    background: linear-gradient(120deg, #00475D 0%, #006B8A 100%);
}

.gradient-diagonal-rose {
    background: linear-gradient(120deg, #B15B75 0%, #D89AA8 100%);
}

.gradient-radial {
    background: radial-gradient(ellipse at top, #00475D 0%, #003545 50%, #B15B75 100%);
}

/* ================================================
   SMOOTH WAVE DIVIDERS
   ================================================ */

.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

/* ================================================
   GLOWING TEXT EFFECTS
   ================================================ */

.text-glow-rose {
    text-shadow: 
        0 0 10px rgba(177, 91, 117, 0.5),
        0 0 20px rgba(177, 91, 117, 0.3),
        0 0 30px rgba(177, 91, 117, 0.2);
}

.text-glow-blue {
    text-shadow: 
        0 0 10px rgba(0, 71, 93, 0.5),
        0 0 20px rgba(0, 71, 93, 0.3),
        0 0 30px rgba(0, 71, 93, 0.2);
}

.text-gradient-rose {
    background: linear-gradient(135deg, #D89AA8, #B15B75);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-blue {
    background: linear-gradient(135deg, #006B8A, #00475D);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ================================================
   NEUMORPHISM STYLE
   ================================================ */

.neumorphism {
    background: #f0f0f0;
    box-shadow: 
        8px 8px 16px rgba(0, 71, 93, 0.15),
        -8px -8px 16px rgba(255, 255, 255, 0.7),
        inset 2px 2px 4px rgba(0, 71, 93, 0.05);
}

.neumorphism-inset {
    background: #f0f0f0;
    box-shadow: 
        inset 8px 8px 16px rgba(0, 71, 93, 0.15),
        inset -8px -8px 16px rgba(255, 255, 255, 0.7);
}

/* ================================================
   MODERN BUTTONS
   ================================================ */

.btn-glass {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 
        0 8px 20px rgba(0, 71, 93, 0.2),
        0 0 20px rgba(177, 91, 117, 0.3);
}

.btn-gradient-rose {
    background: linear-gradient(135deg, #B15B75, #D89AA8);
    box-shadow: 
        0 4px 15px rgba(177, 91, 117, 0.3),
        0 0 20px rgba(177, 91, 117, 0.2);
    transition: all 0.3s ease;
}

.btn-gradient-rose:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 25px rgba(177, 91, 117, 0.4),
        0 0 30px rgba(177, 91, 117, 0.3);
}

.btn-gradient-blue {
    background: linear-gradient(135deg, #00475D, #006B8A);
    box-shadow: 
        0 4px 15px rgba(0, 71, 93, 0.3),
        0 0 20px rgba(0, 71, 93, 0.2);
    transition: all 0.3s ease;
}

.btn-gradient-blue:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 25px rgba(0, 71, 93, 0.4),
        0 0 30px rgba(0, 71, 93, 0.3);
}

/* ================================================
   ANIMATIONS
   ================================================ */

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in-down {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in-left {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fade-in-right {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scale-in {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 
            0 0 20px rgba(177, 91, 117, 0.4),
            0 0 40px rgba(0, 71, 93, 0.2);
    }
    50% {
        box-shadow: 
            0 0 30px rgba(177, 91, 117, 0.6),
            0 0 60px rgba(0, 71, 93, 0.3);
    }
}

.animate-fade-in-up {
    animation: fade-in-up 0.8s ease-out;
}

.animate-fade-in-down {
    animation: fade-in-down 0.8s ease-out;
}

.animate-fade-in-left {
    animation: fade-in-left 0.8s ease-out;
}

.animate-fade-in-right {
    animation: fade-in-right 0.8s ease-out;
}

.animate-scale-in {
    animation: scale-in 0.6s ease-out;
}

.animate-pulse-glow {
    animation: pulse-glow 3s ease-in-out infinite;
}

/* ================================================
   CIRCULAR IMAGE FRAME WITH GLOW
   ================================================ */

.circular-frame {
    position: relative;
    border-radius: 50%;
    padding: 8px;
    background: linear-gradient(135deg, #B15B75, #00475D);
    box-shadow: 
        0 0 30px rgba(177, 91, 117, 0.4),
        0 0 60px rgba(0, 71, 93, 0.3),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
}

.circular-frame-double {
    position: relative;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, #B15B75, #D89AA8);
    box-shadow: 0 0 20px rgba(177, 91, 117, 0.5);
}

.circular-frame-double::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, #00475D, #006B8A);
    z-index: -1;
    box-shadow: 0 0 40px rgba(0, 71, 93, 0.4);
}

/* ================================================
   CUSTOM SCROLLBAR
   ================================================ */

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: linear-gradient(180deg, #f0f0f0 0%, #e0e0e0 100%);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #B15B75 0%, #00475D 100%);
    border-radius: 10px;
    border: 2px solid #f0f0f0;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #D89AA8 0%, #006B8A 100%);
}

/* ================================================
   NAVBAR GLASSMORPHISM
   ================================================ */

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 
        0 4px 20px rgba(0, 71, 93, 0.1),
        inset 0 -1px 0 rgba(177, 91, 117, 0.1);
}

/* ================================================
   RESPONSIVE
   ================================================ */

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .wave-divider svg {
        height: 50px;
    }
    
    .shadow-3d-hover:hover {
        transform: translateY(-4px) scale(1.01);
    }
}

/* ================================================
   GEOMETRIC PATTERNS
   ================================================ */

.pattern-lines {
    background-image: 
        linear-gradient(45deg, rgba(177, 91, 117, 0.05) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(0, 71, 93, 0.05) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(177, 91, 117, 0.05) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(0, 71, 93, 0.05) 75%);
    background-size: 60px 60px;
    background-position: 0 0, 0 30px, 30px -30px, -30px 0px;
}

.pattern-grid {
    background-image: 
        linear-gradient(rgba(177, 91, 117, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 71, 93, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* ================================================
   HOVER LIFT EFFECT
   ================================================ */

.hover-lift {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-12px);
}

/* ================================================
   LOADING STATE
   ================================================ */

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner {
    border: 4px solid rgba(177, 91, 117, 0.2);
    border-top: 4px solid #B15B75;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

/* ================================================
   🚀 EFECTOS ESPACIALES AVANZADOS
   ================================================ */

/* Partículas Flotantes Animadas - MUY VISIBLES */
.particle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgba(177, 91, 117, 0.6) 40%, transparent 70%);
    pointer-events: none;
    z-index: 999;
    box-shadow: 
        0 0 20px rgba(255, 255, 255, 0.8),
        0 0 40px rgba(177, 91, 117, 0.6);
}

.particle-1 {
    width: 8px;
    height: 8px;
    top: 20%;
    left: 10%;
    animation: particle-float-1 15s infinite ease-in-out;
}

.particle-2 {
    width: 12px;
    height: 12px;
    top: 40%;
    right: 20%;
    animation: particle-float-2 18s infinite ease-in-out;
}

.particle-3 {
    width: 6px;
    height: 6px;
    top: 60%;
    left: 30%;
    animation: particle-float-3 20s infinite ease-in-out;
}

.particle-4 {
    width: 10px;
    height: 10px;
    top: 80%;
    right: 15%;
    animation: particle-float-1 22s infinite ease-in-out;
    animation-delay: 5s;
}

.particle-5 {
    width: 8px;
    height: 8px;
    top: 30%;
    left: 70%;
    animation: particle-float-2 16s infinite ease-in-out;
    animation-delay: 3s;
}

.particle-6 {
    width: 6px;
    height: 6px;
    top: 50%;
    right: 40%;
    animation: particle-float-3 19s infinite ease-in-out;
    animation-delay: 7s;
}

@keyframes particle-float-1 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }
    25% {
        transform: translate(50px, -80px) scale(1.3);
        opacity: 0.9;
    }
    50% {
        transform: translate(-30px, -150px) scale(0.8);
        opacity: 0.4;
    }
    75% {
        transform: translate(80px, -100px) scale(1.1);
        opacity: 0.7;
    }
}

@keyframes particle-float-2 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }
    33% {
        transform: translate(-60px, -70px) scale(1.2);
        opacity: 0.8;
    }
    66% {
        transform: translate(40px, -140px) scale(0.9);
        opacity: 0.6;
    }
}

@keyframes particle-float-3 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.7;
    }
    40% {
        transform: translate(70px, -90px) scale(1.4);
        opacity: 1;
    }
    80% {
        transform: translate(-50px, -120px) scale(0.7);
        opacity: 0.5;
    }
}

/* Breathing Animation - RESPIRACIÓN MUY VISIBLE */
@keyframes breathing {
    0%, 100% {
        transform: scale(1);
        opacity: 0.4;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.8;
    }
}

.breathing {
    animation: breathing 4s ease-in-out infinite;
}

/* Neon Glow Borders - BORDES NEÓN MUY BRILLANTES */
.glow-border-neon {
    position: relative;
    box-shadow: 
        0 0 20px rgba(177, 91, 117, 1),
        0 0 40px rgba(177, 91, 117, 0.8),
        0 0 60px rgba(0, 71, 93, 0.6),
        inset 0 0 20px rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.glow-border-neon::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: inherit;
    padding: 3px;
    background: linear-gradient(135deg, #B15B75, #00475D, #B15B75);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 1;
    animation: border-glow 2s ease-in-out infinite;
}

@keyframes border-glow {
    0%, 100% {
        opacity: 0.8;
        filter: brightness(1.2);
    }
    50% {
        opacity: 1;
        filter: brightness(2);
    }
}

/* Ambient Light Effects - Efectos de Luz Ambiental */
.ambient-light::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.ambient-light:hover::after {
    opacity: 1;
}

/* Glass Premium - Glassmorphism Mejorado */
.glass-premium {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(30px) saturate(150%);
    -webkit-backdrop-filter: blur(30px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 
        0 8px 32px rgba(0, 71, 93, 0.2),
        0 16px 64px rgba(177, 91, 117, 0.15),
        inset 0 0 30px rgba(255, 255, 255, 0.08);
}

/* Float on Hover - FLOTACIÓN 3D MUY VISIBLE */
.float-on-hover {
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-style: preserve-3d;
}

.float-on-hover:hover {
    transform: translateY(-20px) rotateX(10deg) rotateY(5deg) scale(1.05);
}

/* Depth 3D - Profundidad 3D */
.depth-3d {
    box-shadow: 
        0 2px 4px rgba(0, 71, 93, 0.06),
        0 4px 8px rgba(0, 71, 93, 0.09),
        0 8px 16px rgba(0, 71, 93, 0.12),
        0 16px 32px rgba(177, 91, 117, 0.1),
        0 32px 64px rgba(0, 71, 93, 0.08);
}

/* Neon Text - TEXTO CON EFECTO NEÓN MUY BRILLANTE */
.neon-text {
    text-shadow: 
        0 0 5px rgba(255, 255, 255, 1),
        0 0 10px rgba(255, 255, 255, 0.9),
        0 0 20px rgba(177, 91, 117, 0.8),
        0 0 40px rgba(177, 91, 117, 0.7),
        0 0 60px rgba(0, 71, 93, 0.6),
        0 0 80px rgba(0, 71, 93, 0.4);
    animation: neon-flicker 3s ease-in-out infinite;
}

@keyframes neon-flicker {
    0%, 100% {
        text-shadow: 
            0 0 5px rgba(255, 255, 255, 1),
            0 0 10px rgba(255, 255, 255, 0.9),
            0 0 20px rgba(177, 91, 117, 0.8),
            0 0 40px rgba(177, 91, 117, 0.7),
            0 0 60px rgba(0, 71, 93, 0.6);
    }
    50% {
        text-shadow: 
            0 0 10px rgba(255, 255, 255, 1),
            0 0 20px rgba(255, 255, 255, 1),
            0 0 40px rgba(177, 91, 117, 1),
            0 0 60px rgba(177, 91, 117, 0.9),
            0 0 80px rgba(0, 71, 93, 0.8);
    }
}

/* Scale Pulse - PULSO MUY VISIBLE */
@keyframes scale-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.5);
    }
}

.scale-pulse {
    animation: scale-pulse 1.5s ease-in-out infinite;
}

/* Shimmer Effect - Efecto Brillo Deslizante */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.shimmer {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 1000px 100%;
    animation: shimmer 3s infinite;
}

/* Card Hover 3D - Efecto 3D en Cards */
.card-3d-hover {
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.card-3d-hover:hover {
    transform: translateY(-15px) rotateX(8deg) scale(1.03);
    box-shadow: 
        0 20px 40px rgba(0, 71, 93, 0.25),
        0 40px 80px rgba(177, 91, 117, 0.2),
        0 0 30px rgba(177, 91, 117, 0.3);
}

/* Holographic Effect - Efecto Holográfico */
.holographic {
    position: relative;
    background: linear-gradient(
        135deg,
        rgba(177, 91, 117, 0.3) 0%,
        rgba(0, 71, 93, 0.3) 50%,
        rgba(177, 91, 117, 0.3) 100%
    );
    background-size: 200% 200%;
    animation: holographic-shift 5s ease infinite;
}

@keyframes holographic-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}
