/* ----------------------- */
/* ESTILO GENERAL ESTOICOAM */
/* ----------------------- */

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

body {
  background-color: #0d0d0d;
  color: #ffffff;
  font-family: "Georgia", serif;
}

/* Centrado de secciones */
section {
  width: 100%;
  max-width: 100vw;
  margin: 0;
  padding: 50px 20px;
  overflow-x: hidden;
  box-sizing: border-box;
}

section * {
  max-width: 100%;
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

* {
  max-width: 100%;
  box-sizing: border-box;
}

main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

/* ----------------------- */
/* HEADER */
/* ----------------------- */

header {
  background-color: transparent;
  color: white;
  padding: 14px 26px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  box-shadow: none;
  z-index: 2000;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-family: "Playfair Display SC", serif;
  font-weight: 400;
}

header * {
  font-family: "Playfair Display SC", serif;
  font-weight: 400;
  text-transform: uppercase;
}

header img {
  height: 50px;
  filter: drop-shadow(0 0 4px #d4af37);
  justify-self: start;
  opacity: 0;
  transform: translateY(-12px);
  animation: logoFade 2s ease-out forwards;
  animation-delay: 0.5s;
  cursor: pointer;
  transition:
    transform 0.3s ease,
    filter 0.3s ease;
}

header img:hover {
  transform: translateY(-8px);
  filter: drop-shadow(0 0 8px #d4af37);
}

@keyframes logoFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

header h1 {
  margin: 0;
  font-size: 32px;
  color: #d4af37;
}

/* ESLOGAN CENTRADO */
.slogan {
  font-size: 14px;
  letter-spacing: 2px;
  font-weight: 400;
  color: white;
  font-family: "Crimson Text", serif;
  text-align: center;
  grid-column: 1 / -1;
  justify-self: center;
  opacity: 0;
  transform: translateZ(-200px) scale(0.5);
  filter: drop-shadow(0 0 8px #d4af37);
  animation:
    sloganReveal 2s ease-out forwards,
    goldenGlow 4s ease-in-out infinite;
  animation-delay: 1.2s, 3.2s;
}

@keyframes sloganReveal {
  to {
    opacity: 1;
    transform: translateZ(0) scale(1);
  }
}

@keyframes goldenGlow {
  0%,
  100% {
    filter: drop-shadow(0 0 2px #d4af37);
  }
  50% {
    filter: drop-shadow(0 0 12px #d4af37)
      drop-shadow(0 0 20px rgba(212, 175, 55, 0.5));
  }
}

/* ----------------------- */
/* HAMBURGUESA */
/* ----------------------- */

.hamburger {
  position: fixed;
  top: 20px;
  right: 20px;
  font-size: 30px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  z-index: 2000;
  opacity: 0;
  transition: opacity 1s ease;
  font-weight: 300;
}

.hamburger.visible {
  opacity: 1;
}

.hamburger.active {
  opacity: 0;
  pointer-events: none;
}

/* ----------------------- */
/* NAV (oculto en desktop) */
/* ----------------------- */

header nav {
  display: none;
}

nav a {
  color: black;
  text-decoration: none;
  margin: 0 15px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
}

nav a:hover {
  color: #d4af37;
}

/* ----------------------- */
/* TITULOS Y PARRAFOS */
/* ----------------------- */

h1,
h2,
h3,
h4 {
  font-family: "Castoro", serif;
  font-weight: 400;
}

h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 15px;
  color: #d4af37;
}

p {
  text-align: center;
  font-size: 18px;
  line-height: 1.6;
}

/* ----------------------- */
/* BOTONES */
/* ----------------------- */

.btn {
  display: inline-block;
  color: #0d0d0d;
  background-color: #d4af37;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 6px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(212, 175, 55, 0.3);
}

.btn:hover {
  background-color: #b8942f;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(212, 175, 55, 0.5);
}

.btn-instagram {
  display: block;
  margin: 30px auto 50px auto;
  text-align: center;
  width: fit-content;
  font-size: 16px;
  letter-spacing: 0.5px;
}

#inicio .btn {
  display: block;
  margin: 20px auto;
  text-align: center;
  width: fit-content;
}

#inicio a {
  display: inline-block;
  color: #0d0d0d;
  background-color: #d4af37;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 6px;
  font-weight: bold;
  transition: 0.3s;
}

#inicio a:hover {
  background-color: #b8942f;
}

/* ----------------------- */
/* FORMULARIO */
/* ----------------------- */

form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 500px;
  margin: auto;
}

input,
textarea {
  background-color: #1a1a1a;
  border: 1px solid #d4af37;
  padding: 12px;
  border-radius: 6px;
  color: white;
  font-family: "Georgia", serif;
  font-size: 16px;
}

button {
  padding: 14px;
  background-color: #d4af37;
  color: #000;
  font-weight: bold;
  border: none;
  cursor: pointer;
  border-radius: 6px;
  font-size: 18px;
  transition: 0.3s;
}

button:hover {
  background-color: #b8942f;
}

.EliminarCambiarTamano {
  resize: none;
  font-family: "Georgia", serif !important;
  font-size: 16px !important;
}

/* ===================================== */
/* FOOTER */
/* ===================================== */

footer {
  background-color: #ffffff;
  padding: 40px 40px 25px 40px;
  border-top: 1px solid #d4af37;
  font-family: "Playfair Display SC", serif;
  font-weight: 400;
}

footer * {
  font-family: "Playfair Display SC", serif;
  font-weight: 400;
  color: #000000 !important;
}

.footer-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 250px 1fr 250px;
  gap: 35px;
  align-items: start;
}

.footer-logo-left {
  justify-self: start;
}

.footer-logo {
  width: 180px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.footer-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  justify-self: center;
  min-width: 0;
}

.footer-slogan {
  text-align: center;
  margin-bottom: 8px;
}

.footer-slogan p {
  font-family: "Playfair Display", serif;
  font-size: 18px;
  color: #000000;
  margin: 0;
  letter-spacing: 2px;
  font-weight: 400;
  transition: color 0.3s ease;
  cursor: pointer;
}

.footer-slogan p:hover {
  color: #d4af37 !important;
}

.footer-copyright {
  font-size: 13px;
  color: #666666 !important;
  margin: 0;
  padding: 0;
  text-align: center;
  line-height: 1.4;
}

.footer-social {
  font-size: 14px;
  color: #000000 !important;
  margin: 0;
  padding: 0;
  text-align: center;
  line-height: 1.4;
}

.footer-social a {
  color: #000000 !important;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-social a:hover {
  color: #d4af37 !important;
}

.footer-email {
  margin: 0;
  padding: 0;
  text-align: center;
  line-height: 1.4;
}

.footer-email a {
  font-size: 14px;
  color: #000000 !important;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-email a:hover {
  color: #d4af37 !important;
}

.footer-legal {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin-top: 20px;
  padding: 18px 0 0 0;
  flex-wrap: nowrap;
  white-space: nowrap;
  width: 100%;
  border-top: 1px solid rgba(212, 175, 55, 0.3);
}

.footer-legal a {
  color: #000000 !important;
  text-decoration: none;
  font-size: 12px;
  padding: 0 20px;
  border-right: 2px solid #d4af37;
  border-bottom: none !important;
  transition: all 0.3s ease;
  white-space: nowrap;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.footer-legal a:last-child {
  border-right: none;
}

.footer-legal a:hover {
  color: #d4af37 !important;
  letter-spacing: 1px;
}

.footer-right-spacer {
  width: 250px;
}

@media (max-width: 968px) {
  .footer-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-logo-left {
    justify-self: center;
  }

  .footer-right-spacer {
    display: none;
  }
}

/* ----------------------- */
/* ANIMACIONES */
/* ----------------------- */

.fade-in {
  opacity: 0;
  animation: fadeIn 1.2s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-title {
  opacity: 0;
  transform: translateY(20px);
  animation: slideUp 2.5s ease forwards;
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.9s ease-out;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ================================= */
/* SECCIÓN INICIO CON VIDEO */
/* ================================= */

#inicio {
  position: relative;
  min-height: 100vh;
  width: 100vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0;
  margin: 0;
  overflow: hidden;
  background-color: black;
}

#inicio::before {
  display: none !important;
}

.fullpage {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 80px 20px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.fullpage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.85));
  z-index: 0;
}

.fullpage > * {
  position: relative;
  z-index: 1;
}

.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.inicio-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: white;
  max-width: 800px;
  padding: 0 20px;
  margin-top: 0;
}

.espacio-logo {
  height: 100px;
  margin-bottom: 30px;
}

.mensaje-temporal {
  font-size: 28px;
  color: #d4af37;
  text-shadow: 0 3px 15px rgba(0, 0, 0, 0.9);
  font-family: "Castoro", serif;
  font-weight: 400;
  letter-spacing: 1px;
  margin-bottom: 30px;
  opacity: 1;
  animation:
    mensajeEntrada 6s ease forwards,
    mensajeDesaparece 5s forwards;
}

@keyframes mensajeEntrada {
  0% {
    opacity: 1;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes mensajeDesaparece {
  0% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.frase-fija {
  font-size: 15px;
  line-height: 1.7;
  color: white;
  text-shadow: 0 3px 15px rgba(0, 0, 0, 0.9);
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  font-family: "Georgia", serif;
  margin-top: 15%;
}

@media (max-width: 767px) {
  .mensaje-temporal {
    font-size: 22px;
  }

  .espacio-logo {
    height: 250px;
  }

  .frase-fija {
    font-size: 15px;
    max-width: 90%;
  }
}

/* ===================================== */
/* SECCIONES CON VIDEO DE FONDO */
/* ===================================== */

#contenido,
#servicios,
#contacto {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 50px 20px;
  overflow: hidden;
  background-color: #000;
}

#contenido::before,
#servicios::before,
#contacto::before {
  display: none !important;
}

#contenido .video-background,
#servicios .video-background,
#contacto .video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.contenido-wrapper,
.servicios-wrapper,
.contacto-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
}

/* ====== SECCIÓN ESTOICOAM ====== */

#estoicoam {
  position: relative;
  background-image: url("img/marmol.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 50px 20px;
}

#estoicoam::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

#estoicoam > * {
  position: relative;
  z-index: 1;
}

#estoicoam-2 {
  position: relative;
  background-image: url("img/marmol.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 50px 20px;
}

#estoicoam-2::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

#estoicoam-2 > * {
  position: relative;
  z-index: 1;
}

/* Título especial de la sección Estoicoam */
#estoicoam .section-title {
  font-family: "Playfair Display", serif !important;
  font-size: 56px !important;
  font-weight: 700 !important;
  color: #b8942f !important;
  text-align: left !important;
  margin-bottom: 30px !important;
  margin-top: 0 !important;
  letter-spacing: 3px !important;
  text-transform: uppercase !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6) !important;
}

@media (max-width: 768px) {
  #estoicoam .section-title {
    font-size: 36px !important;
  }
}

/* ====== CONTENEDOR ESTOICOAM ====== */

.estoicoam-container {
  display: flex;
  gap: 50px;
  max-width: 1400px;
  margin: 0 auto;
  align-items: center;
}

.estoicoam-reverse .estoicoam-text {
  order: 1;
}

.estoicoam-reverse .estoicoam-image {
  order: 2;
}

.estoicoam-image {
  flex: 0 0 auto;
  max-width: 400px;
  width: 100%;
}

.estoicoam-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.estoicoam-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: justify;
}

.estoicoam-text p {
  text-align: justify;
  margin-bottom: 20px;
  line-height: 1.8;
  font-size: 16px;
  color: white;
}

.estoicoam-text-white p {
  color: #ffffff !important;
  font-size: 20px !important;
  line-height: 2 !important;
  margin-bottom: 35px !important;
  text-align: center !important;
  font-weight: 400;
  letter-spacing: 0.3px;
}

@media (max-width: 968px) {
  .estoicoam-container {
    flex-direction: column;
    gap: 30px;
    align-items: flex-start;
  }

  .estoicoam-image {
    max-width: 100%;
  }

  .estoicoam-reverse .estoicoam-text,
  .estoicoam-reverse .estoicoam-image {
    order: unset;
  }
}

/* ====== PÁRRAFOS ESTOICOAM ====== */

#estoicoam p {
  text-align: justify;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  margin: 0 0 15px 0;
}

/* ====== SECCIÓN SERVICIOS / ÁGORA ====== */

#servicios .section-title {
  font-family: "Megrim", cursive;
  font-size: 56px;
  font-weight: 700;
  margin-bottom: 80px;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-align: center;
}

.servicios-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 60px 80px;
  max-width: 1200px;
  margin: 60px auto;
  align-items: start;
  padding: 0 40px;
}

.service-origen {
  grid-column: 1;
  grid-row: 1;
  text-align: center;
}

.service-ascenso {
  grid-column: 2;
  grid-row: 1;
  text-align: center;
}

.service-vector {
  grid-column: 1 / 3;
  grid-row: 2;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.service-box {
  padding: 20px;
}

.service-box h3 {
  font-family: "Megrim", cursive;
  font-size: 42px;
  color: #ffffff;
  margin-bottom: 20px;
  letter-spacing: 3px;
  transition: all 0.3s ease;
}

.service-box p {
  font-size: 18px;
  line-height: 1.6;
  color: #cccccc;
}

.service-link {
  text-decoration: none;
  display: inline-block;
}

.service-link:hover h3 {
  color: #d4af37;
  transform: scale(1.05);
  text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

@media (max-width: 991px) {
  .servicios-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 40px;
    padding: 0 20px;
  }

  .service-origen,
  .service-ascenso,
  .service-vector {
    grid-column: 1;
    grid-row: auto;
    text-align: center;
    padding: 0;
    max-width: 100%;
  }

  .service-box p {
    margin: 0 auto !important;
  }
}

@media (max-width: 600px) {
  #servicios .section-title {
    font-size: 42px;
  }

  .service-box h3 {
    font-size: 32px;
  }

  .service-box p {
    font-size: 16px;
  }
}

/* ====== CENTRAR CONTACTO ====== */

#contacto {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#contacto form {
  width: 100%;
  max-width: 500px;
}

.contact-info-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  text-align: center;
}

/* ================================= */
/* SECCIÓN CONTENIDO CON GRID */
/* ================================= */

#contenido {
  text-align: center;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 25px;
  padding: 20px 0;
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
}

.grid-card {
  background-color: rgba(42, 42, 42, 0.9);
  padding: 40px 30px;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.content-grid > .grid-card:nth-child(1) {
  grid-column: 1;
}
.content-grid > .grid-card:nth-child(2) {
  grid-column: 3;
}
.content-grid > .grid-card:nth-child(3) {
  grid-column: 1;
}
.content-grid > .grid-card:nth-child(4) {
  grid-column: 3;
}

/* CONTENEDOR SOLO PARA LAS DOS ÚLTIMAS */
.content-grid {
  grid-template-columns: repeat(3, 1fr);
}

.content-grid-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.content-grid-bottom .grid-card {
  width: 100%;
  height: 300px;
}

/* NUEVA FILA 50 / 50 */
.content-grid::after {
  content: "";
  grid-column: 1 / -1;
}

.content-grid > .grid-card-large {
  width: 100%;
}

.grid-card:hover {
  transform: translateY(-10px);
  border: 2px solid #d4af37;
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.grid-card h3 {
  font-size: 24px;
  color: #d4af37;
  margin-bottom: 15px;
  font-family: "Castoro", serif;
  font-weight: 400;
}

.grid-card p {
  font-size: 16px;
  line-height: 1.6;
  color: #cccccc;
}

@media (max-width: 991px) {
  .content-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
    max-width: 900px;
    width: 100%;
  }

  .grid-card,
  .grid-card-large {
    grid-column: span 1 !important;
    min-height: 200px;
  }
}

@media (max-width: 768px) {
  .content-grid-bottom {
    grid-template-columns: 1fr !important; /* 1 columna */
  }
}

@media (max-width: 600px) {
  .content-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .grid-card,
  .grid-card-large {
    grid-column: span 1 !important;
    padding: 30px 20px;
    min-height: 200px;
  }

  .grid-card h3 {
    font-size: 20px;
  }

  .grid-card p {
    font-size: 14px;
  }
}

/* ================================= */
/* EFECTOS FLIP */
/* ================================= */

.flip-card {
  perspective: 1000px;
  position: relative;
  height: 300px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 30px;
  border-radius: 12px;
}

.flip-card-front {
  background-color: rgba(42, 42, 42, 0.9);
}

.flip-card-back {
  background-color: rgba(42, 42, 42, 0.95);
  transform: rotateY(180deg);
}

.btn-vermas {
  display: inline-block;
  background-color: #d4af37;
  color: #000;
  padding: 10px 25px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  margin-top: 15px;
}

.btn-vermas:hover {
  background-color: #b8942f;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(212, 175, 55, 0.5);
}

/* CUADRO REEL */
.reel-card {
  position: relative;
  overflow: hidden;
  padding: 0 !important;
  background-color: rgba(42, 42, 42, 0.9);
  min-height: 250px;
}

.reel-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 12px;
}

.reel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 10;
  border-radius: 12px;
}

.reel-card:hover .reel-overlay {
  background: rgba(0, 0, 0, 0.7);
  opacity: 1;
}

/* RECURSOS */
.recursos-lista {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.recurso-link {
  color: #cccccc;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s ease;
  padding: 8px 0;
}

.recurso-link:hover {
  color: #d4af37;
}

/* ========================= */
/* MENÚ LATERAL */
/* ========================= */

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 1000;
}

.menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  height: 100vh;
  background: #ffffff;
  padding: 60px 40px 20px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateX(100%);
  transition: transform 0.45s ease;
  z-index: 1100;
}

.menu-panel.active {
  transform: translateX(0);
}

.menu-close {
  position: absolute;
  top: 25px;
  right: 30px;
  font-size: 32px;
  background: none;
  border: none;
  cursor: pointer;
  color: #d4af37;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.menu-close:hover {
  background-color: #000000;
  color: #d4af37;
}

.menu-links {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-left: 20px;
}

.menu-links a {
  font-family: "Castoro", serif;
  font-size: 18px;
  font-weight: 400;
  color: black;
  text-decoration: none;
  margin-bottom: 20px;
  transition: all 0.3s ease;
  position: relative;
}

.menu-links a::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 2px;
  background-color: #d4af37;
  transition: width 0.3s ease;
}

.menu-links a:hover::before {
  width: 12px;
}

.menu-links a:hover {
  color: #d4af37;
  padding-left: 8px;
}

.menu-logo {
  margin-top: 30px;
  padding-bottom: 20px;
  text-align: center;
  flex-shrink: 0;
}

.menu-logo img {
  max-width: 200px;
  width: 100%;
  height: auto;
  opacity: 1;
  display: block;
  margin: 0 auto;
  filter: none;
  visibility: visible;
  pointer-events: none;
  transition: none;
}

/* ============================= */
/* RESPONSIVE GENERAL */
/* ============================= */

@media (max-width: 991px) {
  header {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    text-align: center;
    gap: 15px;
  }

  header img {
    justify-self: center;
  }

  .slogan {
    grid-column: 1;
  }

  .hamburger {
    position: absolute;
    top: 20px;
    right: 20px;
  }

  nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  nav a {
    margin: 8px 12px;
  }
}

@media (max-width: 767px) {
  body {
    font-size: 16px;
  }

  header img {
    height: 50px;
  }

  .slogan {
    font-size: 13px;
    text-align: center;
  }

  section {
    padding: 40px 16px;
  }

  h2 {
    font-size: 24px;
  }

  p {
    font-size: 16px;
  }

  form {
    width: 100%;
  }

  .contact-info-grid {
    flex-direction: column;
    gap: 25px;
  }

  footer {
    text-align: center;
  }
}

@media (max-width: 600px) {
  header {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  nav a {
    margin: 10px;
  }
}

/* ─── COOKIE BANNER ─── */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  transform: translateY(100%);
  opacity: 0;
  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.55s ease;
}
#cookie-banner.visible {
  transform: translateY(0);
  opacity: 1;
}
#cookie-banner.hidden {
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}
.cookie-topline {
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    #d4af37 30%,
    #f5d87a 50%,
    #d4af37 70%,
    transparent 100%
  );
}
.cookie-body {
  background: rgba(10, 10, 10, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 22px 40px;
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.cookie-icon {
  font-size: 28px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.5));
  animation: flicker 4s ease-in-out infinite;
}
@keyframes flicker {
  0%,
  100% {
    filter: drop-shadow(0 0 4px rgba(212, 175, 55, 0.4));
  }
  50% {
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.8));
  }
}
.cookie-text {
  flex: 1;
  min-width: 200px;
}
.cookie-text strong {
  display: block;
  font-family: "Castoro", serif;
  font-size: 14px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #d4af37;
  margin-bottom: 5px;
}
.cookie-text p {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 13px;
  line-height: 1.65;
  color: #aaa;
  text-align: left;
}
.cookie-text p a {
  color: #d4af37;
  text-decoration: none;
  border-bottom: 1px solid rgba(212, 175, 55, 0.35);
  transition:
    color 0.2s,
    border-color 0.2s;
}
.cookie-text p a:hover {
  color: #f5d87a;
  border-color: #f5d87a;
}
.cookie-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  flex-shrink: 0;
}
.btn-cookie {
  font-family: "Castoro", serif;
  font-size: 12px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  padding: 10px 22px;
  border-radius: 4px;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}
.btn-accept {
  background: #d4af37;
  color: #0d0d0d;
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(212, 175, 55, 0.35);
}
.btn-accept:hover {
  background: #f5d87a;
  box-shadow: 0 6px 24px rgba(212, 175, 55, 0.6);
  transform: translateY(-2px);
}
.btn-reject {
  background: transparent;
  color: #888;
  border: 1px solid #333;
}
.btn-reject:hover {
  border-color: #d4af37;
  color: #d4af37;
  transform: translateY(-2px);
}
.btn-config {
  background: transparent;
  color: #555;
  border: none;
  padding: 10px 10px;
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.btn-config:hover {
  color: #d4af37;
}
@media (max-width: 768px) {
  .cookie-body {
    padding: 18px 20px;
    gap: 16px;
  }
  .cookie-icon {
    display: none;
  }
  .cookie-text p {
    font-size: 12px;
  }
  .cookie-actions {
    width: 100%;
    justify-content: center;
  }
  .btn-cookie {
    flex: 1;
    text-align: center;
  }
}
