/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: linear-gradient(to bottom, #fdf6e3, #db9a9a);
  color: #222;
}

html {
  scroll-behavior: smooth;
}

/* HEADER */
header {
  background: linear-gradient(135deg, #1c1132, #3b3b3b);
  color: #fff;
  padding: 1.5rem;
  animation: fadeIn 1s ease-in-out;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  animation: slideIn 1s ease-out;
  text-align: center;
  padding: 1rem 0;
}

.logo {
    width: 50%;
    height: 90px; /* opcional para forzar cuadrado */
    margin-top: 0.5rem;
    animation: giroReversible 12s infinite ease-in-out;
    transform-origin: center;
    margin-left: 30px;
}

.profile-photo {
  width: 50%;
  height: 100px;
  margin-top: 0.4rem;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #f1c40f;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
  animation: floatIn 1.2s ease-in;
  margin-right: 30px;
}

.header-text {
  flex-grow: 1;
  text-align: center;
}

.header-text h1 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.header-text p {
  font-size: 1.1rem;
  color: #ddd;
}

/* NAV */
nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  background: #2c2c2c;
  flex-wrap: wrap;
}

nav ul li {
  margin: 0.5rem;
}

nav ul li a {
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  display: block;
  transition: background 0.3s, color 0.3s;
}

nav ul li a:hover {
  background: #f1c40f;
  color: #111;
}

/* TITULOS */
h1 {
  text-align: center;
  text-decoration: underline;
  font-size: 28px;
}

h2 {
  text-align: center;
  text-decoration: underline;
}

h3 a {
  color: #007BFF;
  text-decoration: none;
  transition: color 0.3s ease;
  text-align: left;
}

h3{
  text-align: center;
  font-size: 25px;
}

h3 a:hover {
  color: #0056b3;
  text-decoration: underline;
}

#formulario-contacto-title {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* PÁRRAFOS */
p {
  text-align: center;
  font-size: 18px;
}

/* GALERIA - STAFF */
.staff-container {
  max-width: 800px;
  margin: auto;
  padding: 20px;
}

.staff-member {
  display: flex;
  align-items: center;
  background: #f4d6a0;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.staff-member img {
  width: 140px;
  height: 150px;
  border-radius: 10px;
  margin-right: 20px;
  margin-left: 25px;
  object-fit: cover;
}

.staff-info {
  flex: 1;
  text-align: center;
}

.staff-info h3 {
  margin: 0;
  color: #333;
  text-decoration: underline;
}

.staff-info p {
  margin: 5px 0;
  color: #555;
  font-size: 18px;
}

.link-box {
  display: inline-block;
  padding: 8px 16px;
  background-color: white;
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  color: #007BFF;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
}

.link-box:hover {
  background-color: #f0f8ff;
  color: #0056b3;
  transform: scale(1.03);
}

/* FORMULARIO DE CONTACTO */
form#formulario-contacto {
  max-width: 500px;
  margin: 2rem auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

form#formulario-contacto input,
form#formulario-contacto textarea {
  font-family: inherit;
  font-size: 16px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  width: 100%;
  box-sizing: border-box;
}

form#formulario-contacto button {
  background-color: #25d366;
  color: #fff;
  padding: 8px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  align-self: center;
  font-size: 20px;
  width: fit-content;
  transition: all 0.3s ease;
}

form#formulario-contacto button:hover {
  background-color: #555;
  transform: scale(1.03);
}

/* CAJA DE INFORMACION DE CONTACTO */
.contact-info {
  background-color: #fff7ea;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
  max-width: 500px;
  margin: 2rem auto;
  font-size: 16px;
  line-height: 1.6;
}

/* WHATSAPP */
.whatsapp-button {
  display: block;
  background: #25D366;
  color: white;
  font-weight: bold;
  padding: 10px 18px;
  text-decoration: none;
  border-radius: 8px;
  margin: 1rem auto 0 auto;
  transition: background-color 0.3s ease;
  text-align: center;
  width: fit-content;
}

.whatsapp-button:hover {
  background-color: #1ebd5a;
}

/* MAPA */
.map-container {
  margin-top: 2rem;
  text-align: center;
}

.map-container iframe {
  width: 60%;
  height: 350px;
  margin-bottom: 15px;
  border: none;
  border-radius: 10px;
}

/* CARRUSELES DE DISEÑO */
.carousel-container {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  width: 100%;
}

.carousel-slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: auto;
}

.carousel-img {
  display: block;
  margin: 0 auto;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

/* Tamaños personalizados */
.carousel-img-bc {
  width: 350px;
  height: 200px;
  box-shadow: 2px solid black;
  padding: 5px;
}

.carousel-img-postcards {
  width: 400px;
  height: 260px;
  padding: 5px;
}

.carousel-img-flyers {
  width: 280px;
  height: 440px;
  padding: 5px;
}

.carousel-img-menus {
  width: 600px;
  height: 450px;
  padding: 5px;
}

/* FOOTER */
footer {
  background: #111;
  color: #eee;
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
}

footer .redes-sociales {
  margin-top: 15px;
}

footer .redes-sociales a {
  margin: 0 10px;
  color: #eee;
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

footer .redes-sociales a:hover {
  color: #ffcc00;
}

/* MENSAJE DE ÉXITO */
#mensaje-exito {
  background-color: #d4edda;
  color: #155724;
  padding: 10px;
  border-radius: 5px;
  text-align: center;
  border: 1px solid #c3e6cb;
  animation: fadeIn 0.8s ease-in-out;
}

/* RESPONSIVE */
@media (max-width: 767px) {
  .carousel-img-bc,
  .carousel-img-postcards {
    width: 260px;
    height: auto;
  }

  .carousel-img-flyers {
    width: 280px;
    height: 480px;
  }

  .carousel-img-menus {
    width: 550px;
    height: auto;
    max-width: 300px;
  }

  .staff-member {
    flex-direction: column;
    text-align: center;
  }

  .staff-member img {
    width: 90%;
    max-width: 260px;
    margin-bottom: 1rem;
  }

  .header-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }

  .logo {
    width: 120px;
    height: 120px;
  }

  .profile-photo {
    width: 60px;
    height: 60px;
  }

  .header-text h1 {
    font-size: 1.3rem;
  }

  .header-text p {
    font-size: 1rem;
  }

  form#formulario-contacto {
    max-width: 85%;
    margin: 2rem auto;
  }

  form#formulario-contacto input,
  form#formulario-contacto textarea {
    width: 100%;
  }

  .map-container iframe {
    width: 90%;
  }
}

/* ANIMACIONES */
@keyframes giroReversible {
  0%   { transform: rotate(0deg); }
  35%  { transform: rotate(360deg); }
  45%  { transform: rotate(360deg); }
  80%  { transform: rotate(0deg); }
  90%  { transform: rotate(0deg); }
  100% { transform: rotate(0deg); }
}

@keyframes floatIn {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.staff-member {
  max-width: 950px;
  margin: 1.5rem auto;
  padding: 1.5rem;
  background-color: #f0e6d0;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.proyecto-card img {
  width: 140px;
  height: auto;
  border-radius: 10px;
}

@media (min-width: 768px) and (max-width: 1024px) {
  .header-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    padding: 1rem;
    gap: 1rem;
  }

  .logo {
    width: 80px;
    height: auto;
    margin: 0;
  }

  .profile-photo {
    width: 80px;
    height: 80px;
    margin: 0;
  }

  .header-text {
    flex: 1;
    text-align: center;
  }

  .header-text h1 {
    font-size: 1.5rem;
  }

  .header-text p {
    font-size: 1rem;
  }
}

.bienvenida {
  background: #f5f5f5;
  padding: 50px 0;
}

.caja-elegante {
  max-width: 900px;
  margin: 0 auto;
  background: #ffffffee;
  padding: 40px 30px;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  text-align: center;
}

.caja-elegante h1 {
  font-size: 2.5rem;
  color: #222;
  margin-bottom: 20px;
}

.caja-elegante p {
  font-size: 1.2rem;
  color: #444;
  line-height: 1.8;
  margin-bottom: 15px;
}

/* MEDIA QUERY PARA TABLETAS (Ipads, Tablets Android) */
@media (min-width: 768px) and (max-width: 1024px) {
  
  /* Ajuste del Header para que respire mejor */
  .header-content {
    flex-direction: row;
    justify-content: space-around;
    padding: 1.5rem;
  }

  .logo {
    width: 100px;
    height: auto;
    margin: 0;
  }

  .profile-photo {
    width: 110px;
    height: 110px;
    margin: 0;
  }

  /* Ajuste de los Carruseles en Tablet */
  /* Aquí hacemos que las imágenes no se desborden y se vean proporcionales */
  .carousel-img-menus {
    width: 90%; /* Que ocupe casi todo el ancho de la tablet */
    height: auto;
    max-width: 650px;
  }

  .carousel-img-flyers {
    width: 320px;
    height: auto;
  }

  .carousel-img-postcards, 
  .carousel-img-bc {
    width: 80%;
    height: auto;
    max-width: 450px;
  }

  /* Grid para los proyectos web en Tablet */
  /* Si quieres que se vean dos por fila en lugar de uno solo largo */
  #web {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding: 1rem;
  }

  .staff-member {
    flex-direction: column; /* Apilados pero dentro de su rejilla */
    height: 100%;
    margin: 0;
  }

  /* Formulario y Mapa */
  .map-container iframe {
    width: 85%;
    height: 400px;
  }

  form#formulario-contacto {
    max-width: 70%;
  }
}


