/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    background-color: #f9f9f9;
    color: #333;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
}

/* Header */
header {
    background: #fff;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
    position: relative;
}

header h1 {
    font-size: 1.5rem;
    color: #222;
}

/* Menú de navegación */
nav {
    display: flex;
    gap: 1.5rem;
    font-size: 1rem;
}

nav a {
    text-decoration: none;
    color: #555;
    font-weight: bold;
}

nav a:hover {
    color: #000;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

/* Hero */
.hero {
    background: #fafafa;
    padding: 4rem 0;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* About */
.about {
    padding: 3rem 0;
    text-align: center;
}

/* Contact */
.contact {
    background: #fff;
    padding: 3rem 0;
    text-align: center;
}

.contact form {
    max-width: 600px;
    margin: 2rem auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.contact input,
.contact textarea {
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
}

.contact textarea {
    grid-column: span 2;
    resize: vertical;
}

.contact button {
    grid-column: span 2;
    padding: 0.75rem;
    background: #ddd;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
}

.contact button:hover {
    background: #ccc;
}

/* Footer */
footer {
    background: #f0f0f0;
    padding: 2rem 0;
    text-align: center;
    font-size: 0.9rem;
    color: #777;
}

/* Selector de idioma */
.language-selector {
    text-align: right;
    padding: 0.5rem 5%;
    background-color: #fff;
    border-bottom: 1px solid #eee;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    box-sizing: border-box;
}

.language-selector button {
    margin-left: 0.5rem;
    background: #ddd;
    border: none;
    padding: 0.4rem 0.6rem;
    cursor: pointer;
    font-weight: bold;
    border-radius: 4px;
}

.language-selector button:hover {
    background: #ccc;
}

/* Imagen destacada - estilo global */
.featured-image img {
    width: 100%;
    max-width: 600px; /* Tamaño base */
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: block;
    margin: auto;
}

/* Galería - Mostrar una imagen por fila */
.gallery-section {
    padding: 3rem 0;
    text-align: center;
}

.image-gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.image-gallery img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: block;
    margin: auto;
}

/* Estilos para escritorio (PC) */
@media (min-width: 769px) {
    .image-gallery img {
        max-width: 1000px;
    }

    .featured-image img {
        max-width: 1000px;
    }
}

/* Estilos para móviles */
@media (max-width: 768px) {
.button-right {
        align-self: flex-end;
        width: 100%;
        text-align: right;
    }
    nav {
        position: absolute;
        top: 60px;
        left: -100%;
        flex-direction: column;
        background-color: #fff;
        width: 100%;
        padding: 1rem 0;
        transition: left 0.3s ease;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        z-index: 1000;
    }

    nav.active {
        left: 0;
    }

    .menu-toggle {
        display: block;
    }

    .photos {
        flex-direction: column;
        align-items: center;
    }

    .contact form {
        grid-template-columns: 1fr;
    }

    .featured-image img,
    .image-gallery img {
        max-width: 95%;
    }
}
/* Contenedor de imagen + botón */
.image-button-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    gap: 0;
}

/* Imagen destacada */
.image-container {
    width: 100%;
    max-width: 1000px;
    margin-bottom: 1rem;
}

.image-container img {
    width: 100%;
    max-width: 1000px;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin: auto;
}

/* Contenedor de imagen + botón */
.image-button-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centra todo por defecto */
    position: relative;
    width: 100%;
}

/* Imagen destacada */
.image-container {
    width: 100%;
    max-width: 1000px; /* Ajusta este valor según sea necesario */
    margin-bottom: 2rem; /* ?? Espacio entre imagen y botón */
}

.image-container img {
    width: 100%;
    max-width: 1000px;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin: auto;
}

/* Botón alineado a la derecha solo en escritorio */
.button-right {
    text-align: right;
    width: 100%;
    max-width: 1000px; /* ?? Igual que el ancho máximo de la imagen */
}

@media (min-width: 769px) {
    .image-button-wrapper {
        align-items: flex-start;
    }

    .button-right {
        margin-top: 1rem; /* ?? Agrega un poco de espacio visual */
    }
}

/* Estilo del botón */
.custom-button {
    background-color: #cce4fa;
    color: black;
    padding: 0.4rem 0.8rem; /* ?? Tamaño pequeño */
    font-size: 0.75rem;   /* ?? Fuente más pequeña */
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: inline-block;
    transition: background 0.3s ease;
    float: right; /* ?? Hace que el botón flote a la derecha dentro de su contenedor */
    clear: both;
}

.custom-button:hover {
    background-color: #0056b3;
}