/* styles.css - Versión Mejorada */

/* Importar fuentes de Google */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* Paleta personalizada mejorada */
:root {
    --rojo: #D63C2F;
    --rojo-hover: #B8342A;
    --azul: #1E2A78;
    --azul-claro: #3A4A9A;
    --blanco: #FFFFFF;
    --gris-claro: #F8F9FA;
    --gris-medio: #E9ECEF;
    --negro-suave: #2C3E50;
    --sombra: rgba(0, 0, 0, 0.1);
    --sombra-hover: rgba(0, 0, 0, 0.2);
    --gradiente-principal: linear-gradient(135deg, var(--azul) 0%, var(--rojo) 100%);
    --gradiente-suave: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* General mejorado */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    background-color: var(--blanco);
    color: var(--negro-suave);
    overflow-x: hidden;
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gris-claro);
}

::-webkit-scrollbar-thumb {
    background: var(--azul);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--rojo);
}

/* Encabezado mejorado */
.header-custom {
    background: var(--gradiente-principal);
    position: relative;
    overflow: hidden;
    padding: 3rem 0;
}

.header-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.header-custom .container {
    position: relative;
    z-index: 2;
}

.logo {
    width: 140px;
    height: auto;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.logo:hover {
    transform: scale(1.1) rotate(5deg);
}

.header-custom h1 {
    font-weight: 700;
    font-size: 3rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-top: 1rem;
}

/* Títulos mejorados */
h2 {
    color: var(--azul);
    font-weight: 600;
    font-size: 2.5rem;
    position: relative;
    margin-bottom: 3rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradiente-principal);
    border-radius: 2px;
}

/* Cards mejoradas */
.card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px var(--sombra);
    background: var(--blanco);
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradiente-principal);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px var(--sombra-hover);
}

.card-img-top {
    height: 250px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card:hover .card-img-top {
    transform: scale(1.1);
}

.card-body {
    padding: 2rem;
}

.card-title {
    color: var(--azul);
    font-weight: 600;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

/* Sección de filosofía mejorada */
.filosofia-section {
    background: linear-gradient(135deg, var(--gris-claro) 0%, var(--blanco) 100%);
    position: relative;
}

.filosofia-card {
    background: var(--blanco);
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 8px 25px var(--sombra);
    transition: all 0.3s ease;
    border-left: 5px solid var(--rojo);
    position: relative;
    overflow: hidden;
}

.filosofia-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: var(--gradiente-principal);
    opacity: 0.05;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.filosofia-card:hover::before {
    top: -25%;
    right: -25%;
    opacity: 0.1;
}

.filosofia-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px var(--sombra-hover);
}

.filosofia-card h4 {
    color: var(--azul);
    font-weight: 600;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
}

/* Sección de contacto mejorada */
.contacto-section {
    background: var(--gradiente-suave);
    color: var(--blanco);
}

.contacto-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
}

.contacto-item {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.contacto-item i {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: var(--blanco);
}

/* Redes sociales mejoradas */
.social-section {
    background: var(--gris-claro);
    position: relative;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--azul);
    text-decoration: none;
    padding: 15px 30px;
    margin: 0 10px 15px 0;
    border: 2px solid var(--azul);
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: var(--blanco);
    box-shadow: 0 4px 15px var(--sombra);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradiente-principal);
    transition: left 0.4s ease;
    z-index: 1;
}

.social-link:hover::before {
    left: 0;
}

.social-link:hover {
    color: var(--blanco);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px var(--sombra-hover);
}

.social-link i,
.social-link span {
    position: relative;
    z-index: 2;
}

.social-link i {
    margin-right: 8px;
    font-size: 1.3rem;
}

/* Footer mejorado */
.footer-custom {
    background: var(--azul);
    position: relative;
    overflow: hidden;
}

.footer-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradiente-principal);
}

/* Botón flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.whatsapp-float:hover {
    background: #128C7E;
    transform: scale(1.1);
    color: white;
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

/* Animaciones personalizadas */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* Responsive mejorado */
@media (max-width: 768px) {
    .header-custom h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .logo {
        width: 100px;
    }
    
    .filosofia-card {
        padding: 1.5rem;
    }
    
    .contacto-card {
        padding: 2rem;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }
}

/* Efectos de carga */
.loading-animation {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.loading-animation.loaded {
    opacity: 1;
    transform: translateY(0);
}
