/* Fissionth - CSS Principal */

/* Variables CSS */
:root {
    --primary-color: #2d7d32;
    --secondary-color: #81c784;
    --accent-color: #ff6b35;
    --text-dark: #2c3e50;
    --text-light: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #1a1a1a;
    --gradient-primary: linear-gradient(135deg, #2d7d32 0%, #4caf50 100%);
    --gradient-accent: linear-gradient(135deg, #ff6b35 0%, #ff8a65 100%);
    --gradient-dark: linear-gradient(135deg, #1a1a1a 0%, #2c3e50 100%);
    --shadow-light: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-medium: 0 8px 30px rgba(0,0,0,0.15);
    --shadow-heavy: 0 15px 50px rgba(0,0,0,0.2);
    --border-radius: 15px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
}

/* Utilidades */
.text-accent { color: var(--accent-color); }
.bg-primary-gradient { background: var(--gradient-primary); }
.bg-accent-gradient { background: var(--gradient-accent); }

/* Navigation */
.custom-navbar {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    padding: 1rem 0;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.custom-navbar.scrolled {
    background: rgba(26, 26, 26, 0.98);
    box-shadow: var(--shadow-medium);
}

.brand-text {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-accent);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

.navbar-nav .nav-link {
    color: var(--text-light) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: var(--transition);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    transition: var(--transition);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 80%;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(45, 125, 50, 0.8) 0%, rgba(26, 26, 26, 0.7) 100%);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--text-light);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-buttons .btn {
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-buttons .btn-primary {
    background: var(--gradient-accent);
    border: none;
    box-shadow: var(--shadow-medium);
}

.hero-buttons .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
}

.hero-buttons .btn-outline-light {
    border: 2px solid rgba(255,255,255,0.8);
    color: var(--text-light);
}

.hero-buttons .btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--text-light);
    transform: translateY(-3px);
}

/* Hero Stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255,255,255,0.2);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-10px);
    background: rgba(255,255,255,0.15);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
    font-family: 'Playfair Display', serif;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 0.5rem;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.scroll-arrow {
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-light);
    border-radius: 25px;
    position: relative;
    animation: scroll-bounce 2s infinite;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    width: 6px;
    height: 6px;
    background: var(--text-light);
    border-radius: 50%;
    transform: translateX(-50%);
    animation: scroll-dot 2s infinite;
}

@keyframes scroll-bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@keyframes scroll-dot {
    0% { transform: translateX(-50%) translateY(0); opacity: 0; }
    50% { transform: translateX(-50%) translateY(20px); opacity: 1; }
    100% { transform: translateX(-50%) translateY(30px); opacity: 0; }
}

/* Section Headers */
.section-header {
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 1rem;
    position: relative;
}

.title-decoration {
    width: 80px;
    height: 4px;
    background: var(--gradient-accent);
    margin: 1rem auto;
    border-radius: 2px;
    position: relative;
}

.title-decoration::before,
.title-decoration::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 20px;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: 2px;
    transform: translateY(-50%);
}

.title-decoration::before {
    left: -30px;
}

.title-decoration::after {
    right: -30px;
}

.section-subtitle {
    font-size: 1.2rem;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
}

/* Background Decorations */
.section-bg-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(45, 125, 50, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 107, 53, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(129, 199, 132, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Filosofía Section */
.filosofia-section {
    padding: 6rem 0;
    position: relative;
    background: var(--bg-light);
}

.filosofia-card {
    text-align: center;
    padding: 3rem 2rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.filosofia-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
    transition: var(--transition);
}

.filosofia-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.filosofia-card:hover::before {
    left: 100%;
}

.filosofia-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    position: relative;
    z-index: 1;
}

.filosofia-card h4 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.filosofia-card p {
    opacity: 0.8;
    line-height: 1.7;
}

/* Timeline Section */
.timeline-section {
    padding: 6rem 0;
    background: var(--gradient-dark);
    position: relative;
    overflow: hidden;
}

.timeline-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></svg>') repeat,
        radial-gradient(circle at 70% 30%, rgba(255, 107, 53, 0.1) 0%, transparent 50%);
    background-size: 50px 50px, 100% 100%;
    pointer-events: none;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient-accent);
    transform: translateX(-50%);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    width: 100%;
}

.timeline-item:nth-child(odd) .timeline-content {
    left: 0;
    text-align: right;
    padding-right: 3rem;
}

.timeline-item:nth-child(even) .timeline-content {
    left: 56%;
    text-align: left;
    padding-left: 3rem;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border: 4px solid white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    transition: var(--transition);
}

.timeline-item.active .timeline-marker {
    width: 30px;
    height: 30px;
    background: var(--gradient-accent);
    animation: pulse-timeline 2s infinite;
}

@keyframes pulse-timeline {
    0% { box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(255, 107, 53, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 107, 53, 0); }
}

.timeline-content {
    position: relative;
    width: 45%;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
}

.timeline-year {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
}

.timeline-content h4 {
    margin-bottom: 1rem;
    color: white;
}

.timeline-content p {
    opacity: 0.9;
    line-height: 1.6;
}

/* Gallery Section */
.gallery-section {
    padding: 6rem 0;
    background: white;
    position: relative;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-heavy);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 2rem;
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h5 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.gallery-overlay p {
    opacity: 0.9;
    font-size: 0.9rem;
    margin: 0;
}

/* Calculator Section */
.calculator-section {
    padding: 6rem 0;
    background: var(--bg-light);
    position: relative;
}

.calculator-card {
    background: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    position: relative;
    overflow: hidden;
}

.calculator-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-accent);
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(45, 125, 50, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.result-display {
    animation: fadeInUp 0.5s ease;
}

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

.result-card {
    background: var(--gradient-primary);
    color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
}

.result-value {
    font-size: 3rem;
    font-weight: 700;
    margin: 1rem 0;
    font-family: 'Playfair Display', serif;
}

.result-description {
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

/* Services Section */
.services-section {
    padding: 6rem 0;
    background: white;
    position: relative;
}

.service-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
    height: 100%;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--primary-color);
}

.service-card.featured {
    border: 2px solid var(--accent-color);
    transform: scale(1.05);
}

.service-card.featured .featured-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--gradient-accent);
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-bottom-left-radius: var(--border-radius);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.service-card h4 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.service-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin: 1.5rem 0;
    font-family: 'Playfair Display', serif;
}

.service-features {
    list-style: none;
    margin: 2rem 0;
    text-align: left;
}

.service-features li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
}

.service-features i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

/* Testimonials Section */
.testimonials-section {
    padding: 6rem 0;
    background: var(--gradient-dark);
    position: relative;
    overflow: hidden;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 70%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><polygon points="50,10 90,90 10,90" fill="white" opacity="0.02"/></svg>') repeat;
    background-size: 100% 100%, 80px 80px;
    pointer-events: none;
}

.testimonials-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-10px);
    background: rgba(255,255,255,0.15);
}

.testimonial-content {
    color: white;
}

.stars {
    margin-bottom: 1.5rem;
}

.stars i {
    color: #ffd700;
    margin-right: 0.2rem;
}

.testimonial-content p {
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 1rem;
    border: 3px solid rgba(255,255,255,0.3);
}

.testimonial-author h5 {
    margin: 0;
    color: white;
}

.testimonial-author span {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    color: white;
    padding: 1rem 0;
    z-index: 1000;
    border-top: 1px solid rgba(255,255,255,0.1);
    transform: translateY(100%);
    transition: var(--transition);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner a {
    color: var(--accent-color);
    text-decoration: none;
}

.cookie-banner a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 4rem 0 2rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-accent);
}

.footer-brand h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-brand p {
    opacity: 0.8;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
    text-decoration: none;
}

.social-links a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

.footer-links h5 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.7rem;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-contact h5 {
    color: white;
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: rgba(255,255,255,0.8);
}

.contact-item i {
    color: var(--accent-color);
    margin-right: 0.7rem;
    width: 20px;
}

.footer-divider {
    border-color: rgba(255,255,255,0.1);
    margin: 3rem 0 2rem;
}

.footer-copyright,
.footer-legal {
    opacity: 0.7;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        left: 40px;
        width: calc(100% - 60px);
        text-align: left;
        padding: 1.5rem;
    }
    
    .timeline-marker {
        left: 20px;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-carousel {
        grid-template-columns: 1fr;
    }
    
    .calculator-card {
        padding: 2rem 1.5rem;
    }
    
    .service-card.featured {
        transform: none;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .hero-buttons .btn:last-child {
        margin-bottom: 0;
    }
    
    .filosofia-card,
    .service-card {
        padding: 2rem 1.5rem;
    }
    
    .testimonial-card {
        padding: 2rem 1.5rem;
    }

    .hero-section{
        padding-top: 120px;
        padding-bottom: 60px;
    }
}

/* Animaciones adicionales */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.filosofia-icon {
    animation: float 6s ease-in-out infinite;
}

.filosofia-card:nth-child(2) .filosofia-icon {
    animation-delay: -2s;
}

.filosofia-card:nth-child(3) .filosofia-icon {
    animation-delay: -4s;
}

/* Efectos de hover adicionales */
.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s;
    z-index: 1;
}

.gallery-item:hover::before {
    transform: translateX(100%);
}

/* Scroll suave */
html {
    scroll-behavior: smooth;
}

/* Mejoras de accesibilidad */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .scroll-arrow {
        animation: none;
    }
    
    .filosofia-icon {
        animation: none;
    }
}



.navbar-brand img{
    max-width: 200px;
    width: 200px;
    object-fit: contain;
}

html{
    overflow-x: hidden;
}

.footer .navbar-brand{
    margin-bottom: 20px;
}

.legal-page-header{
    padding-top: 100px;
}