/* Estilos Generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
    color: #333;
    background-color: #d4d3d3;
}

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

section {
    padding: 80px 0;
}

h1, h2, h3 {
    margin-bottom: 20px;
    color: #a88b63;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    position: relative;
    margin-bottom: 50px;
}

h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #c8a97e;
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

img {
    max-width: 100%;
    height: auto;
}

.btn-primary {
    display: inline-block;
    background-color: #c8a97e;
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary:hover {
    background-color: #a88b63;
}

/* Barra de Navegación */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color:#e8e1d7;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #a03957;
    font-weight: bold;
    font-size: 1.5rem;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #4a3520;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #c8a97e;
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: #c8a97e;
}

.nav-links a:hover::after {
    width: 100%;
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: #4a3520;
    margin: 5px;
    transition: all 0.3s ease;
}

/* Sección Hero */
.hero-section {
    min-height: 100vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/banner.svg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: lightgray; /* Tono marrón oscuro que combina con la temática de madera */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding-top: 80px;
}

.hero-content {
    margin-top: auto;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: white;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
}

/* Sección Historia */
.historia-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.historia-text {
    flex: 1;
}

.historia-img {
    flex: 1;
    text-align: center;
}

.historia-img img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Sección Galería */
.galeria-section {
    background-color: #f8f9fa;
    padding: 100px 0;
}

.galeria-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
    flex-wrap: wrap;
    gap: 15px;
}

.tab-btn {
    background-color: white;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    padding: 10px 25px;
    cursor: pointer;
    font-size: 1rem;
    color: #555;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-weight: 600;
}

.tab-btn:hover {
    border-color: #c8a97e;
    color: #c8a97e;
    transform: translateY(-3px);
}

.tab-btn.active {
    background-color: #c8a97e;
    color: white;
    border-color: #c8a97e;
    box-shadow: 0 10px 20px rgba(200, 169, 126, 0.3);
}

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    transition: all 0.5s ease;
}

.galeria-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 350px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.galeria-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.galeria-item:hover img {
    transform: scale(1.1);
}

.galeria-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    padding: 30px 20px 20px;
    color: white;
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;    flex-direction: column;
    justify-content: flex-end;
}

.galeria-item:hover .galeria-overlay {
    opacity: 1;
}

.galeria-overlay h3 {
    margin: 0;
    font-size: 1.4rem;
    color: white;
    transform: translateY(10px);
    transition: transform 0.4s ease;
}

.galeria-item:hover .galeria-overlay h3 {
    transform: translateY(0);
}

.galeria-overlay p {
    margin: 5px 0 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.95);
    backdrop-filter: blur(5px);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    border-radius: 10px;
    animation: zoom 0.3s;
}

@keyframes zoom {
    from {transform:scale(0)} 
    to {transform:scale(1)}
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 50px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.lightbox-close:hover {
    color: #c8a97e;
}

.lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 20px 0;
    font-size: 1.2rem;
}

/* Sección Contacto */
.contacto-content {
    display: flex;
    gap: 50px;
}

.contacto-info, .contacto-form {
    flex: 1;
}

.contacto-info p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.contacto-info i {
    margin-right: 10px;
    color: #c8a97e;
    width: 20px;
}

.google-business-link {
    margin: 20px 0 30px;
    text-align: center;
}

.google-business-link .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #4285F4;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.google-business-link .btn-secondary:hover {
    background-color: #357ae8;
}

.mapa {
    margin-top: 30px;
    width: 100%;
    overflow: hidden;
}

.mapa iframe {
    max-width: 100%;
    border-radius: 5px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.footer-logo, .footer-links, .footer-social {
    margin-bottom: 20px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 10px;
}

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

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #c8a97e;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #444;
    color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: #c8a97e;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .navbar {
        padding: 15px 30px;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .galeria-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

/* Tablets en orientación vertical */
@media screen and (min-width: 481px) and (max-width: 767px) {
    .container {
        padding: 0 20px;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .galeria-tabs {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        margin-bottom: 20px;
    }
    
    .tab-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
        margin: 3px;
    }
    
    .galeria-slider {
        height: 300px;
    }
    
    .galeria-miniatura {
        flex: 0 0 65px;
        height: 48px;
        margin: 4px;
    }
    
    .contacto-info iframe {
        width: 100% !important;
        height: 300px !important;
    }
    
    /* Ajustes para el modal en tablets */
    .modal-content.zoomed {
        transform: scale(1.3);
    }
}

@media screen and (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
    }
    
    .logo a {
        font-size: 1.5rem;
    }
    
    .logo p {
        font-size: 0.8rem;
    }
    
    .logo img {
        height: 30px;
    }
    
    .nav-links {
        position: fixed;
        right: 0;
        top: 70px;
        background-color: rgba(255, 255, 255, 0.95);
        flex-direction: column;
        width: 100%;
        height: calc(100vh - 70px);
        align-items: center;
        justify-content: flex-start;
        padding-top: 30px;
        transform: translateX(100%);
        transition: transform 0.3s ease-in;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    .burger {
        display: block;
        z-index: 1001;
    }
    
    .nav-active {
        transform: translateX(0%);
    }
    
    .historia-content, .contacto-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .historia-img {
        order: -1;
        width: 100%;
    }
    
    .historia-img img {
        max-width: 100%;
        height: auto;
    }
    
    .hero-content {
        padding: 0 20px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .galeria-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
    }
    
    .footer-logo {
        align-items: center;
    }
    
    /* Galería responsiva */
    .galeria-slider {
        height: 350px;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
    }
    
    .galeria-descripcion {
        padding: 15px;
    }
    
    .galeria-descripcion h3 {
        font-size: 1.2rem;
    }
    
    .galeria-miniatura {
        flex: 0 0 70px;
        height: 50px;
        margin: 5px;
    }
    
    .contacto-info iframe {
        width: 100% !important;
        height: 350px !important;
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .navbar {
        padding: 10px 15px;
    }
    
    .logo a {
        font-size: 1.3rem;
    }
    
    .logo p {
        font-size: 0.7rem;
    }
    
    .logo img {
        height: 25px;
    }
    
    .hero-content {
        margin-top: auto;
        padding: 0 15px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .btn-primary {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    h2 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    .historia-section, .galeria-section, .contacto-section {
        padding: 40px 0;
    }
    
    .galeria-grid {
        grid-template-columns: 1fr;
    }
    
    .galeria-tabs {
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
        margin-bottom: 15px;
    }
    
    .tab-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
        margin: 2px;
    }
    
    /* Galería responsiva */
    .galeria-slider {
        height: 200px;
    }
    
    .slider-btn {
        width: 30px;
        height: 30px;
        font-size: 0.7rem;
    }
    
    .galeria-descripcion {
        padding: 10px;
    }
    
    .galeria-descripcion h3 {
        font-size: 1.1rem;
        margin-bottom: 5px;
    }
    
    .galeria-descripcion p {
        font-size: 0.9rem;
    }
    
    .galeria-miniaturas {
        padding: 5px 0;
    }
    
    .galeria-miniatura {
        flex: 0 0 50px;
        height: 40px;
        margin: 3px;
    }
    
    .contacto-info p {
        font-size: 0.9rem;
    }
    
    .contacto-info iframe {
        height: 250px !important;
    }
    
    .footer-content {
        gap: 20px;
    }
    
    .footer-bottom p {
        font-size: 0.8rem;
    }
    
    /* Modal de zoom para móviles */
    .modal-content {
        max-width: 95%;
    }
    
    .zoom-controls {
        bottom: 10px;
    }
    
    .zoom-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .close {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }
}

/* Animaciones */
.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle .line2 {
    opacity: 0;
}

.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}