body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background: #f9f9f9;
    color: #333;
}

/* ===== HEADER ===== */
.header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 10px 20px;
    position: relative;
    z-index: 1000;
 
}

.header .container {
    display: flex;
    align-items: center;
    /*justify-content: space-between;*/
    gap: 10px; /* espacio entre menú y logo */
}

/* Botón menú hamburguesa */
.menu-toggle {
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    
    
}

/* Logo + marca */
.brand-container {
    display: flex;
    align-items: center;
    gap: 10px;
    
}

.logo {
    height: 60px;
}

.brand {
    font-size: 30px;
    font-weight: bold;
    color: #333;
}

/* Ícono Instagram */
.social {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1; /* ocupa el espacio entre logo y carrito */
}
.icon-instagram {
    width: 60px;
    height: 60px;
    transition: transform 0.2s;
    
}

.social .icon-instagram:hover {
    transform: scale(1.2);
}

/* Carrito */
.cart-link {
    font-weight: bold;
    text-decoration: none;
    color: #007bff;
    margin-left: auto; /* empuja el carrito al final */
    
}

.cart-link:hover {
    color: #0056b3;
}

/* Menú desplegable */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 60px;
    left: 15px;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    border-radius: 6px;
    overflow: hidden;
    flex-direction: column;
    z-index: 1001;
}

.dropdown-menu a {
    padding: 12px 20px;
    text-decoration: none;
    color: #333;
    display: block;
    transition: background 0.2s;
}

.dropdown-menu a:hover {
    background: #fbb034;
    color: white;
}

.dropdown-menu.open {
    display: flex;
}

/* ===== CATALOGO / ALBUMES ===== */
.catalog {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 15px;
}

/* Títulos de los álbumes */
.album-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;          /* semi-bold */
    font-size: 1.4em;
    color: #222;
    text-align: center;
    margin-bottom: 8px;
}

.album-title2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;          /* semi-bold */
    font-size: 1.6em;
    color: #222;
    text-align: left;
    margin-bottom: 8px;
}

/* Descripción de los álbumes */
.album-item p {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;          /* normal */
    font-size: 0.95em;
    color: #444;
    text-align: center;
    margin-bottom: 12px;
}

/* Mantener la coherencia visual con el texto guía manuscrito */
.album-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.album-link:hover .album-item {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* Grid interno 2x2 fotos */
.album-photos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 10px;
}

.album-photos img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: transform 0.2s ease-in-out;
}

.album-photos img:hover {
    transform: scale(1.1);
}

/* ===== FOOTER ===== */
.footer {
    text-align: center;
    padding: 20px;
    background: #fff;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.05);
}

.input-largo {
    width: 400px;
}

/* Estilos para inputs de formularios */
input[type="text"],
input[type="email"] {
    width: 100%;
    max-width: 600px;  /* más ancho */
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box; /* evita que se rompa el layout */
    margin-bottom: 15px;
}

/* Página de álbum - fotos grandes con hover */
.album-detalle {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.foto-item {
    text-align: center;
}

.foto-album {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.foto-album:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    z-index: 2;
}

/*ver album 3*/
.foto-card {
    display: block;
    position: relative;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    transition: border 0.3s, box-shadow 0.3s, transform 0.3s;
    text-align: center;
    touch-action: manipulation;
}

/* Ocultamos completamente el checkbox */
.foto-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Imagen */
.foto-card img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    pointer-events: none;
}

/* Hover / tap */
.foto-card:hover img,
.foto-card:active img {
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

/* Borde verde cuando se selecciona */
.foto-card input[type="checkbox"]:checked + img {
    border: 4px solid #28a745;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

/* Check verde sobre la foto */
.checkmark {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    color: #28a745;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 10;
}

/* Mostramos el checkmark al seleccionar */
.foto-card input[type="checkbox"]:checked + img + .checkmark {
    opacity: 1;
}

/* Precio */
.foto-precio {
    margin-top: 5px;
    font-weight: bold;
    font-size: 16px;
    color: #007bff;
}

/* Responsive */
@media (max-width: 768px) {
    .album-detalle {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }

    .checkmark {
        width: 28px;
        height: 28px;
        font-size: 20px;
    }

    .foto-precio {
        font-size: 14px;
    }
}

/* Barra inferior de acciones 
.purchase-actions {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #fff;
  padding: 10px 16px;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  z-index: 1000;
}*/

/* Botón "Pagar ahora" - verde intenso */
.btn-comprar {
  background-color: #28a745; /* verde fuerte */
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  padding: 14px 0;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

.btn-comprar:hover {
  background-color: #218838; /* verde aún más intenso al hover */
}

/* Botón "Agregar al carrito" - verde suave */
.btn-agregar {
  background-color: #d4edda; /* verde suave */
  color: #155724; /* texto más oscuro */
  font-size: 1rem;
  font-weight: 500;
  border: 2px solid #28a745;
  border-radius: 8px;
  padding: 12px 0;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.btn-agregar:hover {
  background-color: #c3e6cb;
}

/* Layout en pantallas grandes */
@media (min-width: 768px) {
  .purchase-actions {
    flex-direction: row;
    justify-content: center;
    gap: 20px;
  }

  .btn-comprar, .btn-agregar {
    flex: 1;
    max-width: 300px;
  }
}

.purchase-actions {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;  /* centra los botones */
  gap: 16px;                /* espacio entre los botones */
  background: #fff;
  padding: 10px 16px;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  z-index: 1000;
  border-radius: 8px; 
  flex-wrap: wrap; 
}

/* Cada formulario mantiene su ancho del botón */
.purchase-actions form {
  display: flex;
}

/* Botones ocupan el ancho del formulario */
.purchase-actions form button {
  padding: 14px 24px;   /* mismo tamaño para todos */
  border-radius: 8px;
  font-size: 1.05rem;
  cursor: pointer;
  width: auto;
}

/* Cruz roja para eliminar fotos del carrito */
.eliminar-btn {
  color: red;
  font-size: 22px;
  background: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
}

.eliminar-btn:hover {
  color: darkred;
  transform: scale(1.2);
}

/* Contenedor principal del carrito */
.carrito-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    gap: 20px;
    margin-top: 30px;
}

/* Sección izquierda: lista de fotos */
.carrito-fotos {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.carrito-foto-item label {
    color: red;
    font-weight: bold;
    cursor: pointer;
    font-size: 22px;
    margin-right: 10px;
    flex-shrink: 0;
}

.carrito-foto-item {
    background: #fff;
    border-radius: 8px;
    padding: 10px 40px 10px 10px; /* espacio para cruz */
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px; /* separación entre items */
    position: relative;
}

/* Imagen miniatura */
.carrito-foto-item img {
    width: 100px;
    height: auto;
    border-radius: 6px;
}

/* Cruz roja (botón eliminar) */
.carrito-foto-item label {
    color: red;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 10px;       /* mover cruz a la derecha */
    top: 50%;
    transform: translateY(-50%); /* centrado vertical */
    font-size: 22px;
    transition: transform 0.2s, color 0.2s;
}

.carrito-foto-item label:hover {
    transform: scale(1.3);
    color: darkred;
}

.carrito-foto-item label.eliminar-foto:hover {
    transform: scale(1.3);
    color: darkred;
}

/* Sección derecha: acciones */
.carrito-acciones {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    padding: 20px;
    text-align: center;
    min-width: 45%;
    background: #f9f9f9; /* opción: resalta sección */
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Botones principales, mismo estilo que ver_album */
.carrito-acciones button {
    display: inline-block;
    width: 100%;
    max-width: 300px;
    padding: 14px 28px;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
    box-sizing: border-box;
}

/* Finalizar Compra */
.carrito-acciones button.finalizar {
    background-color: #28a745;
    color: #fff;
}

.carrito-acciones button.finalizar:hover {
    background-color: #218838;
}

/* Continuar Comprando */
.carrito-acciones button.continuar {
    background-color: #d4edda;
    color: #155724;
}

.carrito-acciones button.continuar:hover {
    background-color: #c3e6cb;
}

/* Quitamos subrayado del link continuar comprando */
.carrito-acciones a {
    text-decoration: none;
}



/* Total del carrito encima de los botones */
.carrito-total {
    font-weight: bold;
    font-size: 22px;      /* más grande que los botones */
    color: #333;
    margin-bottom: 20px;  /* espacio con los botones */
    text-align: center;
}

/* ===== Confirmar Compra ===== */
.correo-section {
    margin-bottom: 25px;
}

.correo-section h2 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

.confirmar-lista {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.confirmar-item {
    background: #fff;
    border-radius: 8px;
    padding: 12px 18px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.confirmar-precio {
    font-weight: bold;
    color: #007bff;
}


/* ===== Indicador del carrito (número arriba) ===== */
.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-size: 1.1em;
  text-decoration: none;
  color: inherit;
}

.cart-icon {
  font-size: 1.5em;
  margin-right: 5px;
  position: relative;
  z-index: 1;
}

.cart-link:hover {
  color: #0056b3;
  transform: scale(1.05);
}

/* El número rojo encima del carrito */
.cart-count {
  position: absolute;
  top: -6px;
  right: -10px;
  background-color: #dc3545; /* rojo moderno */
  color: white;
  font-size: 12px;
  font-weight: bold;
  border-radius: 50%;
  padding: 2px 6px;
  line-height: 1;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
  animation: cart-bounce 0.4s ease;
}

/* Efecto sutil de aparición */
@keyframes cart-bounce {
  0% { transform: scale(0.5); opacity: 0; }
  80% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); }
}

.cart-badge {
  position: absolute;
  top: -5px;
  left: 12px;
  background-color: red;
  color: white;
  font-size: 0.7em;
  font-weight: bold;
  border-radius: 50%;
  padding: 2px 6px;
  z-index: 2;
  box-shadow: 0 0 2px rgba(0,0,0,0.3);
}

/* Solo agregamos el estilo del icono de descarga */
.descarga-icono {
    font-size: 24px;
    color: #007bff;
    text-decoration: none;
    margin-left: auto; /* empuja el icono al extremo derecho */
}

.descarga-icono:hover {
    color: #0056b3;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    /*.menu-toggle {
        display: block;
    }*/

    .brand {
        font-size: 16px;
    }

    .cart-link {
        font-size: 14px;
    }

    .social .icon-instagram {
        width: 25px;
        height: 25px;
    }
}

/* ===== Responsive Carrito ===== */
@media (max-width: 768px) {
    .carrito-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        margin-top: 20px;
    }

    .carrito-fotos {
        width: 100%;
        gap: 10px;
    }

    .carrito-foto-item img {
        max-width: 100%;
        height: auto;
    }

    .carrito-acciones {
        width: 100%;
        min-width: auto;
        padding: 15px;
    }

    .purchase-actions button {
    width: 100%;        /* ocupan todo el ancho disponible */
    max-width: auto;    /* no limitar ancho */
    padding: 16px 24px; /* más espacio alrededor del texto */
    font-size: 1.05rem; /* tamaño de letra mantiene igual */
    box-sizing: border-box;
  }
}

/* Responsive Confirmar_Compra*/
@media (max-width: 768px) {
    .carrito-container {
        flex-direction: column;
        gap: 20px;
    }

    .correo-section h2 {
        text-align: center;
    }

    .carrito-acciones {
        width: 100%;
        padding: 15px;
    }
}


@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Texto guía en landing */
.landing-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #555;
    margin: 10px auto 25px;
    max-width: 800px;
    line-height: 1.5;
    font-style: italic;
}

/* Suave animación al aparecer */
.landing-subtitle {
    opacity: 0;
    animation: fadeIn 1s ease-in-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.landing-subtitle {
    margin-top: 25px; /* espacio desde arriba */
    margin-bottom: 25px; /* espacio debajo */
    font-family: 'Caveat', cursive;
    font-size: 2em;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin-bottom: 25px;
}