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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #2F2F2F;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

p {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
    color: #2F2F2F;
    margin-bottom: 1rem;
}

/* Navbar */
.bg-azul-oscuro {
    background-color: #003366 !important;
}


/* --- Estilos de la página de Contacto --- */
.contact-section {
    padding: 60px 0;
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
}

.contact-section h1 {
    font-size: 2.5em;
    font-weight: 400;
    color: #7e97d4;
    margin-bottom: 20px;
    text-align: center;
}

.contact-section h2 {
    color: #1b4075;
    margin-top: 20px;
    font-size: 1.5em;
    font-weight: 500;
}

.contact-section .list-unstyled h5 {
    color: #1b4075; 
    margin-top: 0; 
    margin-bottom: 5px; 
    
}

.contact-section ul {
    list-style: none;
    padding: 0;
}

.contact-section li {
    margin-bottom: 10px;
}

.contact-section a {
    color: #004784;
    font-weight: 400;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.contact-section a:hover {
    color: #3E9FB2;
}

.contact-section figure {
    margin-top: 40px;
}

.contact-section figure img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-section figcaption {
    margin-top: 10px;
    font-style: italic;
    color: #666;
}

/* --- Estilos de la página Institucional --- */
.institutional-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), #003366;
    color: white;
    padding: 100px 0;
    text-align: center;
    max-width: none;
}

.hero-content {
    max-width: 960px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 2em;
    font-weight: 500;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2em;
    max-width: 700px;
    margin: 0 auto;
    color: white;
    font-weight: 300;
}

.institutional-section {
    padding: 60px 0;
}

.institutional-section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #357DBC;
    position: relative;
    font-weight: 500;
    font-size: 1.5em;
}

.institutional-section h2:after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: #0066cc;
    margin: 15px auto;
}

.section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    color: #6c757d;
}

.history-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.history-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.values-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.value-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
}

.value-card i {
    font-size: 2.5rem;
    color: #0066cc;
    margin-bottom: 20px;
}

.value-card h3 {
    margin-bottom: 15px;
    color: #2c3e50;
    font-weight: 500;
}

.value-card ul {
    text-align: left;
    list-style-type: none;
    padding: 0;
}

.value-card ul li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.value-card ul li:before {
    content: '✓';
    color: #28a745;
    position: absolute;
    left: 0;
}

.card-img-top {
  height: 200px;  
  object-fit: cover;
  width: 100%;
}

.doctor-img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  margin: 20px auto 10px auto;
  display: block;
}


/* --- Botones --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    color: white;
    text-decoration: none;
    border-radius: 24px;
    font-weight: 400;
    transition: background 0.3s ease;
}

.btn-primary {
    background: #0066cc;
}

.btn-primary:hover {
    background: #0054A8;
}

.btn-secondary {
    background: #54B8CC;
}

.btn-secondary:hover {
    background: #3E9FB2
}

.btn-custom {
  background-color: #003366; 
  color: white;              
  border-color: #003366;
}

.btn-custom:hover {
  background-color: #0b5ed7; 
  border-color: #0a58ca;
}
