/* ============================================
   PALETA DE COLORES VERDES ELEGANTES
   ============================================ */
:root {
    /* Verdes principales */
    --green-dark: #1a5f3f;           /* Verde bosque oscuro - para acentos fuertes */
    --green-primary: #2d8659;        /* Verde esmeralda - color principal */
    --green-medium: #4a9d6e;         /* Verde medio - para hover y estados */
    --green-light: #6db88a;          /* Verde claro - para fondos suaves */
    --green-mint: #a8d5ba;           /* Verde menta - para acentos ligeros */
    --green-pale: #d4e8dd;           /* Verde muy pálido - para fondos */
    
    /* Colores complementarios */
    --cream: #f5f2e8;                /* Crema elegante - para fondos */
    --white: #ffffff;                /* Blanco puro */
    --text-dark: #2c3e2d;            /* Texto oscuro */
    --text-medium: #4a5c4b;          /* Texto medio */
    --text-light: #6b7a6c;           /* Texto claro */
    
    /* Sombras elegantes */
    --shadow-light: rgba(26, 95, 63, 0.1);
    --shadow-medium: rgba(26, 95, 63, 0.2);
    --shadow-dark: rgba(26, 95, 63, 0.3);
}

/* ============================================
   RESET Y BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--cream);
    overflow-x: hidden;
}

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

/* ============================================
   TOPBAR
   ============================================ */
.topbar {
    background-color: var(--white);
    font-size: 0.9rem;
    color: var(--text-dark);
    padding: 0.5rem 0;
}
.topbar-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}
.topbar-main img{
    height: 40px;
}
.topbar-contacts {
    display: flex;
    justify-content: right;
    align-items: center;
    gap: 15px;
}
.topbar a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}
.topbar-contacts a:hover {
    color: var(--green-light);
}
.topbar-contacts a span {
    display: inline;
}

/* ============================================
   HEADER Y NAVEGACIÓN
   ============================================ */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1.2rem 0;
}

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

.logo h1 {
    font-size: 1.8rem;
    color: var(--green-primary);
    font-weight: 600;
    letter-spacing: 1px;
}
.img-fluid {
    width: 100%;
    height: auto;
    display: block; /* elimina espacio blanco debajo de la imagen */
}
.nav-logo {
    width: 80px;
}
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}
.nav-link{
    text-decoration: none;
    color: var(--text-dark);
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    font-weight: 550;
}
.nav-link-active {
    text-decoration: none;
    color: var(--green-primary);
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    font-weight: 550;
}
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/*
.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--green-primary);
    transition: width 0.3s ease;
}
*/

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

.nav-menu a:hover::after {
    width: 100%;
}

/* ============================================
   HERO SECTION
   ============================================ */
   .hero {
    position: relative;
    height: 75vh; /* o 80vh */
    overflow: hidden;
  }
  
  .hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
  }
  
  .hero-slide.active {
    opacity: 1;
  }
  
  .hero-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    top: 50%;
    transform: translateY(-50%);
  }
  
.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    opacity: 0.95;
}

/* ============================================
   BOTONES
   ============================================ */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    letter-spacing: 0.5px;
}

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

.btn-primary:hover {
    background-color: var(--green-mint);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

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

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

.section-title {
    font-size: 2.8rem;
    color: var(--green-dark);
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--green-primary), var(--green-medium));
    margin: 1.5rem auto;
    border-radius: 2px;
}

.section-description {
    font-size: 1.2rem;
    color: var(--text-medium);
    max-width: 600px;
    margin: 1rem auto 0;
    line-height: 1.8;
}

/* ============================================
   SECCIÓN GALERIA
   ============================================ */
.galeria {
    background-color: var(--white);
}
/* ============================================
   SECCIÓN NOSOTROS
   ============================================ */
.about {
    background-color: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.9;
}

.about-text .lead {
    font-size: 1.3rem;
    color: var(--green-primary);
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-medium);
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--green-pale), var(--green-mint));
    border-radius: 15px;
    box-shadow: 0 4px 15px var(--shadow-light);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--green-dark);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-medium);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   SECCIÓN SERVICIOS
   ============================================ */
.services {
    background: linear-gradient(180deg, var(--cream) 0%, var(--white) 100%);
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Esto centra los 2 divs de abajo */
    gap: 2.5rem;
    margin-top: 3rem;
}

.services-grid > div {
    /* El 320px es tu min y el 1fr es el flex-grow */
    flex: 1 1 320px;
}

.service-card {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 5px 20px var(--shadow-light);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px var(--shadow-medium);
    border-color: var(--green-mint);
}

.service-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--green-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-card p {
    color: var(--text-medium);
    line-height: 1.8;
    font-size: 1rem;
}

/* ============================================
   SECCIÓN GALERÍA
   ============================================ */
.gallery {
    background: linear-gradient(0deg, var(--green-pale) 0%, var(--white) 100%);
}

.gallery-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: 3rem;
}

.gallery-item {
    width: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-light);
    transition: all 0.3s ease;
    background-color: var(--white);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow-medium);
}

.gallery-placeholder {
    width: 100%;
    height: 500px;
    background: linear-gradient(135deg, var(--green-pale), var(--green-mint));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green-medium);
    font-size: 1.5rem;
    font-weight: 500;
}

.gallery-description {
    padding: 1.5rem 2rem;
    background-color: var(--white);
    border-top: 2px solid var(--green-pale);
}

.gallery-description p {
    color: var(--text-medium);
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 0;
    text-align: center;
    font-style: italic;
}

/* ============================================
   SECCIÓN CONTACTO
   ============================================ */
.contact {
    background: linear-gradient(135deg, var(--green-pale) 0%, var(--white) 100%);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}
.border {
    border-radius: 15px;
}
.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: start;
}

.contact-icon {
    font-size: 2rem;
    background-color: var(--green-light);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item h4 {
    color: var(--green-dark);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-item p {
    color: var(--text-medium);
    line-height: 1.8;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid var(--green-mint);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background-color: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--green-primary);
    box-shadow: 0 0 0 3px var(--shadow-light);
}

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

.contact-form .btn {
    align-self: flex-start;
    margin-top: 0.5rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    font-size: 0.9rem;
    background-color: var(--white);
    color: var(--text-dark);
    padding: 3rem 0 1.5rem;
}
.logofooter {
    max-width: 200px;
    align-items: center;
    margin: auto;
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.footer-section p {
    line-height: 1.8;
    opacity: 0.9;
}

.footer-section ul {
    list-style: none;
    text-align: left;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
    color: var(--text-light);
}

.footer-section a {
    color: var(--text-dark);
    text-decoration: none;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    opacity: 1;
    color: var(--green-mint);
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
}

.social-links a {
    font-size: 1.8rem;
    display: inline-block;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.2);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    opacity: 0.8;
}
.scroll-up {
    font-size: 30px;
    width: 55px;
    height: 55px;
    line-height: 55px;
    text-align: center;
    background-color: #25d366;
    color: var(--brand-silver);
    border-radius: 10px;
    border: 1px solid var(--white);
    border-radius: 50%;
    /*200px 200px 200px 200px */
  
    /* Posicionamiento fijo */
    position: fixed;
    right: 30px;
    bottom: 30px;
  
    transition: all 0.25s ease-in-out;
    box-shadow: 0 15px 20px 0 rgba(32, 54, 70, 0.4);
    z-index: 10;
  }
  .scroll-up:hover {
    transform: scale(1.3) translateY(0px);
  }

  .masonry {
    column-count: 3;
    column-gap: 16px;
    padding: 16px;
  }
  
  .item {
    break-inside: avoid;
    margin-bottom: 16px;
  }
  
  .item img {
    width: 100%;
    display: block;
    border-radius: 12px;
    transition: transform .3s ease;
  }
  
  .item img:hover {
    transform: scale(0.95);
  }
  .submit-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--green-dark),var(--green-light));
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--brand-primary);
    margin-top: 2rem;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--brand-primary);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .nav-menu {
        position: absolute;
        left: -100%;
        top: 100%;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.8);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }
    .topbar-contacts a span {
        display: none;
    }
    .masonry { column-count: 2; }

    .hamburger {
        display: flex;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-stats {
        flex-direction: row;
        justify-content: space-around;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .gallery-placeholder {
        height: 400px;
    }
    
    .gallery-description {
        padding: 1.2rem 1.5rem;
    }
    
    .gallery-description p {
        font-size: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-section ul {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .navbar .container {
        flex-direction: column;
        gap: 1rem;
    }
    .masonry { column-count: 1; }
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .about-stats {
        flex-direction: column;
    }
    
    .gallery-placeholder {
        height: 300px;
        font-size: 1.2rem;
    }
    
    .gallery-description {
        padding: 1rem 1.2rem;
    }
    
    .gallery-description p {
        font-size: 0.95rem;
    }
    
    .footer-content {
        text-align: center;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-section ul {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

