/* Carpintería Larramendi - Estilos (matching larramendi.info) */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&family=Titillium+Web:wght@200;300;400;600;700&display=swap');

:root {
    --color-dark: #32425a;
    --color-accent: #d9a13f;
    --color-light: #f5f5f5;
    --color-gray: #6c757d;
    --color-white: #fff;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.75;
    margin: 0;
    padding: 0;
    padding-top: 80px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Titillium Web', sans-serif;
}

a {
    color: var(--color-dark);
    text-decoration: none;
    transition: all 0.2s ease-out;
}

a:hover {
    color: var(--color-accent);
    text-decoration: none;
}

/* ==========================================================================
   Navigation Bar - Matching larramendi.info
   ========================================================================== */
.navbar {
    padding: 15px 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
    border: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.4s ease-out;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.85);
    padding: 8px 0;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 15px;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-brand img {
    height: 50px;
    transition: all 0.3s ease;
}

.navbar.scrolled .navbar-brand img {
    height: 40px;
}

/* Mobile toggle */
.navbar-toggler {
    display: none;
    background: none;
    border: 1px solid #fff;
    padding: 8px 12px;
    cursor: pointer;
}

.navbar-toggler .icon-bar {
    display: block;
    width: 22px;
    height: 2px;
    background-color: #fff;
    margin: 4px 0;
}

/* Navigation links */
.navbar-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

.navbar-nav li {
    display: inline-block;
}

.navbar-nav li a {
    color: #fff;
    font-size: 0.875em;
    font-family: 'Open Sans', sans-serif;
    padding: 10px 15px;
    display: block;
    position: relative;
    transition: color 0.2s ease-out;
    white-space: nowrap;
}

.navbar-nav li a:hover,
.navbar-nav li a:focus,
.navbar-nav li.active a {
    color: var(--color-accent);
}

.navbar-nav li a:hover::after,
.navbar-nav li.active a::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background-color: var(--color-accent);
    border-radius: 50%;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    background: linear-gradient(rgba(50, 66, 90, 0.7), rgba(50, 66, 90, 0.7)), 
                url('../assets/hero-bg.jpg') center center / cover no-repeat;
    background-attachment: fixed;
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
}

.hero-section h1 {
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 20px;
    text-transform: uppercase;
    padding: 5px 20px;
    border: 3px solid #fff;
    display: inline-block;
    font-size: 2.25em;
    position: relative;
}

.hero-section h1::after {
    content: '';
    position: absolute;
    bottom: -23px;
    left: 50%;
    margin-left: -10px;
    border-width: 10px;
    border-style: solid;
    border-color: #fff transparent transparent transparent;
}

.hero-section p {
    font-family: 'Titillium Web', sans-serif;
    font-size: 1.35em;
    font-weight: 300;
    opacity: 0.9;
    max-width: 600px;
    margin: 40px auto 0;
}

/* ==========================================================================
   Filter Section
   ========================================================================== */
.filter-section {
    background: var(--color-light);
    border-bottom: 1px solid #dee2e6;
}

.filter-section .btn {
    border-radius: 0;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.85em;
    text-transform: uppercase;
    padding: 8px 16px;
    border: 1px solid var(--color-dark);
    transition: all 0.3s ease;
}

.filter-section .btn-dark {
    background-color: var(--color-dark);
    color: #fff;
}

.filter-section .btn-outline-dark {
    background-color: transparent;
    color: var(--color-dark);
}

.filter-section .btn-outline-dark:hover {
    background-color: var(--color-dark);
    color: #fff;
}

/* ==========================================================================
   Proyecto Cards
   ========================================================================== */
.proyectos-section {
    background: #fff;
}

/* Card link wrapper */
.card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.card-link:hover {
    text-decoration: none;
    color: inherit;
}

.card-link:hover .proyecto-card {
    transform: translateY(-5px);
    box-shadow: inset 0 0 0 3px var(--color-dark), 0 10px 30px rgba(0,0,0,0.15);
}

.proyecto-card {
    border: none;
    border-radius: 0;
    overflow: hidden;
    box-shadow: inset 0 0 0 3px var(--color-dark);
    background-color: #f6ecda;
    transition: all 0.3s ease;
}

/* Hover effect moved to .card-link:hover .proyecto-card */

.proyecto-card .card-img-top {
    height: 220px;
    object-fit: cover;
    transition: opacity 0.5s ease;
}

.proyecto-card .placeholder-img {
    height: 220px;
    background: linear-gradient(135deg, var(--color-dark) 0%, #4a5d7a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.proyecto-card .card-body {
    padding: 20px;
}

.proyecto-card .badge {
    background-color: var(--color-dark) !important;
    font-family: 'Titillium Web', sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    font-size: 0.75em;
    padding: 5px 10px;
    border-radius: 0;
}

.proyecto-card .card-title {
    font-family: 'Titillium Web', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-dark);
    font-size: 1.1em;
    margin-top: 10px;
}

.proyecto-card .card-text {
    font-size: 0.875em;
    color: #666;
}

.proyecto-card .card-footer {
    border-top: none;
    background: transparent;
    padding: 0 20px 20px;
}

.proyecto-card .btn-dark {
    background-color: var(--color-dark);
    border: none;
    border-radius: 0;
    font-family: 'Titillium Web', sans-serif;
    text-transform: uppercase;
    font-size: 0.875em;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.proyecto-card .btn-dark:hover {
    background-color: var(--color-accent);
}

/* ==========================================================================
   Proyecto Detail Page
   ========================================================================== */
.proyecto-header {
    background: var(--color-light);
    padding: 40px 0;
}

.proyecto-header .display-4 {
    font-family: 'Titillium Web', sans-serif;
    font-weight: 700;
    color: var(--color-dark);
    text-transform: uppercase;
    font-size: 2.5rem;
}

.proyecto-body {
    font-size: 1.1rem;
    line-height: 1.8;
}

.proyecto-body h2 {
    font-family: 'Titillium Web', sans-serif;
    font-weight: 700;
    color: var(--color-dark);
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-accent);
    text-transform: uppercase;
}

.proyecto-body h3 {
    font-family: 'Titillium Web', sans-serif;
    font-weight: 600;
    color: var(--color-dark);
    margin-top: 1.5rem;
}

.proyecto-body ul {
    padding-left: 1.5rem;
}

.proyecto-body li {
    margin-bottom: 0.5rem;
}

.proyecto-body table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
}

.proyecto-body table th,
.proyecto-body table td {
    padding: 0.75rem;
    border: 1px solid #dee2e6;
}

.proyecto-body table th {
    background: var(--color-dark);
    color: white;
    font-family: 'Titillium Web', sans-serif;
    text-transform: uppercase;
}

.proyecto-body table tr:nth-child(even) {
    background: var(--color-light);
}

.proyecto-body img {
    max-width: 100%;
    height: auto;
    border-radius: 0;
    margin: 1rem 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Sidebar cards */
.card {
    border-radius: 0;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.card-header {
    border-radius: 0 !important;
    background: var(--color-dark);
    color: white;
    font-family: 'Titillium Web', sans-serif;
    text-transform: uppercase;
}

/* ==========================================================================
   Carousel de proyecto
   ========================================================================== */
.proyecto-carousel {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.proyecto-carousel .carousel-img-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 500px;
    overflow: hidden;
}

.proyecto-carousel .carousel-img-container img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    cursor: zoom-in;
}

.proyecto-carousel .carousel-caption {
    background: rgba(0,0,0,0.7);
    padding: 10px 20px;
    border-radius: 0;
    bottom: 20px;
}

.proyecto-carousel .carousel-control-prev,
.proyecto-carousel .carousel-control-next {
    width: 60px;
    opacity: 0.8;
}

.proyecto-carousel .carousel-control-prev:hover,
.proyecto-carousel .carousel-control-next:hover {
    opacity: 1;
}

/* Thumbnails */
.carousel-thumbnails {
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 10px;
}

.carousel-thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 0;
    cursor: pointer;
    border: 3px solid transparent;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.carousel-thumb:hover {
    opacity: 0.9;
}

.carousel-thumb.active {
    border-color: var(--color-accent);
    opacity: 1;
}

/* ==========================================================================
   Gallery Grid
   ========================================================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.gallery-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-grid img:hover {
    transform: scale(1.05);
}

/* ==========================================================================
   Footer - Matching larramendi.info
   ========================================================================== */
footer {
    background: linear-gradient(rgba(50, 66, 90, 0.6), rgba(50, 66, 90, 0.6)),
                url('../assets/footer-bg.jpg') center center / cover no-repeat;
    color: white;
    padding: 40px 0;
    text-align: center;
}

footer p {
    margin-bottom: 0;
    font-size: 0.875em;
    font-weight: 300;
}

footer a {
    color: white;
    text-decoration: none;
}

footer a:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (min-width: 992px) {
    .navbar-nav {
        display: flex !important;
        flex-direction: row !important;
    }
    
    .navbar-toggler {
        display: none !important;
    }
}

@media (max-width: 991px) {
    .navbar-toggler {
        display: block;
    }
    
    .navbar-nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.95);
        padding: 20px;
    }
    
    .navbar-nav.show {
        display: flex;
    }
    
    .navbar-nav li a::after {
        display: none;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    
    .hero-section {
        padding: 80px 0 60px;
    }
    
    .hero-section h1 {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }
    
    .hero-section p {
        font-size: 1.1em;
    }
    
    .proyecto-header .display-4 {
        font-size: 1.75rem;
    }
    
    .proyecto-carousel .carousel-img-container {
        height: 300px;
    }
    
    .carousel-thumb {
        width: 60px;
        height: 45px;
    }
}

/* Empty state */
.text-muted {
    color: var(--color-gray) !important;
}

.fa-tools, .fa-hammer {
    color: var(--color-accent);
}
