/* =========================================
   VARIABLES & BASE STYLES
   ========================================= */
   :root {
    --primary-color: #7eb549; /* Green for buttons and emphasis */
    --primary-hover: #6a9c3d;
    --text-color: #545454; /* Base text color */
    --text-dark: #333333;
    --bg-white: #ffffff; /* Majority background */
    --bg-light: #f5f5f6; /* Sections background */
    --border-color: #e2e2e2;
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.08);
    --shadow-hover: 0 15px 40px rgba(126, 181, 73, 0.2);
    
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Lato', sans-serif;
    
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    line-height: 1.2;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

.bg-light {
    background-color: var(--bg-light);
}

/* Typography Emphasis */
span {
    color: var(--primary-color);
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    border: none;
}

.btn i {
    margin-right: 8px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 15px rgba(126, 181, 73, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-large {
    padding: 15px 35px;
    font-size: 16px;
}

.btn-block {
    display: block;
    width: 100%;
}

/* =========================================
   HEADER
   ========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
    transition: var(--transition);
}

.nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav ul {
    display: flex;
    gap: 25px;
}

.nav a {
    color: var(--text-color);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 15px;
}

.nav a:hover {
    color: var(--primary-color);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    padding: 160px 0 100px;
    background-color: var(--bg-white);
    position: relative;
    overflow: hidden;
}

/* Soft background decoration */
.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(126,181,73,0.05) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content .badge {
    display: inline-block;
    padding: 6px 15px;
    background-color: rgba(126, 181, 73, 0.1);
    color: var(--primary-color);
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: var(--text-color);
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

/* Decorative Hero Image/Card */
.hero-image {
    position: relative;
    height: 100%;
    min-height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: url('Images/Logo%20coomeva%20cuadrado.png') no-repeat center center;
    background-size: contain;
    opacity: 0.9;
}

.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255,255,255,0.5);
    max-width: 250px;
    text-align: center;
    position: absolute;
    bottom: 20px;
    right: 20px;
    animation: float 6s ease-in-out infinite;
}

.glass-card i {
    font-size: 30px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.glass-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.glass-card p {
    font-size: 13px;
    margin: 0;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* =========================================
   SECTION HEADERS
   ========================================= */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-color);
}

/* =========================================
   SOBRE NOSOTROS
   ========================================= */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid transparent;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: rgba(126, 181, 73, 0.2);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(126, 181, 73, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.stat-card:hover .stat-icon {
    background-color: var(--primary-color);
    color: #fff;
}

.stat-card h3 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.stat-card p {
    font-size: 14px;
    font-weight: 500;
}

/* =========================================
   PORTAFOLIO
   ========================================= */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.portfolio-card {
    background-color: var(--bg-light); /* using the required f5f5f6 but the section is white so card is light gray. Wait, the rule says "algunas secciones de fondo: #f5f5f6". Let's make the card white and section light gray. */
    background-color: var(--bg-white);
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.portfolio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
    z-index: -1;
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

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

.icon-wrapper {
    font-size: 35px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.portfolio-card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.portfolio-card p {
    font-size: 0.95rem;
}

/* =========================================
   CONTACTO
   ========================================= */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.info-list {
    margin-top: 40px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.info-item i {
    font-size: 20px;
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    background: rgba(126, 181, 73, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.info-item h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.info-item p {
    font-size: 0.9rem;
}

.contact-form {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.contact-form h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-color);
    transition: var(--transition);
    background-color: var(--bg-white);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(126, 181, 73, 0.1);
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    background-color: var(--text-dark);
    color: #fff;
    text-align: center;
    padding: 30px 0;
}

.footer p {
    font-size: 14px;
    opacity: 0.8;
}

/* =========================================
   FLOATING BUTTON
   ========================================= */
.float-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366; /* WhatsApp official green */
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition);
}

.float-btn:hover {
    transform: scale(1.1);
    background-color: #1ebe57;
    color: #fff;
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 991px) {
    .hero-container,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-actions {
        justify-content: center;
    }

    .hero-image {
        min-height: 300px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .nav ul {
        display: none; /* simple mobile menu hidden for brevity */
    }
    
    .portfolio-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }
}
