/* ======================================================
   RESET GENERAL Y ESTILOS BASE
   ====================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-align: center;
    font-style: italic; 
    font-weight: 600; /* Semi-negrita por defecto */
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    font-size: 20px;
    padding-top: 60px;
  background: linear-gradient(
    rgba(243, 133, 174, 0.85),
    rgba(255, 190, 210, 0.85)
);

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* ======================================================
   ENCABEZADO Y NAVEGACIÓN
   ====================================================== */
header {
  background: linear-gradient(
    rgba(220, 230, 245, 0.85),
    rgba(230, 200, 230, 0.85)
  );
  padding: 30px 0;
  text-align: center;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 1000;
}

header h1 {
  margin-bottom: 10px;
  font-size: 2rem;
  font-weight: bold;
}

nav ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

nav ul li {
  display: inline-block;
  position: relative;
  margin-right: 20px;
}

nav ul li a {
  text-decoration: none;
  color: black;
  font-weight: 500;
  font-size: 1.1rem;
  border-bottom: 2px solid transparent;
  transition: border-bottom 0.3s ease, color 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
  border-bottom: 2px solid white;
}

/* --- Dropdown --- */
.dropdown-content {
  display: none;
  position: absolute;
  left: 0;
  background: rgba(255, 255, 255, 0.95);
  min-width: 180px;
  border-radius: 8px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
  text-align: left;
}

.dropdown-content li {
  display: block;
  margin: 0;
}

.dropdown-content a {
  color: #333;
  padding: 8px 15px;
  display: block;
  border-bottom: none;
}

.dropdown-content a:hover {
  background: rgba(220, 230, 245, 0.7);
  border-radius: 4px;
}

/* Mostrar dropdown al pasar el mouse */
.dropdown:hover .dropdown-content {
  display: block;
}


/* ======================================================
   TITULOS
   ====================================================== */
h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    
}

/* ======================================================
   GALERÍA DE IMÁGENES
   ====================================================== */
.galeria {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    padding: 20px;
}

/* Responsivo para galería */
@media (max-width: 1200px) { .galeria { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 900px)  { .galeria { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px)  { .galeria { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 400px)  { .galeria { grid-template-columns: 1fr; } }

/* Estilo de imágenes de galería */
.galeria img {
    width: 300px;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* solo transición hover */
    opacity: 1; /* aparece directamente */
    transform: scale(0.95); /* ligeramente más pequeña al inicio */
    transition: opacity 0.8s ease, transform 0.8s ease, box-shadow 0.3s ease;
}

.galeria img:hover {
    transform: scale(1.05); /* zoom suave al pasar el mouse */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); /* sombra más marcada */
}


/* Animación fade-in de las imágenes */
@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ======================================================
   CARDS
   ====================================================== */
.card {
    margin-top: 100px;
    margin-bottom: 20px;
    padding: 20px;
    background: linear-gradient(
        rgba(220, 230, 245, 0.85),
        rgba(230, 200, 230, 0.85)
    );
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    color: #222;
    transition: filter 0.2s ease;
}

/* ======================================================
   SECCIÓN INDEX / BANNER Y SOBRE MI
   ====================================================== */
.content {
    display: flex; 
    align-items: center;
    justify-content: flex-start; 
    width: 100%;
    padding: 20px;
}

.banner { flex: 1; margin-right: 0; }
.banner-img { width: 60%; height: auto; object-fit: cover; border-radius: 10px; }

.sobre-mi {
    flex: 1; 
    padding: 20px;
    margin-left: 0; 
    box-sizing: border-box; 
    font-size: 20px;
}

/* Responsivo para columnas */
@media (max-width: 768px) {
    .content { flex-direction: column; align-items: flex-start; }
    .banner, .sobre-mi { width: 100%; margin: 0; }
}

@media (max-width: 600px) {
    .sobre-mi { font-size: 6vw; padding: 10px; text-align: center; max-width: 80%; margin: 0 auto; }
}

/* ======================================================
   IMÁGENES GENERALES
   ====================================================== */
img {
    width: 300px;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
}

/* Ajustes responsivos para imágenes */
.imgP { width: 100%; }
@media (max-width: 1200px) { .imgP { max-width: 250px; } }
@media (max-width: 900px)  { .imgP { max-width: 200px; } }
@media (max-width: 600px)  { .imgP { max-width: 350px; } }
@media (max-width: 400px)  { .imgP { max-width: 120px; } }

/* ======================================================
   VIDEOS / MINIATURAS
   ====================================================== */
.galeria-videos { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; }

.video-item {
    width: 450px; height: 400px;
    overflow: hidden;
    display: flex; flex-direction: column;
    justify-content: flex-start; align-items: center;
    border-radius: 8px;
    animation: fadeInUp 0.6s ease forwards;
}

.video-item img, .video-item iframe {
    width: 100%; height: 100%; object-fit: cover; flex-grow: 1;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.video-item img:hover { transform: scale(1.05); }

/* Responsivo videos */
@media (max-width: 768px) { .video-item { width: 400px; height: 400px; } }
@media (max-width: 480px) { .video-item { width: 280px; height: 400px; } }
@media (max-width: 600px) { #modal-content video, #modal-content iframe { max-height: 300px; } }

/* ======================================================
   MODALES (IMÁGENES Y VIDEOS)
   ====================================================== */
/* Modal imágenes */
#imageModal {
    display: none; position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center; align-items: center;
    z-index: 1000; padding: 10px;
}
.modal-content { position: relative; max-width: 90vw; max-height: 90vh; display: flex; justify-content: center; align-items: center; }
.modal-content img { width: 100%; height: auto; max-width: 80vw; max-height: 80vh; border-radius: 10px; object-fit: contain; }

.close { position: absolute; top: 10px; right: 15px; color: white; font-size: 30px; font-weight: bold; cursor: pointer; }

/* Modal videos */
#modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.8); display: none; justify-content: center; align-items: center; }
#modal-contenido { background-color: white; padding: 20px; position: relative; }
#cerrar { position: absolute; top: 10px; right: 10px; font-size: 30px; cursor: pointer; }

.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.8); justify-content: center; align-items: center; }
.modal-container { background: #fff; padding: 20px; max-width: 700px; width: 90%; border-radius: 10px; position: relative; text-align: center; }
.cerrar { position: absolute; top: 10px; right: 15px; font-size: 30px; cursor: pointer; color: white; background: black; border-radius: 50%; padding: 5px 10px; }
#modal-content video, #modal-content iframe { width: 100%; max-height: 100%; border-radius: 10px; }

/* ======================================================
   FORMULARIOS / CONTACTO
   ====================================================== */
.container { width: 100%; max-width: 1200px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; margin: auto; padding: 20px; box-sizing: border-box; }

.contact-form { display: flex; flex-direction: column; gap: 15px; }
.contact-form label { font-weight: bold; color: #333; text-align: center; }
.contact-form input, .contact-form textarea {
    width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 5px; font-size: 14px; outline: none; transition: border-color 0.3s;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: #007bff; }

/* Alertas */
.alert { padding: 10px; border-radius: 5px; margin-bottom: 15px; text-align: center; font-weight: bold; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-danger  { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

#alerta-seguridad {
    position: fixed; top: 20px; left: 50%;
    transform: translateX(-50%);
    background-color: #ff4d4f; color: white;
    padding: 15px 25px; border-radius: 8px; font-weight: bold;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); z-index: 9999;
    display: none; animation: fadeInOut 4s ease-in-out;
}
@keyframes fadeInOut { 0% {opacity:0;} 10% {opacity:1;} 90% {opacity:1;} 100% {opacity:0;} }

/* ======================================================
   CONTACTO ESTILO GLASS
   ====================================================== */
.contact-glass {
    position: fixed; bottom: 25px; right: 25px; width: 320px;
    padding: 18px; text-align: center; color: #000;
    font-family: "Poppins", Arial, sans-serif; border-radius: 16px;
    background: rgba(255,255,255,0.25);
    box-shadow: 0 8px 32px rgba(31,38,135,0.37);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.3);
    z-index: 9999; transition: all 0.3s ease;
    word-wrap: normal;
}
.contact-glass:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(31,38,135,0.45); }
.contact-glass p { margin:0 0 10px; font-size:17px; line-height:1.5; }
.contact-glass a { color: #000; text-decoration:none; font-weight:600; }
.contact-glass a:hover { text-decoration:underline; }

.social-icons { margin-top:10px; }
.social-icons img {
    width: 32px; height: 32px; margin: 0 6px; vertical-align: middle; border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.social-icons img:hover { transform: scale(1.2); box-shadow: 0 0 8px rgba(0,0,0,0.2); }

/* ======================================================
   CATÁLOGO Y PACKS
   ====================================================== */
.catalogo-container {
    max-width: 1100px; margin:50px auto;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(15px); border-radius:16px; padding:30px;
    color:#222; box-shadow:0 8px 25px rgba(0,0,0,0.15);
    font-family: "Poppins", Arial, sans-serif;
}

.packs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
    gap: 20px; margin-top: 30px;
}

.pack {
    background: rgba(255,255,255,0.5);
    border-radius:14px; padding:15px; text-align:center;
    box-shadow:0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.pack:hover { transform: translateY(-6px); }
.pack h3 { margin-top:0; }

.extras {
  margin-top: 40px;
  overflow-x: auto; /* Permite desplazamiento horizontal en pantallas pequeñas */
}

.extras table {
  width: 100%;
  border-collapse: collapse;
  min-width: 400px; /* Evita que las columnas se amontonen demasiado */
}

.extras th,
.extras td {
  padding: 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  text-align: left;
  white-space: nowrap; /* Evita que el texto se corte feo en celdas pequeñas */
}

/* --- Diseño más limpio --- */
.extras th {
  background: #f8f8f8;
  font-weight: 600;
  color: #333;
}

/* --- Adaptación móvil --- */
@media (max-width: 600px) {
  .extras table {
    font-size: 14px;
    min-width: unset; /* Deja que se ajuste automáticamente */
  }

  .extras th,
  .extras td {
    padding: 8px;
    white-space: normal; /* Permite salto de línea en textos largos */
  }

  /* Opcional: convierte la tabla en formato "cards" */
  .extras table,
  .extras thead,
  .extras tbody,
  .extras th,
  .extras td,
  .extras tr {
    display: block;
  }

  .extras thead {
    display: none; /* Oculta los encabezados en móvil */
  }

  .extras tr {
    margin-bottom: 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background: #fff;
    padding: 10px;
  }

  .extras td {
    display: flex;
    justify-content: space-between;
    text-align: right;
    padding: 8px 10px;
  }

  .extras td::before {
    content: attr(data-label);
    font-weight: bold;
    text-transform: capitalize;
    color: #444;
    text-align: left;
  }
}


.contacto { text-align:center; margin-top:50px; font-size:18px; }

/* ======================================================
   OTRAS IMÁGENES (MIS FOTOS)
   ====================================================== */
.mis-fotos img {
    width: 100%;
    max-width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.mis-fotos img:hover { transform: scale(1.05); }

@media (max-width: 768px) { .mis-fotos img { max-width: 45%; } }
@media (max-width: 480px) { .mis-fotos img { max-width: 90%; } }


/* Estilo de inputs */
.input[type="text"],
.input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 8px;
    outline: none;
    font-size: 16px;
    transition: 0.3s;
}


/* ---------- FORMULARIO DE SUBIDA DE IMAGEN ---------- */

form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 500px;
  margin: 0 auto;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 8px;
  color: #222;
}

.form-control,
.form-control-file {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 15px;
  transition: all 0.2s ease-in-out;
  font-family: "Poppins", Arial, sans-serif;
  background-color: #fff;
}

.form-control:focus,
.form-control-file:focus {
  border-color: #007bff;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
  outline: none;
}

.general {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.2s ease;
}

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



