body {
    background: linear-gradient(to bottom, #D8B2AE, #EBD0C2); 
}

/* --- 1. ESTILOS GLOBALES Y DE FUENTE --- */
body, p, a, span, li, button, input, textarea, select {
    font-family: 'Poppins', sans-serif;
}

/* Ahora, en la regla del título principal, asignamos la fuente especial */
.page-header h1 {
    font-size: 3.5rem;
    color: #000;
    margin-bottom: 10px;
    font-family: 'Carter One', cursive; /* <-- O la fuente que prefieras para los títulos */
}
.page-container {
    padding: 120px 5% 60px;
    max-width: 1400px;
    margin: 0 auto;
    background: linear-gradient(to bottom, #D8B2AE, #EBD0C2); 
}
.page-header {
    text-align: center;
    margin-bottom: 60px;
    border-bottom: 1px solid #a8a297; 
    padding-bottom: 40px;
}
.page-header h1 {
    font-size: 3.5rem;
    color: #000;
    margin-bottom: 10px;
    font-family: 'Poppins', sans-serif;
}
.page-header p {
  font-size: 1.1rem;
  font-weight: bold;
  text-align: center;
  color: #000;
  max-width: 700px;
  margin: 0 auto;
}

/* --- 2. ESTILOS UNIFICADOS PARA TODAS LAS GALERÍAS (ESCRITORIO) --- */
.gallery-grid,
.jewelry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item,
.jewelry-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    background-color: #f0ebe5;
}

.gallery-item img,
.jewelry-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item:hover img,
.jewelry-item:hover img {
    transform: scale(1.1);
}

/* --- 3. ESTILOS UNIFICADOS PARA EL OVERLAY (TEXTO AL PASAR EL RATÓN) --- */
.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(61, 44, 28, 0.9), transparent); 
    color: #fff;
    padding: 40px 20px 20px;
    opacity: 0; /* Oculto por defecto */
    transition: opacity 0.4s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
}

.gallery-item:hover .gallery-overlay,
.jewelry-item:hover .gallery-overlay {
    opacity: 1; /* Se muestra al pasar el ratón */
}

.gallery-overlay h3 {
    margin: 0;
    font-size: 1.5rem;
}
.gallery-overlay p {
    font-size: 1rem;
    margin-top: 5px;
}


/* --- 4. ESTILOS PARA LA PÁGINA DE SERVICIOS --- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.service-card { background: linear-gradient(135deg, #fdf6e3, #e0c1a5); border-radius: 10px; overflow: hidden; text-align: center; transition: transform 0.3s ease; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); }
.service-card:hover { transform: translateY(-10px); }
.service-card img { width: 100%; height: 250px; object-fit: cover; }
.service-info { padding: 25px; }
.service-info h3 { font-size: 1.8rem; color: #3d2c1c; margin-bottom: 10px; }
.service-price { font-size: 2rem; font-weight: bold; color: #5a4b3a; margin-top: 15px; }

/* --- 5. ESTILOS PARA EL FORMULARIO DE CONTACTO --- */
.contact-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    border-radius: 15px; /* Hacemos el radio un poco más grande */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    
    /* El truco del borde degradado: */
    position: relative; /* Necesario para el pseudo-elemento */
    z-index: 1;         /* Para asegurar que el contenido esté por encima del borde */
    background: linear-gradient(135deg, #fdf6e3, #d4bca2); /* El fondo del formulario */
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1; /* Lo ponemos detrás del formulario */
    margin: -3px; /* Este valor controla el grosor del borde */
    border-radius: inherit; /* Hereda la misma curvatura de borde */
    
    /* AQUÍ PONES EL DEGRADADO QUE QUIERAS PARA EL BORDE */
    background: linear-gradient(135deg, #C49994, #CFB0A2, #F5ECDF);
}
.form-group { margin-bottom: 25px; }
.form-group label { display: block; font-size: 1.1rem; margin-bottom: 8px; color: #000; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 15px; background-color: #fff; border: 1px solid #d4bca2; border-radius: 5px; color: #3d2c1c; font-size: 1rem; }


@media (max-width: 768px) {

    /* --- AJUSTES GENERALES PARA MÓVIL --- */
    .page-container { padding: 100px 15px 40px; }
    .page-header h1 { font-size: 2.2rem; }
    .page-header p { font-size: 1rem; }
    .contact-form { padding: 25px; }

    /* --- SOLUCIÓN PARA TODAS LAS GALERÍAS Y JOYERÍA EN MÓVIL --- */
    .gallery-grid,
    .jewelry-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .gallery-item,
    .jewelry-item {
        aspect-ratio: 4 / 5; /* Tarjetas rectangulares */
    }
    
    .gallery-overlay h3 { font-size: 1.1rem; }
    .gallery-overlay p { font-size: 0.9rem; }
}

.form-button {
    display: inline-block; /* Lo devolvemos a inline-block */
    margin-top: 15px;
    padding: 8px 25px;
    border: 2px solid #000;
    border-radius: 50px;
    background-color: transparent;
    color: #000;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-button-container {
    text-align: center; /* Centra todo lo que esté adentro, como si fuera texto */
}

.form-button:hover {
    background-color: #C49994; /* Tu rosa más oscuro al pasar el ratón */
}

.form-button {
    display: inline-block;
    padding: 12px 35px;
    margin-top: 15px;
    border: 2px solid #000;      /* Borde negro, como pediste */
    border-radius: 50px;         /* Bordes redondeados */
    background-color: transparent; /* Fondo transparente */
    color: #000;                 /* Texto negro */
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-button:hover {
    background-color: #000;      /* Fondo negro al pasar el ratón */
    color: #fff;                 /* Texto blanco para contraste */
}

