@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300..700&display=swap');

/* Estilos generales */
html, body {
    margin: 0;
    padding: 0;
    overflow-y: auto;
    overflow-x: hidden;
    height: auto;
    min-height: 100vh;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    color: #fff;
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 20px;
    padding-top: 150px;
    min-height: 100vh;
}

/* Fondo */
body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://angelitoceramicas.cl/background.jpg');
    background-size: cover;
    background-position: center;
    z-index: -2;
    background-attachment: scroll;
}

body::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

/* Contenedor principal */
.cover-container {
    max-width: 42em;
    z-index: 2;
    margin-top: 150px;
    margin-bottom: auto;
    height: auto;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.4);
    padding: 10px 20px;
    width: 100%;
    position: absolute;
    top: 0;
    z-index: 10;
}

.navbar-brand {
    font-size: 1.5rem;
    color: #fff;
    font-weight: bold;
}

.navbar-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
}

.navbar-links li {
    display: inline;
}

.navbar-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
}

.navbar-links a:hover {
    color: #d1d1d1;
    text-decoration: underline;
}

/* Ajustes de texto y contenido */
.cover-heading {
    font-size: 2.5rem;
}

h1, p {
    margin-top: 20px;
}

/* Footer */
footer {
    color: rgba(255, 255, 255, 0.85);
    padding: 1rem;
    z-index: 2;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    bottom: 0;
}

footer a {
    color: #fff;
    text-decoration: underline;
}

footer a:hover {
    color: #d1d1d1;
}

/* Botón de colecciones */
.btn-colecciones {
    background-color: rgba(0, 0, 0, 0.4);
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn-colecciones:hover {
    background-color: rgba(0, 0, 0, 0.6);
    text-decoration: none;
}

/* Sección de imágenes */
.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding: 2rem 0;
}

.image-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    background: #ffffff;
    height: 300px;
    width: 300px;
}

.image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-card:hover img {
    transform: scale(1.1);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
}

.image-card:hover .overlay {
    opacity: 1;
}

/* Sección de contacto */
.contact-form {
    border-radius: 10px;
    padding: 30px;
    max-width: 500px; /* Ajusta el tamaño máximo */
    width: 100%; /* Asegura que el formulario ocupe el 100% del espacio disponible hasta el tamaño máximo */
    margin: auto; /* Asegura que el formulario se centre horizontalmente */
}

.contact-form h2 {
    margin-bottom: 20px;
    font-size: 24px;
    color: whitesmoke;
    text-align: center; /* Centra el título */
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: whitesmoke; /* Ajuste de color */
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.contact-form textarea {
    resize: none;
    height: 100px;
}

.contact-form button {
    background-color: #333;
    color: whitesmoke;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    width: 100%; /* Hace que el botón ocupe todo el ancho del formulario */
}

.contact-form button:hover {
    background-color: #555; /* Cambio al pasar el mouse */
}

/* Centrado del formulario en la pantalla */
.container {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Media query para pantallas pequeñas */
@media (max-width: 768px) {
    .contact-form {
        width: 90%; /* El formulario ocupará el 90% en pantallas pequeñas */
    }
}


.social-links {
    text-align: center;
    margin-top: 20px;
}

.social-links h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: whitesmoke;
}

.social-links ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-links ul li {
    display: inline-block;
}

.social-links a {
    text-decoration: none;
    font-size: 2em;
    color: whitesmoke;
    transition: color 0.3s;
}

.social-links a:hover {
    color: rgba(158, 158, 158);
}

.social-links i {
    margin-right: 8px;

/* Sección sobre mí */
#about {
    display: flex;
    justify-content: space-between;
    padding: 50px;
    font-family: "Space Grotesk", sans-serif;
}

.about-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.about-text {
    width: 50%;
    padding-right: 20px;
    text-align: left;
}

/* Estilos para pantallas grandes */
.about-image {
    width: 40%;  /* En pantallas grandes, la imagen ocupará el 40% del contenedor */
    margin-top: 20px;
}

.about-image img {
    width: 100%;  /* La imagen ocupará el 100% de su contenedor */
    height: auto;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);

@media (max-width: 768px) {
    /* En pantallas pequeñas */
    #about {
        padding: 20px;
        flex-direction: column;
        align-items: center;
    }

    .about-text {
        width: 100%;
        text-align: center;
        padding-right: 0;
        margin-bottom: 20px;
    }

    .about-image {
        width: 60%;
        margin-top: 20px;
    }

    .about-image img {
        width: 100%;
        height: auto;
        border-radius: 10px;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    }
}


@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(200px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fade-in 2s ease-in-out forwards;
}
