/* floringHardwood.css - Estilos específicos para Flooring Remodeling */

/* ESTILOS CABECERA IDÉNTICOS AL BASEMENT */
#navegation .navbar-nav .nav-link {
    font-size: 1.6rem !important;
    font-weight: 600;
    margin: 0 22px;
    padding: 8px 12px !important;
    transition: all 0.3s ease;
    color: #0F1E38 !important;
}

#navegation .navbar-nav .nav-link:hover,
#navegation .navbar-nav .nav-link.active {
    color: #94BA46 !important;
    transform: translateY(-2px);
}

#navegation .navbar-nav {
    align-items: center;
    gap: 17px;
}

/* ESTILOS PARA EL DROPDOWN */
#navegation .dropdown-toggle:focus {
    box-shadow: none !important;
    color: #94BA46 !important;
}

#navegation .dropdown-menu {
    background-color: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

#navegation .dropdown-item {
    font-size: 1.1rem;
    padding: 10px 15px;
    color: #0F1E38 !important;
    transition: all 0.3s ease;
}

#navegation .dropdown-item:hover,
#navegation .dropdown-item:focus {
    background-color: #94BA46 !important;
    color: white !important;
}

#navegation .dropdown-item.active {
    background-color: #94BA46 !important;
    color: white !important;
}

#navegation .nav-link:focus {
    outline: none !important;
    box-shadow: none !important;
}

.navbar-social {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 20px;
    padding-left: 20px;
    border-left: 1px solid rgba(255,255,255,0.3);
}

.navbar-social .fa-facebook {
    color: #1877f2 !important;
}

.navbar-social .fa-instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-social a {
    font-size: 1.5rem;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.navbar-social a:hover {
    opacity: 1;
    transform: translateY(-2px);
}

/* Botón Scroll */
.boton-scroll a {
    position: fixed;
    width: 40px;
    text-align: center;
    font-size: 25px;
    bottom: 4%;
    right: 2%;
    z-index: 9;
    background-color: #0f172a;
    color: #d1d5db;
    opacity: 0.5;
    border-radius: 100%;
    visibility: hidden;
    animation: baja-sube 1s ease infinite;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.boton-scroll a:hover {
    background-color: #0f172a;
    color: lawngreen;
    border: 1px solid black;
    transform: scale(1.1);
    opacity: 1 !important;
}

@keyframes baja-sube {
    0% { transform: translateY(10px); }
    25% { transform: translateY(0px); }
    100% { transform: translateY(10px); }
}

/* ESTILOS FLOORING SERVICES - EXACTAMENTE IGUAL AL PAINTING */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #2c3e50;
    line-height: 1.6;
    padding: 20px;
    font-size: 16px;
}

:root {
    --primary: #2c3e50;
    --secondary: #94BA46;
    --accent: #94BA46;
    --light: #ecf0f1;
}

.flooring-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* TÍTULOS PERFECTAMENTE CENTRADOS */
.section-title {
    text-align: center !important;
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
    color: var(--primary);
    display: block !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--secondary);
    margin: 0.8rem auto !important;
    position: static !important;
}

.flooring-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    color: #555;
    line-height: 1.7;
}

.flooring-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.8rem;
    margin-bottom: 4rem;
}

.flooring-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.flooring-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* IMÁGENES DE TARJETAS - EXACTAMENTE IGUALES AL PAINTING */
.flooring-image {
    height: 160px; /* EXACTAMENTE IGUAL AL PAINTING */
    overflow: hidden;
}

.flooring-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.flooring-card:hover .flooring-image img {
    transform: scale(1.05);
}

.flooring-content {
    padding: 1.2rem;
}

.flooring-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: #2c3e50 !important;
}

.flooring-content p {
    margin-bottom: 1.2rem;
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
}

.flooring-features {
    margin-bottom: 1.2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.feature-icon {
    color: var(--secondary);
    margin-right: 0.5rem;
    font-size: 1rem;
}

/* Gallery Styles - EXACTAMENTE IGUAL AL PAINTING */
.gallery-section {
    margin: 4rem 0;
}

.gallery-title {
    text-align: center !important;
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
    color: var(--primary);
    display: block;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.gallery-title:after {
    content: '';
    display: block;
    width: 70px;
    height: 3px;
    background: var(--secondary);
    margin: 0.8rem auto !important;
    position: static !important;
}
/* AGREGAR ESTO A TU CSS - ESTILOS IDÉNTICOS PARA LOS TÍTULOS */
.section-title, .gallery-title {
    text-align: center !important;
    font-size: 2.5rem !important;
    margin-bottom: 2.5rem !important;
    color: var(--primary) !important;
    display: block !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    position: relative;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    font-weight: 600 !important;
}

.section-title:after, .gallery-title:after {
    content: '' !important;
    display: block !important;
    width: 80px !important;
    height: 4px !important;
    background: var(--secondary) !important;
    margin: 0.8rem auto !important;
    position: static !important;
}

/* ESTILO PARA EL SUBTÍTULO DE OUR WORK - IDÉNTICO AL DE FENCE SERVICES */
.gallery-section .flooring-intro {
    text-align: center !important;
    max-width: 800px !important;
    margin: 0 auto 3rem !important;
    font-size: 1.3rem !important;
    color: #555 !important;
    line-height: 2 !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}
/* GALERÍA EXACTAMENTE IGUAL AL PAINTING - SIN ALTURA FIJA */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.5rem;
}

.col-md-3 {
    flex: 0 0 25%;
    max-width: 25%;
    padding: 0 0.5rem;
}

.col-sm-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 0.5rem;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

/* IMÁGENES DE GALERÍA - EXACTAMENTE IGUALES AL PAINTING */
.img-thumbnail {
    width: 100%;
    height: auto; /* EXACTAMENTE IGUAL AL PAINTING - ALTURA AUTOMÁTICA */
    object-fit: cover;
    border: none;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.img-thumbnail:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* ETIQUETAS "ANTES/DESPUÉS" - EXACTAMENTE IGUALES AL PAINTING */
.gallery-label {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--secondary);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    z-index: 10;
}

.position-relative {
    position: relative;
}

/* Sección de Contacto */
.contact-section {
    background: #2c3e50;
    color: white;
    padding: 60px 0;
    text-align: center;
    margin-top: 40px;
    border-radius: 12px;
    border-top: 4px solid #94BA46 !important; /* MISMO VERDE QUE EL COPYRIGHT */
    border-bottom: 4px solid #94BA46 !important; /* MISMO VERDE QUE EL COPYRIGHT */
    position: relative;
}

.contact-section .section-title {
    color: white;
    margin-bottom: 20px;
}

.contact-section .section-title:after {
    background: #94BA46;
    margin: 0.5rem auto !important;
}

.contact-description {
    max-width: 600px;
    margin: 0 auto 30px;
    color: white;
}

.contact-section .btn {
    display: inline-block;
    background: #94BA46;
    color: white !important;
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.contact-section .btn:hover {
    background: #0F1E38;
    color: white !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* ESTILOS FOOTER */
.footer-title {
    font-family: var(--bs-font-sans-serif);
    font-size: 1.6rem !important;
    font-weight: 600;
    color: #0F1E38 !important;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.footer-title:hover,
.footer-title.active {
    color: #94BA46 !important;
    transform: translateY(-2px);
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: #94BA46;
    transition: left 0.3s ease;
}

.footer-title:hover::after {
    left: 0;
}

.footer-text {
    font-family: var(--bs-font-sans-serif);
    font-size: 1.1rem;
    line-height: 1.6;
    color: #0F1E38;
}

.footer-section ul li a.footer-text {
    font-size: 1.1rem;
    color: #495057;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a.footer-text:hover {
    color: #0d6efd;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
    justify-content: center;
}

.footer-social a {
    font-size: 1.5rem;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.footer-social a:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.footer-social .fa-facebook {
    color: #1877f2 !important;
}

.footer-social .fa-instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 3px solid #94BA46; /* Exactamente igual al de la cabecera */
    max-width: 1200px;
    margin: 0 auto;
}
.footer-bottom .footer-text {
    font-size: 1rem;
    color: white;
}
.site-footer {
    background-color:  #d1d5db !important; /* Azul de la cabecera */
    padding: 3rem 0 1rem;
    margin-top: 5rem;
    border-top: 4px solid #0F1E38; /* Borde verde en la parte superior */
    }

/* Responsive EXACTAMENTE IGUAL AL PAINTING */
@media (max-width: 991px) {
    .navbar-social {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        justify-content: center;
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid rgba(255,255,255,0.3);
    }

    #navegation .navbar-nav .nav-link {
        font-size: 1rem !important;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .section-title, .gallery-title {
        font-size: 2rem;
    }
    
    .flooring-grid {
        grid-template-columns: 1fr;
    }
    
    .flooring-container {
        padding: 1.5rem;
    }
    
    .flooring-intro {
        font-size: 1rem;
    }
    
    .flooring-content h3 {
        font-size: 1.3rem;
    }
    
    .feature-item {
        font-size: 0.9rem;
    }
    
    /* Responsive para galería - IGUAL AL PAINTING */
    .col-md-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 576px) {
    .col-md-3,
    .col-sm-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .flooring-image {
        height: 140px;
    }
}

/* ESTILO ESPECÍFICO SOLO PARA ESE TÍTULO */
section.contact-section h2.section-title {
    color: white !important;
}

/* GALERÍA - TAMAÑOS UNIFORMES PARA TODAS LAS IMÁGENES */
.gallery-section .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.5rem;
}

.gallery-section .col-md-3 {
    display: flex;
    flex: 0 0 25%;
    max-width: 25%;
    padding: 0 0.5rem;
}

.gallery-section .col-sm-6 {
    display: flex;
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 0.5rem;
}

.gallery-section .position-relative {
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* IMÁGENES CON ALTURA FIJA - MISMO TAMAÑO PARA TODAS */
.gallery-section .img-thumbnail {
    width: 100%;
    height: 280px; /* MISMA ALTURA PARA TODAS */
    object-fit: cover; /* Mantiene proporciones y recorta si es necesario */
    object-position: center; /* Enfoca el centro de la imagen */
    border: none;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    flex-grow: 1;
}

.gallery-section .img-thumbnail:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Etiquetas Antes/Después */
.gallery-label {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--secondary);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    z-index: 10;
}

/* Responsive para galería */
@media (max-width: 991px) {
    .gallery-section .col-md-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .gallery-section .img-thumbnail {
        height: 250px; /* Un poco más pequeño en tablets */
    }
}

@media (max-width: 576px) {
    .gallery-section .col-md-3,
    .gallery-section .col-sm-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .gallery-section .img-thumbnail {
        height: 220px; /* Más pequeño en móviles */
    }
}


/* GALERÍA - TAMAÑO DE FOTOS AL 80% CON ETIQUETAS */
.gallery-section .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.5rem;
}

.gallery-section .col-md-3 {
    flex: 0 0 25%;
    max-width: 25%;
    padding: 0 0.5rem;
}

.gallery-section .col-sm-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 0.5rem;
}

.gallery-section .position-relative {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center; /* Centra horizontalmente */
    align-items: center; /* Centra verticalmente */
    padding: 10px 0; /* Espacio alrededor */
}

/* TAMAÑO DE FOTOS AL 80% */
.gallery-section .img-thumbnail {
    width: 80% !important; /* 80% del ancho del contenedor */
    height: auto;
    object-fit: contain;
    border: none;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin: 0 auto; /* Centra la imagen */
}

.gallery-section .img-thumbnail:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* ETIQUETAS CON FONDO VERDE */
.gallery-label {
    position: absolute;
    top: 25px; /* Ajustado por el reducido tamaño */
    left: 50%;
    transform: translateX(-50%);
    background: #94BA46 !important;
    color: white !important;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.8rem;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid white;
    white-space: nowrap;
}

/* Responsive para galería */
@media (max-width: 991px) {
    .gallery-section .col-md-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 576px) {
    .gallery-section .col-md-3,
    .gallery-section .col-sm-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .gallery-section .img-thumbnail {
        width: 85% !important; /* Un poco más grande en móviles */
    }
    
    .gallery-label {
        top: 20px;
        font-size: 0.75rem;
        padding: 5px 10px;
    }
}