:root {
    --primary-color: #3A6044;    /* Verde clásico */
    --secondary-color: #B8AE94;  /* Beige elegante */
    --accent-color: #2C323B;     /* Gris oscuro */
    --text-dark: #2C323B;
    --text-light: #fff;
    --background-light: #fff;
    --background-dark: #2C323B;
    --background-accent: #B8AE94;
    --gray-100: #333333;         /* Darkest light gray */
    --gray-200: #2E2E2E;         /* Very dark gray */
    --gray-300: #292929;         /* Dark gray */
    --gray-400: #242424;         /* Darker gray */
    --gray-500: #1F1F1F;         /* Very dark gray */
    --gray-600: #1A1A1A;         /* Almost black gray */
    --gray-700: #151515;         /* Darker almost black */
    --gray-800: #121212;         /* Very dark almost black */
    --gray-900: #0F0F0F;         /* Nearly black */
    --black: #000000;            /* Pure black */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'HK Modular', sans-serif;
}

body {
    color: var(--text-dark);
    background: var(--background-light);
    line-height: 1.6;
}

header {
    background: var(--primary-color) !important;
    padding: 1rem 2rem;
    width: 100%;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    height: 100px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.company-name {
    color: var(--secondary-color) !important;
    font-size: 2rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.company-name:hover {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3.5rem;
    position: relative;
}

.dropdown {
    position: relative;
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--gray-800);
    min-width: 200px;
    padding: 0.8rem 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.dropdown:hover .submenu {
    display: block;
}

.submenu li {
    list-style: none;
    padding: 0.3rem 0;
}

.submenu a {
    display: block;
    padding: 0.6rem 1.2rem;
    color: var(--text-light);
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.submenu a:hover {
    background-color: rgba(106, 153, 78, 0.1);
    color: var(--primary-color);
}

/* Add a small arrow indicator for the dropdown */
.dropdown > a::after {
    content: '▼';
    font-size: 0.7em;
    margin-left: 5px;
    vertical-align: middle;
    color: var(--secondary-color);
}

.nav-links a {
    color: var(--secondary-color) !important;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.nav-links a:hover {
    color: var(--text-light) !important;
    text-shadow: 0 0 8px rgba(106, 153, 78, 0.3);
}

.user-icon {
    color: var(--text-light);
    font-size: 2rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-icon:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

/* Main Content Styles */
.main-section {
    margin-top: 100px;
    padding: 4rem 2rem;
    background: var(--background-light) !important;
    position: relative;
    overflow: hidden;
    animation: fadeIn 1s ease-out;
}

.main-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="1" fill="%230E1E17" opacity="0.05"/></svg>') repeat;
    opacity: 0.5;
    animation: patternFloat 20s linear infinite;
}

.content-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2.5rem;
    background: var(--gray-100);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
    border: 1px solid var(--gray-300);
    animation: slideUp 0.8s ease-out;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.content-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 20px 20px 0 0;
}

.company-info, .service-details {
    text-align: left;
    animation: fadeIn 1s ease-out 0.3s both;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 1.5rem;
    background: var(--gray-200);
    border-radius: 15px;
    border: 1px solid var(--gray-300);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.company-info:hover, .service-details:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.company-info h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    text-align: center;
    width: 100%;
}

.company-info h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
    animation: expandWidth 0.8s ease-out 0.5s both;
}

.company-description {
    text-align: left;
    line-height: 1.7;
    color: var(--accent-color) !important;
    padding: 0;
}

.lead-text {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    position: relative;
    padding-left: 1.2rem;
    border-left: 4px solid var(--accent-color);
    animation: slideInLeft 0.8s ease-out 0.4s both;
}

.company-description p {
    margin-bottom: 1rem;
    animation: fadeIn 0.8s ease-out;
    animation-fill-mode: both;
    font-size: 0.95rem;
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes expandWidth {
    from {
        width: 0;
    }
    to {
        width: 80px;
    }
}

@keyframes patternFloat {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 100px 100px;
    }
}

/* Services Section Styles */
.services-section {
    padding: 4rem 2rem;
    background: var(--background-light) !important;
    position: relative;
    overflow: hidden;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="1" fill="%23ffffff" opacity="0.03"/></svg>') repeat;
    opacity: 0.5;
    animation: patternFloat 20s linear infinite;
}

.section-title {
    text-align: center;
    color: var(--primary-color) !important;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    margin: 1rem auto;
    border-radius: 2px;
}

.services-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 2.5rem;
    padding: 1rem;
    position: relative;
    z-index: 1;
}

.service-card {
    position: relative;
    background: var(--secondary-color) !important;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 450px;
    border: 1.5px solid var(--primary-color);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.service-card-header {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.service-icon {
    width: 100%;
    height: 100%;
    position: relative;
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-img {
    transform: scale(1.05);
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(29, 53, 87, 0.2), rgba(29, 53, 87, 0.7));
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover .service-overlay {
    opacity: 1;
}

.service-overlay h3 {
    color: #fff !important;
}

.service-card-header h3 {
    color: var(--primary-color) !important;
    font-size: 1.8rem;
    margin: 0;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.service-card:hover .service-card-header h3 {
    transform: translateY(0);
}

.service-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: var(--gray-700);
}

.service-brief {
    color: #B8AE94 !important;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gray-600);
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.8rem;
}

.service-list li {
    color: #3A6044 !important;
    font-size: 0.9rem;
    padding: 0.5rem 0.8rem;
    background: var(--gray-800);
    border-radius: 8px;
    position: relative;
    padding-left: 2rem;
    transition: all 0.2s ease;
    border: 1px solid var(--gray-600);
}

.service-list li:hover {
    background: var(--accent-color);
    color: var(--text-light);
    transform: translateX(5px);
}

.service-list li::before {
    content: '✓';
    color: var(--accent-color);
    position: absolute;
    left: 0.8rem;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.service-list li:hover::before {
    color: var(--text-light);
}

.service-footer {
    padding: 1rem 1.5rem;
    background: var(--gray-800);
    border-top: 1px solid var(--gray-600);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.service-price {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.1rem;
}

.service-cta {
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
}

.service-cta:hover {
    background: var(--accent-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
    border: 2px solid var(--accent-color);
}

/* Responsive Design */
@media (max-width: 1400px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 1000px;
        gap: 2rem;
    }

    .service-card {
        min-height: 420px;
    }
}

@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        gap: 2rem;
    }

    .service-card {
        min-height: auto;
    }

    .service-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-section {
        padding: 3rem 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .service-card-header {
        height: 200px;
    }

    .service-card-header h3 {
        font-size: 1.5rem;
    }

    .service-content {
        padding: 1.2rem;
    }

    .service-brief {
        font-size: 0.95rem;
    }

    .service-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .services-section {
        padding: 2rem 0.8rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .service-card-header {
        height: 180px;
    }

    .service-card-header h3 {
        font-size: 1.3rem;
    }

    .service-content {
        padding: 1rem;
    }

    .service-list li {
        font-size: 0.85rem;
        padding: 0.4rem 0.6rem;
        padding-left: 1.8rem;
    }

    .service-list li::before {
        left: 0.6rem;
    }
}

/* Touch Device Optimization */
@media (hover: none) {
    .service-card-back {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0.9);
        width: 90%;
        max-width: 450px;
        max-height: 80vh;
        opacity: 0;
        visibility: hidden;
        z-index: 1000;
        border-radius: 15px;
        border: 1px solid var(--gray-300);
    }

    .service-card.active .service-card-back {
        opacity: 1;
        visibility: visible;
        transform: translate(-50%, -50%) scale(1);
    }

    .service-card.active::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .hover-hint {
        display: none;
    }
}

/* Footer Styles */
.footer {
    background: var(--accent-color);
    color: var(--secondary-color);
    padding: 4rem 2rem 2rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-section h4 {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-color);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-logo-img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
}

.footer-logo h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    font-weight: 600;
}

.company-description {
    color: var(--accent-color) !important;
    opacity: 0.8;
    line-height: 1.6;
    font-size: 0.95rem;
}

.contact-list,
.hours-list,
.links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-list i {
    color: var(--primary-color);
    font-size: 1.2rem;
    width: 20px;
}

.contact-list a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-list a:hover {
    color: var(--secondary-color);
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hours-list li:last-child {
    border-bottom: none;
}

.days {
    color: var(--text-light);
    font-weight: 500;
}

.hours {
    color: var(--text-light);
    opacity: 0.8;
}

.links-list a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 0.3rem 0;
}

.links-list a:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.social-links {
    display: flex;
    gap: 2rem;
}

.social-links a {
    color: var(--primary-color);
    font-size: 1.4rem;
    transition: all 0.3s ease;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-700);
    border: 2px solid transparent;
}

.social-links a:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-3px);
}

/* Specific styles for each social media icon */
.social-links a[aria-label="Facebook"]:hover {
    color: #1877F2;
    background: transparent;
    border-color: #1877F2;
}

.social-links a[aria-label="Instagram"]:hover {
    color: #E4405F;
    background: transparent;
    border-color: #E4405F;
}

.social-links a[aria-label="WhatsApp"]:hover {
    color: #25D366;
    background: transparent;
    border-color: #25D366;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .footer {
        padding: 3rem 1.5rem 1.5rem;
    }

    .footer-content {
        gap: 2rem;
    }

    .footer-section {
        text-align: center;
    }

    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-logo {
        justify-content: center;
    }

    .contact-list li {
        justify-content: center;
    }

    .hours-list li {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .social-links {
        gap: 1.5rem;
    }

    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }
}

.footer-section.company-info {
    background: transparent !important;
}

p, h3, li {
    color: #fff !important;
}

.footer-section .company-description {
    color: #fff !important;
}

@media (max-width: 900px) {
    .main-section {
        margin-top: 70px;
        padding: 2.5rem 0.7rem;
    }
    .content-container {
        grid-template-columns: 1fr;
        padding: 1.2rem;
        gap: 1.2rem;
    }
    .company-info, .service-details {
        padding: 1rem;
        font-size: 1.08rem;
    }
    .company-info h1 {
        font-size: 2rem;
    }
    .lead-text {
        font-size: 1.1rem;
        padding-left: 0.7rem;
    }
    .company-description p {
        font-size: 1rem;
    }
}
@media (max-width: 500px) {
    .main-section {
        margin-top: 55px;
        padding: 1.2rem 0.3rem;
    }
    .content-container {
        padding: 0.5rem;
        gap: 0.7rem;
    }
    .company-info, .service-details {
        padding: 0.5rem;
        font-size: 1rem;
    }
    .company-info h1 {
        font-size: 1.3rem;
    }
    .lead-text {
        font-size: 1rem;
        padding-left: 0.4rem;
    }
    .company-description p {
        font-size: 0.97rem;
    }
}

/* --- HAMBURGER MENU --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 2000;
}
.menu-toggle i {
    font-size: 2.3rem;
    color: #fff;
    transition: color 0.3s, transform 0.3s;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.12));
}
.menu-toggle:hover i,
.menu-toggle:focus i {
    color: #fff;
    transform: scale(1.15) rotate(10deg);
}
.menu-toggle:active i {
    color: #fff;
    transform: scale(0.95);
}
.menu-toggle i.fa-xmark {
    color: #fff;
    transition: color 0.3s, transform 0.3s;
}
@media (max-width: 900px) {
    .menu-toggle {
        display: flex;
    }
    .nav-right {
        display: none;
        position: absolute;
        top: 80px;
        right: 0.5rem;
        background: var(--background-light);
        width: 80vw;
        box-shadow: 0 8px 24px rgba(0,0,0,0.10);
        flex-direction: column;
        align-items: flex-end;
        padding: 1.2rem 0.7rem 1.2rem 0.7rem;
        z-index: 1500;
        border-radius: 0 0 12px 12px;
    }
    .nav-right.active {
        display: flex;
    }
    .nav-links {
        flex-direction: column;
        font-size: 1rem;
        gap: 1rem;
        width: 100%;
        align-items: flex-end;
    }
    .nav-links a {
        font-size: 1.05rem;
        padding: 0.7rem 0.8rem;
    }
    .logo-container {
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
    }
    .logo {
        height: 75px;
        max-width: 75px;
    }
    .company-name {
        font-size: 1.5rem;
        word-break: break-word;
        max-width: 200px;
    }
    .submenu {
        position: static;
        display: none;
        background: var(--background-light) !important;
        box-shadow: none;
        min-width: 100%;
        padding: 0.2rem 0;
        margin-top: 0.2rem;
        border-radius: 8px;
        z-index: 2001;
    }
    .dropdown.active .submenu,
    .dropdown:focus-within .submenu {
        display: block;
    }
    .submenu li {
        padding: 0.2rem 0;
    }
    .submenu a {
        font-size: 0.98rem;
        padding: 0.6rem 1.2rem;
        color: var(--primary-color) !important;
    }
    .submenu a:hover {
        background: var(--primary-color) !important;
        color: var(--secondary-color) !important;
    }
}
@media (max-width: 500px) {
    .logo {
        height: 55px;
        max-width: 55px;
    }
    .company-name {
        font-size: 1.15rem;
        max-width: 120px;
    }
}
