/* Base Styles */
:root {
    --primary-color: #3a5a40;
    --secondary-color: #588157;
    --accent-color: #a3b18a;
    --light-color: #dad7cd;
    --dark-color: #344e41;
    --white: #ffffff;
    --black: #333333;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--black);
    background-color: var(--white);
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--dark-color);
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 15px auto 0;
}

p {
    margin-bottom: 15px;
}

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

a:hover {
    color: var(--secondary-color);
}

section {
    padding: 80px 0;
}

/* Header */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
}

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

.logo img {
    height: 60px;
    width: auto;
}

nav ul.menu {
    display: flex;
    list-style: none;
}

nav ul.menu li {
    margin-left: 30px;
}

nav ul.menu li a {
    color: var(--dark-color);
    font-weight: 600;
    padding: 10px 0;
    position: relative;
    display: block;
}

nav ul.menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

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

/* Submenu Styles */
.has-submenu {
    position: relative;
}

.has-submenu>a {
    display: flex;
    align-items: center;
    gap: 5px;
}

.has-submenu .fa-chevron-down {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.has-submenu.open .fa-chevron-down {
    transform: rotate(180deg);
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.submenu li {
    margin: 0 !important;
    text-align: center !important;
}

.has-submenu.open .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu li {
    margin: 0;
    display: block;
}

.submenu li a {
    padding: 10px 20px;
    display: block;
    color: var(--dark-color);
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.submenu li a:hover,
.submenu li a.active {
    background-color: var(--light-color);
    color: var(--primary-color);
}

.submenu li a::after {
    display: none;
}

/* Active submenu parent */
.has-submenu.active>a {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--dark-color);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.hero-content {
    background-color: rgba(255, 255, 255, 0.85);
    padding: 40px;
    border-radius: 8px;
    max-width: 800px;
    margin: 0 20px;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--white);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--white);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.cta-button:hover {
    background-color: var(--secondary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Sobre Nosotros */
.sobre-nosotros {
    background-color: var(--light-color);
}

.sobre-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.sobre-img {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
}

.sobre-img img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.sobre-text {
    flex: 1;
    min-width: 300px;
}

.sobre-text h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.sobre-text h4 {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.sobre-values {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.value {
    background-color: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.value:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.value i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Servicios */
.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.servicio {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: var(--transition);
}

.servicio:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.servicio i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.servicio h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

/* Mitos */
.mitos {
    background-color: var(--light-color);
}

.mitos-container {
    max-width: 800px;
    margin: 0 auto;
}

.mito {
    background-color: var(--white);
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.mito-header {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--primary-color);
    color: var(--white);
}

.mito-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--white);
}

.toggle-icon {
    font-size: 1.5rem;
    font-weight: bold;
}

.mito-content {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.mito.active .mito-content {
    padding: 20px;
    max-height: 200px;
}

.mito.active .toggle-icon {
    transform: rotate(45deg);
}

/* Galería */
.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .galeria-grid {
        grid-template-columns: 1fr !important; /* Una sola columna en móvil */
        gap: 15px;
    }
}

.ver-mas-container {
    text-align: center;
    margin-top: 20px;
}

.ver-mas-btn {
    font-size: 1.1rem;
}

.galeria-item {
    position: relative;
    height: 250px;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

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

.galeria-item:hover img {
    transform: scale(1.05);
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(58, 90, 64, 0.8);
    color: var(--white);
    padding: 15px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.galeria-item:hover .overlay {
    transform: translateY(0);
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    display: block;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.close-lightbox {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 30px;
    color: var(--white);
    cursor: pointer;
}

/* Contacto */
.contacto {
    background-color: var(--light-color);
    position: relative;
    overflow: hidden;
}

.contacto::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--accent-color) 2px, transparent 2px);
    background-size: 30px 30px;
    opacity: 0.15;
    z-index: 0;
}

.contacto .container {
    position: relative;
    z-index: 1;
}

.contacto-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 20px;
    align-items: stretch;
}

.contacto-card {
    flex: 1;
    min-width: 300px;
    background-color: var(--white);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.contacto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.contacto-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
    text-align: center;
}

.contacto-header i::before {
    line-height: 1.8;
}

.contacto-icon {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-right: 12px;
    background-color: var(--light-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contacto-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.contacto-details {
    margin-bottom: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
}

.contacto-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px dashed var(--accent-color);
}

.contacto-item:last-child {
    border-bottom: none;
}

.contacto-item i {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-right: 15px;
    width: 30px;
    text-align: center;
}

.contacto-item span {
    font-size: 1rem;
    color: var(--black);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    color: var(--white);
}

.social-btn i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.whatsapp-btn {
    background-color: #25D366;
}

.whatsapp-btn:hover {
    background-color: #128C7E;
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(18, 140, 126, 0.3);
}

.instagram-btn {
    background-color: var(--primary-color);
}

.instagram-btn:hover {
    background-color: var(--secondary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(58, 90, 64, 0.3);
}

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

.form-group label {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--dark-color);
}

.form-group label i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(88, 129, 87, 0.1);
    outline: none;
    background-color: var(--white);
}

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

.submit-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 15px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.submit-button i {
    margin-right: 10px;
}

.submit-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(58, 90, 64, 0.15);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 60px 0 20px;
}

/* Footer Submenu */
.footer-submenu {
    margin-left: 15px;
    margin-top: 5px;
    margin-bottom: 10px;
}

.footer-submenu li {
    margin-bottom: 5px;
}

.footer-submenu li a {
    font-size: 0.9em;
    opacity: 0.9;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo,
.footer-links,
.footer-contact {
    flex: 1;
    min-width: 200px;
}

.footer-logo img {
    height: 80px;
    width: auto;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links ul {
    list-style: none;
}

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

.footer-links ul li a {
    color: var(--light-color);
}

.footer-links ul li a:hover {
    color: var(--white);
}

.footer-contact p {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.footer-contact i {
    margin-right: 10px;
}

.footer-contact a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.footer-contact a:hover {
    color: var(--light-color);
}

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

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.whatsapp-float a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: var(--white);
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.whatsapp-float a i {
    font-size: 2rem;
}

.whatsapp-float a:hover {
    transform: scale(1.1);
    background-color: #128C7E;
}

/* Responsive Styles */
@media (max-width: 992px) {
    h2 {
        font-size: 2rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    section {
        padding: 60px 0;
    }

    .menu-toggle {
        display: block;
    }

    nav ul.menu {
        position: absolute;
        top: 90px;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        z-index: 999;
    }

    nav ul.menu.active {
        transform: translateY(0);
    }

    nav ul.menu li {
        margin: 10px 0;
    }

    .hero {
        height: 80vh;
    }

    .hero-content {
        padding: 30px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .sobre-content,
    .contacto-content {
        flex-direction: column;
    }

    .galeria-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 576px) {
    h2 {
        font-size: 1.8rem;
    }

    .hero-content {
        padding: 20px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .cta-button {
        padding: 12px 25px;
    }

    .galeria-grid {
        grid-template-columns: 1fr;
    }

    .whatsapp-float a {
        width: 50px;
        height: 50px;
    }

    .whatsapp-float a i {
        font-size: 1.5rem;
    }
}

/* Botón para subir hacia arriba */
.scroll-top-btn {
    position: fixed;
    bottom: 100px;
    right: 36px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.scroll-top-btn:hover {
    background-color: var(--dark-color);
    transform: translateY(-5px);
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
}