:root {
  --bg: #152131;
  --blue: #0066FF;
  --orange: #FF7A00;
  --ice: #39C8FF;
  --white: #FFFFFF;
  --text: rgba(255, 255, 255, 0.85);
}

* { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: var(--bg);
  color: var(--white);
  line-height: 1.6;
  padding: 20px;
}

.page-container {
  max-width: 210mm;
  margin: 0 auto;
  background: var(--bg);
  padding: 40px 35px;
  border-radius: 12px;
}

/* ===== HEADER ===== */
.logo {
  height: 80px;
  width: auto;
  object-fit: contain;
  margin-bottom: 12px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.pdf-header {
  text-align: center;
  margin-bottom: 28px;
  border-bottom: 2px solid var(--orange);
  padding-bottom: 18px;
}
.pdf-header h1 { 
  font-size: 30px; 
  color: var(--orange); 
  margin-bottom: 6px; 
  letter-spacing: 0.5px; 
}
.pdf-header p { 
  font-size: 16px; 
  color: var(--ice); 
  font-weight: 500; 
}

/* ===== INTRO + GALERÍA 2x2 ===== */
.pdf-intro {
  text-align: center;
  margin-bottom: 32px;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}
.pdf-intro p { 
  font-size: 15px; 
  color: var(--text); 
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 650px;
  margin: 20px auto 0;
  padding: 0 10px;
}

.gallery-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.gallery-img:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(57, 200, 255, 0.3);
  border-color: var(--ice);
}

/* ===== MODAL / LIGHTBOX ===== */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(11, 15, 26, 0.95);
  backdrop-filter: blur(5px);
  justify-content: center;
  align-items: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  max-width: 90%;
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(57, 200, 255, 0.3);
  object-fit: contain;
}

#modal-caption {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--white);
  font-size: 14px;
  background: rgba(0, 0, 0, 0.6);
  padding: 8px 16px;
  border-radius: 20px;
  pointer-events: none;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: var(--white);
  font-size: 36px;
  font-weight: 300;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
  z-index: 1001;
}

.modal-close:hover {
  color: var(--ice);
  transform: scale(1.1);
}

/* ===== SERVICIOS ===== */
.pdf-services h2 {
  font-size: 24px;
  color: var(--orange);
  margin-bottom: 18px;
  text-align: center;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.service-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 20px;
  word-wrap: break-word;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-item h3 { 
  font-size: 14px; 
  color: var(--ice); 
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(57, 200, 255, 0.2);
}

.service-item p { 
  font-size: 13px; 
  color: var(--text); 
  line-height: 1.6; 
}

/* ===== CONTACTO ===== */
.pdf-contact {
  text-align: center;
  margin-top: 36px;
  padding: 20px 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.pdf-contact h2 { 
  font-size: 24px; 
  color: var(--orange); 
  margin-bottom: 14px; 
}
.pdf-contact p { 
  font-size: 15px; 
  margin: 8px 0; 
  color: var(--text); 
}
.pdf-contact a { 
  color: var(--ice); 
  font-weight: 600; 
  text-decoration: none; 
}
.pdf-contact a:hover { 
  text-decoration: underline; 
}

/* Email con hint de copiar */
.copy-email {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.copy-hint {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
  padding: 3px 8px;
  border-radius: 12px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.copy-email:hover .copy-hint {
  color: var(--ice);
  background: rgba(57, 200, 255, 0.15);
  transform: scale(1.05);
}

.cta-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
}
.cta-list li {
  margin: 10px 0;
  font-weight: bold;
  color: var(--ice);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.cta-list li::before {
  content: "✅";
  font-size: 12px;
}

/* ===== TOAST DE NOTIFICACIÓN ===== */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(21, 33, 49, 0.95);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 30px;
  border: 1px solid var(--ice);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  font-size: 14px;
  font-weight: 500;
  z-index: 2000;
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ===== FOOTER ===== */
.pdf-footer {
  text-align: center;
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
}

.partner-banner {
    margin-top: 30px;
    padding: 25px;

    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 18px;

    display: flex;
    align-items: center;
    gap: 25px;
}

.partner-logo img {
    width: 110px;
    border-radius: 12px;
}

.partner-info {
    flex: 1;
}

.partner-name {
    color: var(--white);
    font-size: 34px;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.partner-slogan {
    color: var(--ice); /* mismo celeste que Contacto Directo */
    font-size: 22px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 15px;
}

.partner-description {
    color: var(--text);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
    max-width: 700px;
}

.partner-contact {
    color: var(--white);
    line-height: 2;
}

.partner-contact a {
    color: var(--ice);
    text-decoration: none;
    font-weight: 600;
}

.partner-contact a:hover {
    text-decoration: underline;
}

/* ===== RESPONSIVE: MÓVIL ===== */
@media (max-width: 600px) {
  .page-container {
    padding: 30px 20px;
  }

  .gallery-img {
    height: 160px;
    border-radius: 8px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .modal-content {
    max-width: 95%;
  }
  
  .copy-hint {
    font-size: 10px;
    padding: 2px 6px;
  }
  
  .toast {
    bottom: 20px;
    padding: 10px 20px;
    font-size: 13px;
  }

   .partner-banner {
        flex-direction: column;
        text-align: center;
    }

    .partner-logo img {
        width: 90px;
    }

    .partner-name {
        font-size: 28px;
    }

    .partner-slogan {
        font-size: 18px;
    }

    .partner-description {
        font-size: 13px;
    }
}
