/* Reset y variables CSS */
:root {
    --primary-color: #722f37;
    --secondary-color: #8b3a42;
    --accent-color: #a94442;
    --logo-green: #4a7c59;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #fff;
    --bg-light: #f8f9fa;
    --border-color: #e9ecef;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-light: 0 1px 3px rgba(0,0,0,0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
}

.navbar {
    padding: 1rem 0;
}

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

.navbar-brand .logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.8rem;
}

.logo-img {
    height: 120px;
    width: auto;
    margin-right: 15px;
    max-width: 300px;
}

.navbar-menu {
    display: flex;
}

.navbar-nav {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    transition: var(--transition);
    padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--logo-green);
    transition: var(--transition);
}

/* Dropdown menu */
.dropdown {
    position: relative;
}

.dropdown-toggle::after {
    content: ' ▼';
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    list-style: none;
    padding: 0.5rem 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
}

.dropdown-link:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.phone-link {
    background: var(--accent-color);
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.phone-link:hover {
    background: #5d262b;
    transform: translateY(-1px);
}

.phone-link::after {
    display: none;
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.navbar-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: var(--transition);
    border-radius: 2px;
}

.navbar-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.navbar-toggle.active span:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Main Content */
.main {
    padding-top: 160px;
    min-height: calc(100vh - 160px);
}

/* Floating Phone Button - Solo móvil */
.floating-phone {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 999;
    display: none;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.floating-phone-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent-color);
    color: white !important;
    padding: 1rem 1.5rem;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(169, 68, 66, 0.4);
    transition: var(--transition);
    font-size: 1rem;
    width: 100%;
    justify-content: center;
    text-align: center;
}

.floating-phone-btn:hover {
    background: #5d262b;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(169, 68, 66, 0.4);
}

.phone-icon {
    font-size: 1.2rem;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-logo-img {
    height: 60px;
    width: auto;
    margin-right: 12px;
    max-width: 150px;
}

.footer-description {
    color: #bdc3c7;
    line-height: 1.6;
}

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

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-icon {
    font-size: 1.2rem;
}

.contact-link {
    color: #bdc3c7;
    text-decoration: none;
    transition: var(--transition);
}

.contact-link:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 1rem;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-phone {
    margin: 0;
}

.footer-phone a {
    color: #d9534f;
    text-decoration: none;
    font-weight: 600;
}

.footer-phone a:hover {
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .logo-img {
        height: 120px;
        margin-right: 10px;
        max-width: 280px;
    }
    
    .navbar-brand .logo {
        font-size: 1.4rem;
    }
    
    .navbar {
        padding: 0.8rem 0;
    }
    
    .navbar-menu {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        border-top: 1px solid var(--border-color);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        box-shadow: var(--shadow);
    }
    
    .navbar-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .navbar-nav {
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
    }
    
    .nav-item {
        width: 100%;
        text-align: center;
    }
    
    .nav-link {
        display: block;
        padding: 1rem;
        width: 100%;
        border-radius: var(--border-radius);
    }
    
    .nav-link:hover {
        background: var(--bg-light);
    }
    
    /* Dropdown en móvil */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: var(--bg-light);
        margin-top: 0.5rem;
        border-radius: var(--border-radius);
    }
    
    .dropdown-toggle::after {
        display: none;
    }
    
    .navbar-toggle {
        display: flex;
    }
    
    .nav-phone {
        margin-top: 1rem;
    }
    
    .phone-link {
        justify-content: center;
        width: 100%;
    }
    
    .floating-phone {
        display: block !important;
    }
    
    .floating-phone-btn {
        padding: 1.2rem 1rem;
        border-radius: 12px;
        font-size: 1.2rem;
        white-space: nowrap;
        text-align: center;
        box-shadow: 0 4px 20px rgba(169, 68, 66, 0.6);
        width: 100%;
    }
    
    .phone-text {
        display: inline;
        line-height: 1.1;
        color: white !important;
        font-weight: 600;
        text-align: center;
        font-size: 1.2rem;
    }
    
    .footer-logo-img {
        height: 50px;
        margin-right: 8px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .main {
        padding-top: 140px;
    }
}

@media (max-width: 480px) {
    .floating-phone {
        bottom: 15px;
        right: 15px;
    }
    
    .floating-phone-btn {
        min-width: 140px;
        padding: 0.7rem 1rem;
        font-size: 0.8rem;
    }
    
    .phone-icon {
        font-size: 1.3rem;
    }
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Lazy loading */
img.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

img.lazy.loaded {
    opacity: 1;
}

/* Utilidades */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

/* Prevenir scroll cuando men煤 est谩 abierto */
/* Zonas de servicio en footer */
.service-areas li {
    color: #bdc3c7;
    cursor: default;
}

.service-areas li:hover {
    color: white;
}

body.menu-open {
    overflow: hidden;
}