/*
Theme Name: Manitos de Colores
Theme URI: https://manitosdecolores.cl
Author: Antigravity
Description: Custom theme for Fundación Manitos de Colores
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: manitos-theme
*/

:root {
    --primary-purple: #704FE6;
    --primary-pink: #ff4ca6;
    --primary-yellow: #FFD464;
    --primary-blue: #30b7e3;

    --primary-green: #6ac259;
    --text-dark: #333333;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --white: #ffffff;
    --font-main: 'Outfit', sans-serif;
    --font-heading: 'Outfit', sans-serif;
}

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

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
    position: relative;
}

/* Background Decorations */
.bg-decor {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.decor-item {
    position: absolute;
    opacity: 0.15;
    animation: float 10s infinite ease-in-out;
}

.hand-print { font-size: 80px; }
.pencil { font-size: 40px; }
.scribble { font-size: 60px; }

.bounce {
    animation: bounce 2s infinite ease-in-out;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes float {

    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

@keyframes drift {
    0% { transform: translateX(-10px); }
    100% { transform: translateX(10px); }
}


h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

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

/* Header */
header {
    background: var(--white);
    padding: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background 0.3s, padding 0.3s;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

header .container {
    display: grid;
    grid-template-columns: 250px 1fr 200px;
    align-items: center;
    max-width: 1400px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 80px;
    display: block;
    margin: 0;
}

nav {
    display: flex;
    justify-content: center;
}

nav ul {
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

nav ul li a {
    font-weight: 600;
    color: var(--primary-purple);
    font-size: 1.1rem;
}

nav ul li a:hover {
    color: var(--primary-pink);
}

.header-cta {
    display: flex;
    justify-content: flex-end;
}

.cta-button-outline {
    border: 2px solid var(--primary-purple);
    color: var(--primary-purple);
    padding: 10px 30px;
    border-radius: 50px;
    font-weight: 700;
    transition: 0.3s;
}

.cta-button-outline:hover {
    background: var(--primary-purple);
    color: var(--white);
}

.cta-button {
    background: var(--primary-purple);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 700;
    border: 2px solid var(--primary-purple);
}

.cta-button:hover {
    background: transparent;
    color: var(--primary-purple);
}

/* Sections */
section {
    padding: 80px 0;
}

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

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-purple);
    margin-bottom: 10px;
}

/* Home Hero */
.hero {
    background: #ffffff;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #333;
    font-family: var(--font-heading);
}

.hero p {
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto 30px;
    color: #666;
}

/* Wavy Text */
.fundacion-title {
    font-family: 'Lilita One', cursive;
    font-size: 3.5rem;
    color: #30b7e3;
    display: block;
    margin-top: 40px;
}

.manitos-wavy {
    font-family: 'Bubblegum Sans', cursive;
    font-size: 6rem;
    display: block;
    margin-top: -15px;
}

.brand-titles img {
    max-width: 80%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.manitos-hero-img {
    max-width: 100%;
    height: auto;
    margin-top: -10px;
}

@keyframes wave-text {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-15px) rotate(3deg); }
}

/* Children Circles */
.child-circle {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 8px solid white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    background-size: cover;
    background-position: center;
    z-index: 5;
    animation: float 6s infinite ease-in-out;
}

.child-left { left: 3%; top: 30%; background-color: #fae8ff; }
.child-right { right: 3%; top: 35%; background-color: #fef9c3; }

.hero-icon {
    position: absolute;
    font-size: 2rem;
    opacity: 0.5;
    animation: drift 8s infinite linear alternate;
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 10000;
}

/* Services Grid */
.serviceSwiper .swiper-slide {
    height: auto;
}

.service-card {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 30px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0,0,0,0.02);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%; /* Important for Swiper equal heights */
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 60px rgba(112, 79, 230, 0.15);
    border-color: var(--primary-purple);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-purple), var(--primary-pink));
    opacity: 0;
    transition: 0.3s;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card .card-thumb {
    margin-bottom: 25px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card img {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    object-fit: cover;
    transition: transform 0.4s;
}

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

.service-card h3 {
    font-size: 1.7rem;
    color: var(--primary-purple);
    margin-bottom: 20px;
    word-wrap: break-word;
}

.service-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #777;
    margin-bottom: 20px;
}


/* Wave Divider */
.wave {
    width: 100%;
    height: auto;
    display: block;
}

/* Professionals */
.pro-card {
    background: #ffffff;
    border-radius: 30px;
    padding: 20px 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    height: 320px; /* Further reduced height */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.3s;
    justify-content: flex-start;
}

.pro-card:hover {
    transform: translateY(-10px);
}

.pro-img {
    width: 130px; /* More compact image */
    height: 130px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 5px solid #f9fafb;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin: 0 auto 10px;
    flex-shrink: 0;
}

.pro-info {
    width: 100%;
}

.pro-info h3 {
    font-size: 1.2rem;
    color: var(--primary-purple);
    margin-bottom: 5px;
    line-height: 1.2;
    height: 2.4em; /* Fixed height for exactly 2 lines */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.pro-tag {
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    height: 2.4em; /* Fixed height for exactly 2 lines */
    overflow: hidden;
    line-height: 1.2;
}

/* Swiper Customization */
.swiper-pagination-bullet-active {
    background: var(--primary-yellow) !important;
}

.swiper-pagination-bullet {
    background: #ffffff;
    opacity: 0.7;
}

/* Album Slider Zoom Effect */
.album-img-container {
    height: 350px;
    overflow: hidden;
    position: relative;
    cursor: zoom-in;
}

.album-img-zoom {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.album-img-container:hover .album-img-zoom {
    transform: scale(1.1);
}
footer {
    background: #ffffff;
    color: var(--text-dark);
    padding: 80px 0 20px;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-logo {
    max-width: 250px;
    height: auto;
    margin-bottom: 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-size: 1.2rem;
    color: var(--primary-purple);
    margin-bottom: 20px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a:hover {
    color: var(--primary-purple);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.05);
    color: #999;
}


/* Wavy Dividers */
.wavy-divider {
    width: 100%;
    height: 100px;
    fill: var(--white);
    margin-top: -50px;
    position: relative;
    z-index: 2;
}

.wavy-bottom {
    margin-top: 0;
    margin-bottom: -50px;
}

/* Section Movement */
[data-aos] {
    transition-duration: 1000ms !important;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container { padding: 0 40px; }
    header .container { grid-template-columns: 200px 1fr 180px; }
}

@media (max-width: 1024px) {
    .hero h1 { font-size: 3rem; }
    .manitos-wavy { font-size: 4rem; }
    .child-circle { width: 150px; height: 150px; }
}

@media (max-width: 768px) {
    header .container {
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    nav ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .header-cta { justify-content: center; width: 100%; }
    
    .hero { padding: 60px 0; }
    .hero h1 { font-size: 2.5rem; }
    .fundacion-title { font-size: 2.5rem; }
    .manitos-wavy { font-size: 3rem; }
    
    .child-circle { display: none; }
    
    .services-grid, .pro-grid, .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title h2 { font-size: 2rem; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2rem; }
    .manitos-wavy { font-size: 2.5rem; }
    .container { padding: 0 20px; }
}
