/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

/* Hero Section */
.hero {
    background-image: url(imgs/Hero-bg.webp);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
     padding: 150px 0;
    color: #ecf0f1;
}

.hero .subtitle {
    color:white
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #666;
}

/* Botones */
.btn-main,
.btn-whatsapp {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.btn-main {
    background-color: #2c3e50;
    color: white;
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
    font-size: 1.1rem;
    margin-top: 20px;
}

/* Cards de detalles */
.details {
    padding: 60px 0;
}

.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Galería */
.gallery {
    background-color: #fafafa;
    padding: 60px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.gallery-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    transform-origin: center;
}

.gallery-img:hover {
    transform: scale(1.05);
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* CTA Final */
.cta {
    background-color: #2c3e50;
    color: white;
    padding: 60px 0;
}

/* Footer */
footer {
    background-color: #1a252f;
    color: #aaa;
    padding: 20px 0;
    text-align: center;
    font-size: 0.8rem;
}

/* Responsivo para móviles */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.modal-img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 3rem;
    cursor: pointer;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    font-size: 3rem;
    cursor: pointer;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

/* Sección albumes */

/* Estilos para álbumes */
.albums {
    background-color: #fafafa;
    padding: 60px 0;
}

.albums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.album-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.album-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.album-cover {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: all 0.3s ease;
}

.album-item:hover .album-cover {
    transform: scale(1.05);
}

.album-title {
    padding: 15px;
    text-align: center;
    font-weight: bold;
    color: #2c3e50;
    font-size: 1.1rem;
}

/* Estilos para modal de álbum */
.modal-header {
    position: absolute;
    top: 10px;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 10;
}

#modal-album-title {
    color: white;
    margin: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    display:none;
}

.modal-counter {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background: rgba(0, 0, 0, 0.7);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    z-index: 10;
}

/* google maps */

/* Sección de Mapa */
.map-section {
    padding: 60px 0;
    background-color: #fff;
}

.map-section h2 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.map-container {
    margin-top: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.map-container iframe {
    border: none;
    transition: all 0.3s ease;
}

.map-container:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Responsive */
@media (max-width: 768px) {
    .map-container {
        height: 300px;
    }

    .map-section {
        padding: 40px 0;
    }
}

/* --- ESTILOS PARA TABLA DE FICHA TÉCNICA --- */
.tech-specs {
    padding: 60px 0;
    background-color: #fff;
}

.tech-specs h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 5px;
    font-size: 2rem;
}

.specs-subtitle {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 40px;
    font-style: italic;
}

.specs-table-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table th,
.specs-table td {
    padding: 18px 25px;
    text-align: left;
    border-bottom: 1px solid #ecf0f1;
}

.specs-table th {
    background-color: #f8f9fa;
    color: #2c3e50;
    font-weight: 700;
    width: 40%;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.specs-table td {
    color: #555;
    font-size: 0.95rem;
    background-color: white;
}

/* Filas alternas con fondo ligeramente diferente */
.specs-table tr:nth-child(even) {
    background-color: #fafafa;
}

.specs-table tr:hover {
    background-color: #f0f7ff;
    transition: background-color 0.2s ease;
}

/* Última fila sin borde */
.specs-table tr:last-child th,
.specs-table tr:last-child td {
    border-bottom: none;
}

/* Responsive: en móviles se apila */
@media (max-width: 768px) {

    .specs-table th,
    .specs-table td {
        padding: 15px 20px;
        display: block;
        width: 100%;
    }

    .specs-table th {
        background-color: #2c3e50;
        color: white;
        width: 100%;
        padding-top: 20px;
    }

    .specs-table td {
        padding-bottom: 20px;
        border-bottom: 2px solid #ecf0f1;
    }

    .specs-table tr {
        margin-bottom: 10px;
        display: block;
    }
}

/* --- ESTILOS PARA TABLA DE FICHA TÉCNICA --- */
.tech-specs {
    padding: 60px 0;
    background-color: #fff;
}

.tech-specs h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 5px;
    font-size: 2rem;
}

.specs-subtitle {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 40px;
    font-style: italic;
}

.specs-table-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table th,
.specs-table td {
    padding: 18px 25px;
    text-align: left;
    border-bottom: 1px solid #ecf0f1;
}

.specs-table th {
    background-color: #f8f9fa;
    color: #2c3e50;
    font-weight: 700;
    width: 40%;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.specs-table td {
    color: #555;
    font-size: 0.95rem;
    background-color: white;
}

/* Filas alternas con fondo ligeramente diferente */
.specs-table tr:nth-child(even) {
    background-color: #fafafa;
}

.specs-table tr:hover {
    background-color: #f0f7ff;
    transition: background-color 0.2s ease;
}

/* Última fila sin borde */
.specs-table tr:last-child th,
.specs-table tr:last-child td {
    border-bottom: none;
}

/* Responsive: en móviles se apila */
@media (max-width: 768px) {
    .specs-table th,
    .specs-table td {
        padding: 15px 20px;
        display: block;
        width: 100%;
    }
    
    .specs-table th {
        background-color: #2c3e50;
        color: white;
        width: 100%;
        padding-top: 20px;
    }
    
    .specs-table td {
        padding-bottom: 20px;
        border-bottom: 2px solid #ecf0f1;
    }
    
    .specs-table tr {
        margin-bottom: 10px;
        display: block;
    }
}