/* =========================================
   VARIABLES Y RESET
   ========================================= */
:root {
    --primary-color: #1a1a1a;
    --accent-color: #c48b57;
    --text-dark: #222;
    --text-light: #fff;
    --bg-light: #f9f9f9;
    --bg-white: #fff;
    --border-color: #e0e0e0;
    --shadow-sm: 0 4px 12px rgba(0,0,0,0.05);
    --shadow-md: 0 8px 20px rgba(0,0,0,0.08);
    --transition: all 0.25s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.5;
    scroll-behavior: smooth;
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

.oculto {
    display: none !important;
}

/* =========================================
   BOTÓN VOLVER ARRIBA
   ========================================= */
.volver-arriba {
    position: fixed;
    bottom: 30px;
    right: 25px;
    background-color: var(--accent-color);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    border: none;
    box-shadow: var(--shadow-md);
    z-index: 99;
}

.volver-arriba.visible {
    opacity: 1;
    visibility: visible;
}

.volver-arriba:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

/* =========================================
   NAVEGACIÓN (Sticky + Hamburguesa)
   ========================================= */
.navbar {
    background-color: var(--primary-color);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.nav-logo {
    height: 50px;
    width: auto;
    border-radius: 6px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    transition: var(--transition);
}

.menu-toggle:hover {
    color: var(--accent-color);
}

.nav-menu {
    display: flex;
}

.nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.2s;
    padding: 8px 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
}

/* Responsive menú hamburguesa */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    .nav-menu {
        display: none;
        width: 100%;
        background-color: var(--primary-color);
        margin-top: 15px;
        border-top: 1px solid #333;
    }
    .nav-menu.active {
        display: block;
    }
    .nav-links {
        flex-direction: column;
        gap: 0;
        padding: 15px 0;
    }
    .nav-links li {
        text-align: center;
    }
    .nav-links a {
        display: block;
        padding: 12px;
    }
}

/* =========================================
   SECCIONES GENERALES
   ========================================= */
.seccion-pantalla {
    padding: 60px 0;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-title {
    font-size: 2rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 12px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #555;
    text-align: center;
    margin-bottom: 40px;
}

/* =========================================
   INICIO (Hero y cards)
   ========================================= */
.hero-content {
    text-align: center;
    margin-bottom: 60px;
}

.hero-logo {
    max-width: 220px;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 20px;
}

.hero-description {
    max-width: 800px;
    margin: 0 auto 30px;
    font-size: 1.2rem;
    color: #444;
}

.hero-image {
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    width: 100%;
}

.services-block {
    padding: 50px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.highlight-text {
    text-align: center;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 30px;
    font-size: 1.2rem;
}

.cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.card {
    background: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    width: 100%;
    max-width: 380px;
    transition: var(--transition);
    border: 1px solid #eee;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.card-img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.card-body {
    padding: 24px;
}

.card-body h3 {
    margin-bottom: 8px;
    font-size: 1.3rem;
}

/* Sección video corregida */
.video-section {
    background: var(--primary-color);
    border-radius: 24px;
    margin: 40px 0;
    padding: 50px 30px;
}

.video-container {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.video-text {
    flex: 1;
    color: #ddd;
}

.video-text h2 {
    color: var(--accent-color);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.video-text p {
    font-size: 1rem;
    line-height: 1.5;
}

.video-wrapper {
    flex: 1;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.sketchup-video {
    width: 100%;
    display: block;
}

/* =========================================
   CATÁLOGO + FILTROS
   ========================================= */
.catalogo-aviso {
    background: #fef7e0;
    border-left: 5px solid var(--accent-color);
    padding: 16px 24px;
    margin-bottom: 30px;
    border-radius: 12px;
}

.filtro-busqueda {
    max-width: 400px;
    margin: 0 auto 40px;
}

.filtro-busqueda input {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid var(--border-color);
    border-radius: 40px;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}

.filtro-busqueda input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(196,139,87,0.2);
}

.galeria {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 20px;
}

.producto-tarjeta {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    border: 1px solid #f0f0f0;
}

.producto-tarjeta:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.producto-imagen img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: transform 0.4s;
}

.producto-tarjeta:hover .producto-imagen img {
    transform: scale(1.02);
}

.producto-info {
    padding: 20px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.producto-info h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.medidas {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 8px;
}

.detalles-tecnicos {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.4;
}

.precio {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin: 12px 0;
}

.btn-encargar {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px;
    font-weight: 600;
    border-radius: 40px;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    font-size: 0.9rem;
}

.btn-encargar:hover {
    background: var(--accent-color);
    transform: scale(0.98);
}

/* =========================================
   DISEÑO A MEDIDA (mejorado)
   ========================================= */
.medida-info {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 24px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.medida-info ul {
    display: inline-block;
    text-align: left;
    margin: 20px 0;
    list-style: none;
}

.medida-info li {
    margin: 12px 0;
    font-size: 1rem;
}

.btn-medida {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 12px 28px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 20px;
    transition: var(--transition);
}

.btn-medida:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* =========================================
   CONTACTO (sin cambios de datos)
   ========================================= */
.contact-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-logo {
    max-width: 180px;
    margin-bottom: 30px;
}

.profile-card {
    display: flex;
    align-items: center;
    gap: 30px;
    background: var(--bg-light);
    padding: 30px;
    border-radius: 24px;
    margin-bottom: 40px;
    text-align: left;
    border-left: 4px solid var(--accent-color);
}

.profile-pic {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-color);
}

.contact-links {
    background: var(--primary-color);
    padding: 35px;
    border-radius: 24px;
    color: white;
}

.contact-links h3 {
    color: var(--accent-color);
    margin-bottom: 25px;
}

.contact-links ul {
    list-style: none;
    max-width: 400px;
    margin: 0 auto;
}

.contact-links li {
    margin: 15px 0;
    font-size: 1rem;
    border-bottom: 1px solid #333;
    padding-bottom: 8px;
}

.contact-links a {
    color: white;
    text-decoration: none;
    transition: color 0.2s;
}

.contact-links a:hover {
    color: var(--accent-color);
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    background-color: #111;
    color: #aaa;
    text-align: center;
    padding: 30px 0;
    margin-top: 40px;
    font-size: 0.85rem;
}

.footer p {
    margin: 6px 0;
}

/* =========================================
   RESPONSIVE EXTRA
   ========================================= */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .profile-card {
        flex-direction: column;
        text-align: center;
    }
    .video-container {
        flex-direction: column;
    }
    .medida-info {
        padding: 25px;
    }
    .container {
        padding: 0 18px;
    }
}