:root {
    --primary-dark: #1e293b; 
    --bg-banner: #1e3a8a; 
    --accent-blue: #00b4d8; 
    --text-main: #1f2937;
    --text-muted: #4b5563;
    --bg-light: #f1f5f9; 
    --border-color: #cbd5e1;
    --btn-blue: #0000ff;
    --btn-blue-hover: #0000cc;
}

* {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

html {
    height: 100%;
    margin: 0;
}

footer { 
    margin-top: auto; 
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    min-height: 100vh; 
    margin: 0; 
}

header {
    background-color: var(--primary-dark);
    color: white;
    padding: 20px 40px; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.header-brand h2 {
    margin: 0;
    font-size: 22px;
    letter-spacing: 0.5px;
    font-weight: 600;
    color: white;
    line-height: 0.8;
}

.header-brand span {
    font-size: 15px;
    color: var(--accent-blue);
    letter-spacing: 2.6px;
    display: block;
    font-weight: 600;
    margin-top: 1px;
    line-height: 0.8;
}

.web-text-only {
    font-size: 13px;
    color: var(--accent-blue);
    display: block;
    margin-top: 1px;
    line-height: 0.8;
}

.header-contact {
    text-align: right;
    font-size: 15px; 
    font-weight: 600;
    letter-spacing: 1.5px;
    align-self: flex-start; 
    margin-top: 2px;       
}

.header-contact a {
    color: white;
    text-decoration: none;
    transition: color 0.2s;
}

.header-contact .contact-highlight {
    color: var(--accent-blue);
    font-weight: bold;
}

.section-container {
    width: 100%;
    max-width: 100%; 
    margin: 0 auto;
    padding: 20px 20px 20px 20px;
    justify-content: center;
    display: flex;
    flex-direction: column; 
    flex: 1;     
}

.systems-grid {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 5px;
    flex: 1;
    flex-direction: column;
}

.system-card {
    background: white;
    border-radius: 12px;
    padding: 10px;
    box-sizing: border-box; 
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
    
    width: 100%;
    margin-bottom: 5px;    
    
    flex: 1; 
}

.system-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.code-logo-pchotel {
    width: 32px;
    height: 32px;
    object-fit: contain; 
    border-radius: 4px;
    flex-shrink: 0;
}

.system-title-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.system-title {
    font-size: 22px;
    color: #0f172a;
    margin: 0;
    font-weight: 700;
}

.system-desc {
    color: var(--text-main);
    font-size: 14px;
    line-height: 1.2;
    text-align: justify;
    margin-bottom: 20px;
    width: 100%;
}

.system-desc p {
    margin: 0 0 15px 0;
}

.system-desc p:last-child {
    margin-bottom: 0;
}

.system-desc strong {
    color: var(--bg-banner);
}

.card-main-image {
    float: right;
    width: 48%; 
    max-width: 500px;
    height: auto;
    margin-left: 25px; 
    margin-bottom: 25px; 
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid var(--border-color);
}

.card-actions {
    clear: both; 
    margin-top: auto; 
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center; 
    padding-top: 10px;
}

.cta-button {
    background-color: var(--btn-blue);
    color: white;
    text-decoration: none;
    padding: 8px 8px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 14px;
    border: none;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.2s ease;
}

.cta-button:hover {
    background-color: var(--btn-blue-hover);
}

.pdf-container {
    display: flex;      
    flex-direction: column;
    flex: 1;            
    width: 100%;
    height: calc(100vh - 180px); /* Usa el 100% de la pantalla menos el header/footer */
    min-height: 500px; 
    border-radius: 8px;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
}

footer {
    background-color: var(--primary-dark);
    color: #94a3b8;
    text-align: center;
    padding: 20px;
    font-size: 13px;
    border-top: 1px solid #334155;
    margin-top: auto; 
}

@media (max-width: 768px) {
  header { 
    flex-direction: column; 
    gap: 15px; 
    text-align: center; 
    padding: 10px; 
  }

  .header-contact { 
    text-align: center; 
    font-size: 15px;
    align-self: center; 
  }

  .section-container {
    padding: 20px 10px 10px 10px; 
  }

  .card-main-image {
    float: none;
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 20px auto 10px auto; 
  }

  .system-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
  }

  .system-title-box {
    flex-direction: column;
    align-items: flex;
    gap: 15px;
  }

  .system-desc {
    text-align: left; 
    font-size: 14px;
  }
     
  .card-header { 
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
  }
    
  .card-actions {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  
  .cta-button {
    width: 100%;
    max-width: 340px; 
    padding: 8px 8px;
    font-size: 12px;
  }
}
