/* css/styles.css - Estilos principales */

/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-bg: #ffffff;
    --secondary-bg: #f9fafb;
    --text-primary: #171717;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --transition: all 0.3s ease;
    --hero-height: 600px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--secondary-bg);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header - Hero Carousel */
.hero-carousel {
    width: 100%;
    height: var(--hero-height);
    position: relative;
    overflow: hidden;
    background-color: #000;
    color: white;
}

.carousel-container {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.carousel-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* Logo principal (homepage) */
.hero-logo {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.main-logo {
    width: 400px;
    height: 200px;
    object-fit: contain;
    filter: drop-shadow(0 10px 8px rgb(0 0 0 / 0.04)) drop-shadow(0 4px 3px rgb(0 0 0 / 0.1));
}

/* Navegación lateral (páginas internas) */
.sidebar-nav {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    z-index: 20;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(12px);
    background-color: rgba(0, 0, 0, 0.2);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 280px;
}

.sidebar-logo {
    padding: 1.5rem 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logo a {
    display: block;
    width: 100%;
    height: 100%;
}

.logo-img {
    width: 100%;
    max-width: 256px;
    height: 80px;
    object-fit: contain;
    filter: brightness(1);
    transition: var(--transition);
}

.sidebar-logo a:hover .logo-img {
    filter: brightness(1.1);
}

.sidebar-navigation {
    flex: 1;
    padding: 2rem 1.5rem;
}

.nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.nav-link {
    position: relative;
    display: block;
    padding: 0.75rem 1rem;
    font-size: 1.125rem;
    font-weight: 300;
    letter-spacing: 0.025em;
    color: #d1d5db;
    text-decoration: none;
    transition: var(--transition);
    border-radius: 0.5rem;
}

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

.nav-link.active {
    color: white;
}

.nav-text {
    position: relative;
    z-index: 10;
}

.nav-indicator {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 9999px;
    transform: scaleY(0);
    transition: transform 0.3s ease;
    transform-origin: center;
}

.nav-link:hover .nav-indicator {
    transform: scaleY(1);
}

.nav-link.active .nav-indicator {
    background-color: white;
    transform: scaleY(1);
}

.nav-bg {
    position: absolute;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.05);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 0.5rem;
}

.nav-link:hover .nav-bg {
    opacity: 1;
}

/* Contenido principal */
main {
    flex: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.section {
    margin-bottom: 5rem;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: 0.025em;
}

.section-divider {
    width: 6rem;
    height: 1px;
    background-color: var(--text-light);
    margin: 0 auto;
}

.section-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--text-secondary);
    margin-top: 1.5rem;
}

.content-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.intro-text {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-weight: 300;
    text-align: center;
    margin-bottom: 3rem;
}

.highlight {
    font-weight: 500;
    color: var(--text-primary);
}

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

.card {
    background-color: var(--primary-bg);
    padding: 2rem;
    border-radius: 0.125rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.card-title {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.card-text {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Servicios */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background-color: var(--primary-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.125rem;
    padding: 2rem;
    height: 100%;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.service-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--text-light);
    transform: translateY(-2px);
}

.service-icon {
    width: 4rem;
    height: 4rem;
    background-color: var(--secondary-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background-color: #e5e7eb;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.service-description {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Mapa */
.map-container {
    max-width: 1200px;
    margin: 0 auto;
}

.map-wrapper {
    background-color: var(--primary-bg);
    border-radius: 0.125rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.map-iframe {
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}

.map-wrapper:hover .map-iframe {
    filter: grayscale(0%);
}

/* Footer */
.footer {
    background-color: #262626;
    color: white;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
}

.footer-content p {
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --hero-height: 400px;
    }

    .main-logo {
        width: 300px;
        height: 150px;
    }

    .sidebar-nav {
        min-width: 250px;
    }

    .section-title {
        font-size: 2rem;
    }

    .intro-text {
        font-size: 1.125rem;
    }

    .cards-grid,
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .container {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .section {
        margin-bottom: 3rem;
    }
}

@media (max-width: 480px) {
    :root {
        --hero-height: 300px;
    }

    .main-logo {
        width: 250px;
        height: 125px;
    }

    .sidebar-nav {
        min-width: 200px;
    }

    .sidebar-logo {
        padding: 1rem;
    }

    .sidebar-navigation {
        padding: 1.5rem 1rem;
    }

    .nav-link {
        font-size: 1rem;
        padding: 0.625rem 0.75rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .service-card,
    .card {
        padding: 1.5rem;
    }
}