/* Passion Theme - The Heart of Education (Green Edition) */
:root {
    --passion-primary: #27ae60;
    /* Nephritis Green - darker, more professional */
    --passion-dark: #145a32;
    /* QA Green - very dark for text/bg */
    --passion-accent: #82e0aa;
    /* Light Green for gradients/blobs */
    --passion-light: #e9f7ef;
    /* Very light green background */
    --passion-text-light: #ffffff;
    --organic-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
}

@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--passion-light);
    color: var(--passion-dark);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    color: var(--passion-dark);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--passion-primary);
    border-radius: 5px;
}

/* Hero Section */
.hero-passion {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--passion-dark);
    overflow: hidden;
}

/* ============================================
   HERO LIGHT - FONDO BLANCO (NUEVO DISEÑO)
   ============================================ */
.hero-passion.hero-light {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #e9f7ef 100%);
}

.hero-passion.hero-light .hero-bg-img {
    display: none;
}

.hero-passion.hero-light .shape-blob {
    background: linear-gradient(45deg, rgba(39, 174, 96, 0.15), rgba(130, 224, 170, 0.1));
    filter: blur(60px);
    opacity: 0.6;
}

.hero-passion.hero-light .hero-content {
    color: var(--passion-dark);
    text-shadow: none;
}

.hero-passion.hero-light .hero-subtitle {
    color: var(--passion-dark);
    text-shadow: none;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    box-shadow: none;
}

.hero-passion.hero-light .hero-subtitle:hover {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    color: var(--passion-dark);
}

.hero-passion.hero-light .hero-content .lead {
    color: #2c3e50;
    text-shadow: none;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(39, 174, 96, 0.15);
    box-shadow: 0 4px 20px rgba(39, 174, 96, 0.08);
}

.hero-passion.hero-light .hero-logo-main::before {
    display: none;
}

.hero-passion.hero-light .hero-logo-img {
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.1));
}

.hero-passion.hero-light .hero-logo-img:hover {
    filter: drop-shadow(0 15px 40px rgba(39, 174, 96, 0.2));
}

.hero-passion.hero-light .logo-bg {
    opacity: 0.05;
    filter: blur(2px);
}

.hero-passion.hero-light .hero-tree-img {
    filter: drop-shadow(0 20px 60px rgba(39, 174, 96, 0.3));
}

/* Elementos decorativos adicionales para hero light */
.hero-passion.hero-light::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(ellipse, rgba(130, 224, 170, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-passion.hero-light::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, rgba(233, 247, 239, 0.5) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

/* Puntos decorativos orgánicos */
.hero-passion.hero-light .organic-dots {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.hero-passion.hero-light .organic-dot {
    position: absolute;
    border-radius: 50%;
    background: var(--passion-primary);
    opacity: 0.08;
}

.hero-passion.hero-light .organic-dot:nth-child(1) {
    width: 300px;
    height: 300px;
    top: 10%;
    right: 5%;
}

.hero-passion.hero-light .organic-dot:nth-child(2) {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 10%;
}

.hero-passion.hero-light .organic-dot:nth-child(3) {
    width: 80px;
    height: 80px;
    top: 50%;
    right: 30%;
}

.hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    /* Lower opacity for better text contrast */
    mix-blend-mode: normal;
    /* Removed overlay to prevent washing out */
    filter: brightness(0.7);
    /* Darken image */
    z-index: 0;
}

.hero-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.shape-blob {
    position: absolute;
    background: linear-gradient(45deg, var(--passion-primary), var(--passion-accent));
    filter: blur(80px);
    opacity: 0.4;
    border-radius: 50%;
    animation: floatBlob 10s infinite alternate ease-in-out;
}

.blob-1 {
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
}

.blob-2 {
    bottom: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    animation-delay: -5s;
}

@keyframes floatBlob {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(20px, -20px) scale(1.1);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--passion-text-light);
    width: 100%;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    /* Enhanced readability */
}

/* Specific text instructions from user: "BosquesARD" needs to be visible */
.hero-title {
    font-size: 5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #ffffff;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

/* Hero paragraph with blur card */
.hero-content .lead {
    font-size: 1.2rem;
    font-weight: 400;
    color: #f0f3f4;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    position: relative;
    display: block;
    padding: 22px 30px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    max-width: 800px;
    margin: 0 0 2rem 0;
    text-align: left;
    z-index: 1;
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(4px);
}

.btn-passion-main {
    background: linear-gradient(to right, var(--passion-primary), var(--passion-accent));
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    box-shadow: 0 10px 20px rgba(39, 174, 96, 0.4);
    /* Green shadow */
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin-top: 20px;
}

.btn-passion-main:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(39, 174, 96, 0.6);
    color: white;
}

/* Modules Grid */
.passion-modules {
    padding: 80px 0;
    background: white;
    position: relative;
}

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

.section-header-passion h2 {
    font-size: 3rem;
    color: var(--passion-dark);
    margin-bottom: 20px;
}

.section-header-passion p {
    font-size: 1.2rem;
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto;
}

.module-card-passion {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    height: 100%;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.module-card-passion:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--passion-primary), var(--passion-accent));
    transition: height 0.4s ease;
    z-index: -1;
}

.module-card-passion:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.module-card-passion:hover:before {
    height: 100%;
}

.module-card-passion:hover h3,
.module-card-passion:hover p,
.module-card-passion:hover i {
    color: white;
}

.card-body-passion {
    padding: 40px 30px;
    text-align: center;
}

.module-icon-passion {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--passion-primary);
    transition: all 0.4s ease;
}

.module-card-passion h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    transition: all 0.4s ease;
}

.module-card-passion p {
    color: #7f8c8d;
    transition: all 0.4s ease;
}

/* Services */
.services-passion {
    padding: 100px 0;
    background-color: var(--passion-light);
}

.service-row {
    display: flex;
    align-items: center;
    margin-bottom: 80px;
}

.service-row:nth-child(even) {
    flex-direction: row-reverse;
}

.service-img {
    flex: 1;
    position: relative;
}

.service-img img {
    width: 100%;
    border-radius: 30px;
    box-shadow: 20px 20px 0 var(--passion-dark);
}

.service-text {
    flex: 1;
    padding: 0 50px;
}

.service-text h3 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.service-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 30px;
}

.service-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.service-list li i {
    color: var(--passion-primary);
    margin-right: 10px;
    font-size: 1.2rem;
}

/* Footer */
.footer-passion {
    background-color: var(--passion-dark);
    color: white;
    padding: 60px 0 30px;
    text-align: center;
}

.footer-passion h2 {
    color: white;
    margin-bottom: 20px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    margin: 0 15px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--passion-accent);
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .shape-blob {
        display: none;
    }

    .service-row,
    .service-row:nth-child(even) {
        flex-direction: column;
    }

    .service-text {
        padding: 30px 0;
    }

    .service-img img {
        box-shadow: 10px 10px 0 var(--passion-dark);
    }
}

/* Catalog Highlight Section */
.section-highlight {
    background: linear-gradient(135deg, var(--passion-dark) 0%, var(--passion-primary) 100%);
    padding: 80px 0;
    margin: 60px 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.section-highlight::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    animation: rotate-bg 20s linear infinite;
}

@keyframes rotate-bg {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Ensure content is above the pseudo-element background */
.section-highlight .container {
    position: relative;
    z-index: 2;
}/* Hero Tree Animation */
.hero-tree-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    min-height: 400px;
}

.hero-tree-img {
    max-width: 100%;
    max-height: 1300px;
    object-fit: contain;
    position: relative;
    z-index: 2;
    animation: tree-float 4s ease-in-out infinite, tree-glow-pulse 3s ease-in-out infinite;
    filter: drop-shadow(0 20px 60px rgba(46, 125, 50, 0.6));
}

.tree-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(76, 175, 80, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: glow-rotate 8s linear infinite;
    z-index: 1;
}

@keyframes tree-float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-15px) rotate(1deg);
    }
    50% {
        transform: translateY(-5px) rotate(0deg);
    }
    75% {
        transform: translateY(-20px) rotate(-1deg);
    }
}

@keyframes tree-glow-pulse {
    0%, 100% {
        filter: drop-shadow(0 10px 30px rgba(46, 125, 50, 0.4)) brightness(1);
    }
    50% {
        filter: drop-shadow(0 15px 40px rgba(76, 175, 80, 0.6)) brightness(1.1);
    }
}

@keyframes glow-rotate {
    0% {
        transform: rotate(0deg) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: rotate(180deg) scale(1.2);
        opacity: 0.8;
    }
    100% {
        transform: rotate(360deg) scale(1);
        opacity: 0.5;
    }
}

/* Tree leaves subtle animation */
.hero-tree-img:hover {
    animation: tree-float 2s ease-in-out infinite, tree-shake 0.5s ease-in-out;
}

@keyframes tree-shake {
    0%, 100% { transform: translateY(-15px) rotate(0deg); }
    25% { transform: translateY(-15px) rotate(2deg); }
    75% { transform: translateY(-15px) rotate(-2deg); }
}

/* Responsive adjustments for hero */
@media (max-width: 991px) {
    .hero-content .col-lg-7 {
        text-align: center !important;
    }
    
    .hero-content .d-flex {
        justify-content: center !important;
    }
}

/* Ensure content is above the pseudo-element background */
.section-highlight .container {
    position: relative;
    z-index: 2;
}

/* Logo Background Floating Effect */
.logo-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.logo-bg {
    position: absolute;
    opacity: 0.08;
    width: 80px;
    height: auto;
    filter: blur(1px);
}

.logo-bg-1 {
    top: 10%;
    left: 5%;
    animation: float-logo-1 20s ease-in-out infinite;
}

.logo-bg-2 {
    top: 60%;
    left: 15%;
    animation: float-logo-2 25s ease-in-out infinite;
    width: 60px;
}

.logo-bg-3 {
    top: 20%;
    right: 10%;
    animation: float-logo-3 22s ease-in-out infinite;
    width: 70px;
}

.logo-bg-4 {
    bottom: 20%;
    left: 8%;
    animation: float-logo-4 18s ease-in-out infinite;
    width: 50px;
}

.logo-bg-5 {
    top: 70%;
    right: 20%;
    animation: float-logo-5 24s ease-in-out infinite;
    width: 65px;
}

@keyframes float-logo-1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(30px, -20px) rotate(5deg); }
    50% { transform: translate(-20px, 30px) rotate(-5deg); }
    75% { transform: translate(20px, 20px) rotate(3deg); }
}

@keyframes float-logo-2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-25px, 25px) rotate(-8deg); }
    66% { transform: translate(25px, -15px) rotate(8deg); }
}

@keyframes float-logo-3 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-30px, -30px) rotate(10deg); }
}

@keyframes float-logo-4 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(20px, 30px) rotate(-5deg); }
    75% { transform: translate(-20px, -20px) rotate(5deg); }
}

@keyframes float-logo-5 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(40px, 10px) rotate(-10deg); }
}

/* Hero Logo Wrapper - Agrupa logo + subtítulo */
.hero-logo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: -30px;
    margin-bottom: 20px;
}

/* Hero Main Logo - Sin ficha de opacidad */
.hero-logo-main {
    animation: logo-entrance 1s ease-out;
    position: relative;
    display: block;
    text-align: center;
    z-index: 1;
    margin-bottom: -20px;
    line-height: 0;
}

.hero-logo-img {
    max-width: 1300px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 15px 50px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease, filter 0.3s ease;
    position: relative;
    z-index: 1;
}

.hero-logo-img:hover {
    transform: scale(1.02);
    filter: drop-shadow(0 8px 30px rgba(39, 174, 96, 0.3));
}

/* Subtítulo alineado con el logo - Sin ficha de opacidad */
.hero-subtitle {
    font-size: 2rem;
    font-weight: 400;
    color: var(--passion-dark);
    text-shadow: none;
    padding: 0;
    margin: 0;
    margin-top: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    box-shadow: none;
    text-align: center;
    position: relative;
    z-index: 1;
    line-height: 1.2;
}

.hero-subtitle:hover {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    transform: none;
    color: var(--passion-dark);
}

@keyframes logo-entrance {
    0% {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive adjustments */
@media (max-width: 1399px) {
    .hero-logo-img {
        max-width: 1100px;
    }
    
    .hero-logo-wrapper {
        margin-left: -20px;
    }
    
    .hero-subtitle {
        font-size: 1.8rem;
        margin-left: 0;
    }
    
    .hero-tree-img {
        max-height: 1100px;
    }
    
    .hero-content .lead {
        padding: 20px 28px;
    }
}

@media (max-width: 1199px) {
    .hero-logo-img {
        max-width: 950px;
    }
    
    .hero-logo-wrapper {
        margin-left: -15px;
    }
    
    .hero-subtitle {
        font-size: 1.6rem;
        margin-left: 0;
    }
    
    .hero-tree-img {
        max-height: 900px;
    }
}

@media (max-width: 991px) {
    .hero-logo-main {
        text-align: center;
    }
    
    .hero-logo-img {
        max-width: 580px;
    }
    
    .hero-tree-img {
        max-height: 750px;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
        padding: 0;
        margin-left: 0;
        text-align: center;
    }
    
    .hero-content .lead {
        padding: 18px 25px;
        text-align: center;
        margin: 0 auto 2rem auto;
    }
}

@media (max-width: 768px) {
    .hero-logo-img {
        max-width: 550px;
    }
    
    .hero-logo-main {
        margin-bottom: -10px;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .logo-bg {
        width: 50px;
    }
    
    .hero-tree-img {
        max-height: 600px;
    }
    
    .hero-content .lead {
        padding: 15px 20px;
        font-size: 1rem;
    }
}
