/*
Theme Name: ProGarden Theme
Theme URI: https://progarden.cl
Author: ProGarden SPA
Author URI: https://progarden.cl
Description: Tema personalizado para ProGarden - Paisajismo Sustentable y Sistemas de Riego
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: progarden
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ========================================
   VARIABLES Y RESET
======================================== */
:root {
    --verde-principal: #2d7a3e;
    --verde-oscuro: #1a5028;
    --verde-claro: #4caf50;
    --verde-hover: #3e9c4d;
    --blanco: #ffffff;
    --gris-claro: #f5f5f5;
    --gris-medio: #e0e0e0;
    --gris-oscuro: #333333;
    --texto-oscuro: #2c3e50;
    --sombra: rgba(0, 0, 0, 0.1);
    --sombra-hover: rgba(45, 122, 62, 0.3);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--texto-oscuro);
    overflow-x: hidden;
}

/* ========================================
   HEADER Y NAVEGACIÓN
======================================== */
.site-header {
    background: linear-gradient(135deg, var(--verde-principal) 0%, var(--verde-oscuro) 100%);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--sombra);
    transition: all 0.3s ease;
}

.site-header.scrolled {
    padding: 0.5rem 0;
    background: rgba(29, 97, 46, 0.98);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-logo img {
    height: 60px;
    transition: transform 0.3s ease;
}

.site-logo img:hover {
    transform: scale(1.05);
}

.site-title {
    color: var(--blanco);
    font-size: 1.8rem;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-title:hover {
    color: var(--verde-claro);
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.main-navigation a {
    color: var(--blanco);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--verde-claro);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.main-navigation a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.main-navigation a:hover::after {
    width: 80%;
}

/* ========================================
   HERO SECTION
======================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--blanco);
    padding: 8rem 2rem 4rem;
    overflow: hidden;

    /* Nueva imagen de fondo */
    background: url('https://progardenspa.cl/wp-content/uploads/2025/12/home1.png') center / cover no-repeat;
}


.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;

    /* Overlay verde suave y visible */
    background: linear-gradient(
        135deg,
        rgba(45, 122, 62, 0.35),
        rgba(26, 80, 40, 0.35)
    );

    z-index: 0;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.hero-content {
    max-width: 900px;
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

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

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.hero-content .subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 300;
    opacity: 0.95;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    line-height: 1.8;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: width 0.6s, height 0.6s, top 0.6s, left 0.6s;
    transform: translate(-50%, -50%);
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--blanco);
    color: var(--verde-principal);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    background: var(--gris-claro);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.btn-secondary:hover {
    background: var(--blanco);
    color: var(--verde-principal);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.feature-item i {
    font-size: 1.5rem;
    color: var(--verde-claro);
}

/* ========================================
   SECCIONES GENERALES
======================================== */
section {
    padding: 5rem 2rem;
}

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

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.8rem;
    color: var(--verde-principal);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--verde-claro), var(--verde-principal));
    border-radius: 2px;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--gris-oscuro);
    max-width: 700px;
    margin: 1.5rem auto 0;
}

/* ========================================
   QUIÉNES SOMOS
======================================== */
#quienes-somos {
    background: var(--gris-claro);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h3 {
    font-size: 2rem;
    color: var(--verde-principal);
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--texto-oscuro);
}

.about-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--sombra);
    line-height: 0;
    aspect-ratio: 16/9;
}

.about-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    margin-bottom: -20px !important;
    transform: scale(1.1);
}

.about-image:hover img {
    transform: scale(1.15);
}

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

.value-card {
    background: var(--blanco);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px var(--sombra);
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px var(--sombra-hover);
}

.value-card i {
    font-size: 3rem;
    color: var(--verde-principal);
    margin-bottom: 1rem;
}

.value-card h4 {
    font-size: 1.3rem;
    color: var(--verde-oscuro);
    margin-bottom: 0.5rem;
}

.value-card p {
    color: var(--gris-oscuro);
}

/* ========================================
   SERVICIOS
======================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: var(--blanco);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--sombra);
    transition: all 0.3s ease;
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--verde-principal), var(--verde-claro));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px var(--sombra-hover);
}

.service-icon {
    background: linear-gradient(135deg, var(--verde-principal), var(--verde-claro));
    color: var(--blanco);
    padding: 3rem 2rem;
    text-align: center;
}

.service-icon i {
    font-size: 4rem;
}

.service-content {
    padding: 2rem;
}

.service-content h3 {
    font-size: 1.6rem;
    color: var(--verde-principal);
    margin-bottom: 1rem;
}

.service-content p {
    color: var(--gris-oscuro);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.service-content ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.service-content ul li {
    padding: 0.5rem 0;
    color: var(--texto-oscuro);
    position: relative;
    padding-left: 1.5rem;
}

.service-content ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--verde-claro);
}

/* ========================================
   PROYECTOS / PORTAFOLIO
======================================== */
#proyectos {
    background: var(--gris-claro);
}

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

.project-card {
    background: var(--blanco);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--sombra);
    transition: all 0.3s ease;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px var(--sombra-hover);
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

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

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(45, 122, 62, 0.9), rgba(26, 80, 40, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-overlay i {
    font-size: 3rem;
    color: var(--blanco);
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    color: var(--verde-principal);
    margin-bottom: 0.5rem;
}

.project-info p {
    color: var(--gris-oscuro);
    line-height: 1.6;
}

/* ========================================
   COBERTURA
======================================== */
.coverage-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.coverage-map {
    background: var(--blanco);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--sombra);
}

.coverage-map img {
    width: 100%;
    border-radius: 10px;
}

.coverage-info h3 {
    font-size: 1.8rem;
    color: var(--verde-principal);
    margin-bottom: 1.5rem;
}

.coverage-info p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.regions-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.regions-list li {
    padding: 0.8rem;
    background: var(--blanco);
    border-radius: 8px;
    box-shadow: 0 2px 10px var(--sombra);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
}

.regions-list li:hover {
    transform: translateX(10px);
    background: var(--verde-claro);
    color: var(--blanco);
}

.regions-list li i {
    color: var(--verde-principal);
    transition: color 0.3s ease;
}

.regions-list li:hover i {
    color: var(--blanco);
}

.offices {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.office-card {
    background: var(--blanco);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--sombra);
    transition: all 0.3s ease;
}

.office-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--sombra-hover);
}

.office-card h4 {
    color: var(--verde-principal);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.office-card p {
    color: var(--gris-oscuro);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.office-card i {
    color: var(--verde-claro);
}

/* ========================================
   CONTACTO
======================================== */
#contacto {
    background: var(--gris-claro);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-form {
    background: var(--blanco);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--sombra);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--verde-oscuro);
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--gris-medio);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--verde-principal);
    box-shadow: 0 0 0 3px rgba(45, 122, 62, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-info {
    background: linear-gradient(135deg, var(--verde-principal), var(--verde-oscuro));
    color: var(--blanco);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--sombra);
}

.contact-info h3 {
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.info-item {
    display: flex;
    align-items: start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.info-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(10px);
}

.info-item i {
    font-size: 1.5rem;
    color: var(--verde-claro);
    margin-top: 0.2rem;
}

.info-item div h4 {
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
}

.info-item div p {
    opacity: 0.9;
    line-height: 1.6;
}

/* ========================================
   FOOTER
======================================== */
.site-footer {
    background: linear-gradient(135deg, var(--verde-oscuro), #0f2817);
    color: var(--blanco);
    padding: 3rem 2rem 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--verde-claro);
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    text-decoration: none;
}

.footer-section a:hover {
    color: var(--blanco);
    text-decoration: underline;
}

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

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--blanco);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--verde-claro);
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* ========================================
   WHATSAPP FLOTANTE
======================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--blanco);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
    animation: pulse-whatsapp 2s infinite;
}

@keyframes pulse-whatsapp {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(37, 211, 102, 0.7);
    }
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background: #20ba5a;
}

/* ========================================
   ANIMACIONES
======================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content .subtitle {
        font-size: 1.2rem;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 0.5rem;
    }

    .about-content,
    .coverage-content,
    .contact-container {
        grid-template-columns: 1fr;
    }

    .services-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .hero-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 20px;
        right: 20px;
    }
}