/**
* Templo Almas Benditas - Estilos CSS
* Diseño esotérico moderno y responsivo
*/

/* Variables CSS */
:root {
    --primary-color: #4a1a4a;
    --secondary-color: #7b2d7b;
    --accent-gold: #d4af37;
    --dark-purple: #2d1033;
    --deep-violet: #5d2e5d;
    --mystic-blue: #1e1a3a;
    --text-light: #f5f5f5;
    --text-dark: #2c2c2c;
    --bg-gradient: linear-gradient(135deg, var(--dark-purple) 0%, var(--primary-color) 50%, var(--deep-violet) 100%);
    --gold-gradient: linear-gradient(45deg, #d4af37, #f4d03f, #d4af37);
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(rgba(45, 16, 51, 0.85), rgba(77, 26, 74, 0.85)), 
                url('../img/hero-bg.webp') center center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(45, 16, 51, 0.3) 100%);
}

.hero-content {
    text-align: center;
    color: var(--text-light);
    z-index: 2;
    position: relative;
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    font-family: 'Cinzel', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    from { filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.3)); }
    to { filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.6)); }
}

.hero h2 {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    margin-bottom: 2rem;
    font-weight: 300;
    opacity: 0.9;
}

/* Botones CTA */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--gold-gradient);
    color: var(--dark-purple);
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.3);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(212, 175, 55, 0.4);
    color: var(--dark-purple);
    text-decoration: none;
}

.cta-button::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;
}

.cta-button:hover::before {
    left: 100%;
}

/* Botones flotantes */
.floating-buttons {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: pulse 2s infinite;
}

.whatsapp-btn {
    background: linear-gradient(45deg, #25d366, #128c7e);
}

.phone-btn {
    background: var(--bg-gradient);
}

.floating-btn:hover {
    transform: scale(1.1);
    color: white;
    text-decoration: none;
}

@keyframes pulse {
    0% { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); }
    50% { box-shadow: 0 4px 30px rgba(212, 175, 55, 0.5); }
    100% { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); }
}

/* Secciones */
.section {
    padding: 80px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-family: 'Cinzel', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gold-gradient);
}

.section-title p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Sección Acerca de */
.about-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-family: 'Cinzel', serif;
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 1.5rem;
}

.about-features {
    list-style: none;
    margin-bottom: 2rem;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 1rem;
}

.about-features i {
    color: var(--accent-gold);
    font-size: 1.2rem;
}

.about-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* Sección de Diagnóstico */
.diagnosis-section {
    background: var(--bg-gradient);
    color: var(--text-light);
}

.diagnosis-section .section-title h2 {
    color: var(--text-light);
}

.diagnosis-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.diagnosis-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;
}

.diagnosis-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-gold);
}

.diagnosis-card i {
    font-size: 3rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.diagnosis-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Sección de Servicios */
.services-section {
    background: #f8f9fa;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gold-gradient);
}

.service-card-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-card-image img {
    transform: scale(1.1);
}

.service-icon {
    position: absolute;
    top: 0px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: var(--bg-gradient);
    color: var(--accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border: 4px solid white;
}

.service-card-content {
    padding: 40px 30px 30px;
}

.service-card h3 {
    font-family: 'Cinzel', serif;
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: #666;
    line-height: 1.6;
}

/* Sección de Prosperidad */
.prosperity-section {
    background: var(--bg-gradient);
    color: var(--text-light);
}

.prosperity-section .section-title h2 {
    color: var(--text-light);
}

.prosperity-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.prosperity-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

.prosperity-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.prosperity-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* Footer */
.footer {
    background: var(--dark-purple);
    color: var(--text-light);
    padding: 40px 0;
    text-align: center;
}

.footer a {
    color: var(--accent-gold);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Animaciones de scroll */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.scroll-animate.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Diseño responsivo */
@media (max-width: 1024px) {
    .hero {
        background-attachment: scroll;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .about-content,
    .prosperity-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .floating-buttons {
        right: 15px;
        bottom: 15px;
    }

    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .diagnosis-cards {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero h2 {
        font-size: 1.2rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .about-text h3 {
        font-size: 1.5rem;
    }
    
    .cta-button {
        padding: 14px 28px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-content {
        padding: 0 15px;
    }
    
    .diagnosis-card,
    .service-card {
        margin-bottom: 20px;
    }
    
    .service-card-content {
        padding: 30px 20px 20px;
    }
    
    .about-features li {
        font-size: 0.9rem;
    }
}

/* Efectos adicionales */
.service-card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 0%, rgba(212, 175, 55, 0.1) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover .service-card-image::after {
    opacity: 1;
}

/* Hover effects para botones */
.cta-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.4);
}

/* Animación para iconos */
.about-features i,
.diagnosis-card i,
.service-icon i {
    transition: transform 0.3s ease;
}

.about-features li:hover i,
.diagnosis-card:hover i,
.service-card:hover .service-icon i {
    transform: scale(1.1);
}

/* Gradientes adicionales */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, rgba(248, 249, 250, 1), transparent);
    pointer-events: none;
}

/* Mejoras en tipografía */
.diagnosis-card p,
.service-card p {
    text-align: justify;
    hyphens: auto;
}

/* Estados de carga */
.service-card-image img {
    background: linear-gradient(45deg, #e0e0e0, #f0f0f0);
}

/* Accesibilidad */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Modo alto contraste */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000;
        --accent-gold: #ffd700;
        --text-dark: #000;
        --text-light: #fff;
    }
}