/* 
   THEME: ApoyaRSE Organic Tech (Inspired by Bloom Energy)
   AUTHOR: Antigravity Agent
*/

:root {
    /* Palette from Reference Image */
    --primary: #4CAF50;
    /* Vibrant Green */
    --primary-dark: #2E7D32;
    --secondary: #2C3E50;
    /* Dark Blue/Grey for text */
    --accent: #81C784;
    /* Soft Green */
    --bg-light: #F9FBF9;
    /* Very subtle green tint white */
    --white: #ffffff;

    /* Spacing & Shapes */
    --radius-lg: 30px;
    --radius-md: 20px;
    --radius-pill: 50px;
    --shadow-soft: 0 10px 40px -10px rgba(76, 175, 80, 0.15);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.05);

    /* Typography */
    --font-heading: 'Outfit', 'Montserrat', sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    color: var(--secondary);
    background-color: var(--bg-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

ul {
    list-style: none;
}

/* --- UTILITIES --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-white {
    background-color: var(--white);
    color: var(--primary);
}

.section-padding {
    padding: 80px 0;
}

/* --- HEADER / NAV --- */
header {
    position: fixed;
    top: 20px;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav-container {
    background: #ffffff;
    /* backdrop-filter removed to ensure solid background for logo matching */
    padding: 15px 30px;
    border-radius: var(--radius-pill);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-card);
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    color: var(--secondary);
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--primary);
}

/* --- HERO SECTION --- */
/* The "Card" Look from the image */
.hero {
    padding-top: 140px;
    /* Space for fixed header */
    padding-bottom: 80px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    background: url('https://images.unsplash.com/photo-1466611653911-95081537e5b7?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    /* Optional: If we want the background to be the image and the content in a card, 
       or if we want the "green field" look from the reference. */
    border-radius: 0 0 50px 50px;
    /* Curve at the bottom logic */
    margin: 20px;
    margin-top: 0;
    border-radius: 30px;
    overflow: hidden;
}

/* Overlay to ensure text readability similar to reference */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(76, 175, 80, 0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    color: var(--white);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease-out;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.floating-stats {
    position: absolute;
    bottom: 40px;
    right: 40px;
    background: rgba(255, 255, 255, 0.9);
    padding: 15px 25px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    backdrop-filter: blur(5px);
    z-index: 2;
    animation: float 6s ease-in-out infinite;
}

.stat-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* --- SECTIONS GENERAL --- */
.section-title {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--secondary);
}

.section-title p {
    color: #666;
}

/* --- FEATURES / PHILOSOPHY (Grid) --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    transition: 0.3s;
    border: 1px solid #f0f0f0;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-soft);
    border-color: var(--primary);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: #E8F5E9;
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 25px;
}

/* --- SERVICES (Reference: "Our Solutions") --- */
.services-section {
    background-color: var(--white);
}

.services-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    align-items: center;
}

.services-image {
    flex: 1;
    min-width: 300px;
}

.services-image img {
    width: 100%;
    border-radius: 30px;
    box-shadow: var(--shadow-card);
}

.services-list {
    flex: 1;
    min-width: 300px;
}

.service-item {
    margin-bottom: 30px;
    padding-left: 20px;
    border-left: 3px solid transparent;
}

.service-item:hover {
    border-left-color: var(--primary);
}

.service-item h3 {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* --- CONTACT FORM --- */
.contact-section {
    background: #111;
    color: white;
    margin: 20px;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    padding: 80px 40px;
    gap: 60px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-form-wrapper {
    flex: 1;
    min-width: 300px;
}

.form-group {
    margin-bottom: 20px;
}

.form-input {
    width: 100%;
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-family: inherit;
    transition: 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
}

textarea.form-input {
    resize: vertical;
    min-height: 120px;
}

/* --- ANIMATIONS --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
    }

    /* Mobile menu implementation needed if requested */
    .contact-container {
        padding: 40px 20px;
    }
}

/* --- ADDED CONTENT IMAGES & BUTTONS --- */
.content-image-full {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    margin: 2rem 0;
    max-width: 1000px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.content-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}

.floating-whatsapp:hover {
    transform: scale(1.1) rotate(10deg);
    color: white;
}

/* --- NEW CONTENT STYLES --- */
.propuesta-text {
    font-size: 1.1rem;
    color: var(--secondary);
    max-width: 900px;
    margin: 0 auto 40px;
    text-align: center;
    line-height: 1.8;
}

.propuesta-highlight {
    font-weight: 600;
    color: var(--primary-dark);
    margin-top: 20px;
    display: block;
}

.service-category-title {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.service-box {
    background: #fff;
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    transition: transform 0.3s;
}

.service-box:hover {
    transform: translateY(-5px);
}

.service-box ul {
    list-style-type: none;
    margin-top: 15px;
}

.service-box li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

.service-box li::before {
    content: '•';
    color: var(--primary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.value-card {
    text-align: center;
    background: #fdfdfd;
    padding: 25px;
    border-radius: var(--radius-md);
    border: 1px solid #eee;
}

.value-card h4 {
    color: var(--primary-dark);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.value-card p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
}

.manifiesto-box {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 60px;
    border-radius: var(--radius-lg);
    text-align: center;
    margin-top: 60px;
}

.manifiesto-box h3 {
    font-size: 2rem;
    margin-bottom: 30px;
    font-family: var(--font-heading);
}

.manifiesto-list {
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
}

.manifiesto-list li {
    margin-bottom: 15px;
    list-style-type: none;
    padding-left: 25px;
    position: relative;
}

.manifiesto-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.mission-vision-box {
    background: #fff;
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    height: 100%;
    text-align: center;
}

.mission-vision-box h3 {
    color: var(--primary);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.social-link {
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--primary) !important;
}

.logo-service {
    height: 60px;
    width: auto;
    object-fit: contain;
    margin-bottom: 25px;
    transition: transform 0.3s;
}

.logo-service:hover {
    transform: scale(1.05);
}

/* --- APRENDER SECTION --- */
.aprende-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.course-category-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
    border-top: 5px solid var(--primary);
    position: relative;
    overflow: hidden;
}

.course-category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-soft);
}

.category-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 25px;
    background: rgba(76, 175, 80, 0.1);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.course-category-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--secondary);
}

.course-category-card p {
    color: #666;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.course-list {
    list-style: none;
    padding: 0;
}

.course-list li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
    color: #444;
}

.course-list li:last-child {
    border-bottom: none;
}

.course-list li i {
    color: var(--accent);
    margin-top: 4px;
}

.aprende-cta {
    margin-top: 60px;
    text-align: center;
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid #eee;
}
