:root {
    --primary: #0b5394;
    --secondary: #3d85c6;
    --accent: #f1c232;
    --light: #f9f9f9;
    --dark: #333;
    --gray: #f0f0f0;
    --white: #ffffff;
    --shadow: 0 4px 12px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Nunito', 'Segoe UI', sans-serif;
}

body {
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
}
* {box-sizing: border-box;}

.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 10px;
}


header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background-color: var(--primary);
    color: var(--white);
    padding: 10px 0;
}

.contact-info {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
    font-size: 14px;
}

.contact-info a {
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 80px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text h1 {
    color: var(--primary);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
}

.logo-text p {
    color: var(--secondary);
    font-size: 16px;
    font-style: italic;
}

/* Menú de navegación */
nav {
    background-color: var(--primary);
}

.menu {
    display: flex;
    justify-content: center;
    list-style: none;
}

.menu-item {
    position: relative;
}

.menu-link {
    display: block;
    color: var(--white);
    text-decoration: none;
    padding: 10px 15px;
    font-weight: 600;
    transition: var(--transition);
}

.menu-link:hover {
    background-color: var(--secondary);
}

.menu-item:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu {
    position: absolute;
    background-color: var(--white);
    min-width: 200px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: var(--transition);
    z-index: 100;
    border-radius: 0 0 4px 4px;
    text-decoration: none;
}

.submenu-link {
    display: block;
    color: var(--dark);
    text-decoration: none;
    padding: 12px 20px;
    transition: var(--transition);
    border-bottom: 1px solid var(--gray);
}

.submenu-link:hover {
    background-color: var(--gray);
    color: var(--primary);
    padding-left: 25px;
}
.nombre {
    display: block;
    color: var(--white);
    text-decoration: none;
    padding: 10px 15px;
    font-weight: 600;
    transition: var(--transition);
    text-align:right ;
}


.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    background-size: cover;
    background-position: center;
}

.hero-slide.active {
    opacity: 1;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--white);
    width: 80%;
    max-width: 800px;
    padding: 30px;
    background-color: rgba(11, 83, 148, 0.8);
    border-radius: 8px;
}

.hero-content h2 {
    font-size: 42px;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
}

.hero-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--accent);
    color: var(--dark);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: var(--transition);
}

.hero-btn:hover {
    background-color: #e0b12d;
    transform: translateY(-3px);
}

.slide-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.indicator {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active {
    background-color: var(--white);
    transform: scale(1.2);
}


.section {
    padding: 40px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title h2 {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 15px;
}

.section-title p {
    font-size: 18px;
    color: var(--secondary);
    max-width: 700px;
    margin: 0 auto;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent);
}


.main-content {
    display: grid;
    grid-template-columns: 3fr 1fr ;
    gap: 30px;
    margin-top: 30px;
}

.card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card-header {
    background-color: var(--primary);
    color: var(--white);
    padding: 15px 20px;
}

.card-header h3 {
    font-size: 22px;
    font-weight: 600;
}

.card-body {
    padding: 20px;
}


.article {
    margin-bottom: 25px;
    border-bottom: 1px solid var(--gray);
    padding-bottom: 25px;
}

.article:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.article-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 10px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    color: #777;
    margin-bottom: 10px;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-content {
    font-size: 15px;
    line-height: 1.6;
}

.article-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--secondary);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.article-link:hover {
    color: var(--primary);
}


.featured-news {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.featured-item {
    display: flex;
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.featured-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.featured-image {
    flex: 0 0 40%;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-content {
    flex: 0 0 60%;
    padding: 20px;
}

.featured-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 10px;
}

.featured-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    color: #777;
    margin-bottom: 10px;
}

.featured-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.featured-excerpt {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 15px;
}


.cta-section {
    background-color: var(--primary);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 32px;
    margin-bottom: 20px;
}

.cta-text {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--accent);
    color: var(--dark);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: var(--transition);
}

.cta-btn:hover {
    background-color: #e0b12d;
    transform: translateY(-3px);
}


.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-item {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    padding: 30px 20px;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 20px;
}

.feature-title {
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 15px;
}

.feature-text {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
}


footer {
    background-color: var(--dark);
    color: var(--light);
    padding-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--white);
    font-size: 20px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
    display: block;
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
}

.contact-icon {
    font-size: 18px;
    color: var(--accent);
}

.contact-text {
    line-height: 1.4;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--accent);
    transform: translateY(-3px);
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 15px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    color: #aaa;
}

/* Botón de volver arriba */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--secondary);
}

/* Responsive */
@media screen and (max-width: 991px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .hero {
        height: 500px;
    }
    
    .hero-content h2 {
        font-size: 32px;
    }
}

@media screen and (max-width: 768px) {
    .header-main {
        flex-direction: column;
        text-align: center;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    .featured-item {
        flex-direction: column;
    }
    
    .featured-image {
        flex: 0 0 100%;
        height: 200px;
    }
    
    .featured-content {
        flex: 0 0 100%;
    }
    
    .hero {
        height: 400px;
    }
    
    .hero-content h2 {
        font-size: 28px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
}
.input{
    height: 20px;
    width: 200px;
    border-radius: 11px;
    padding: 10px;
    box-shadow: 0 3px #AAA;
}
.t_crud{
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
  border: 1px solid #ddd;
}

.t_crud th {
  text-align: center;
  padding: 10px;
  background-color: var(--primary);
  color: white;
}
.t_crud td {
  text-align: left;
  padding: 10px;
}

.t_crud tr:nth-child(even) {
  background-color: #f2f2f2;
}

/* Button used to open the contact form - fixed at the bottom of the page */
.open-button {
  background-color: #555;
  color: white;
  padding: 16px 20px;
  border: none;
  cursor: pointer;
  opacity: 0.8;
  position: fixed;
  bottom: 23px;
  right: 28px;
  width: 280px;
}

/* The popup form - hidden by default */
.form-popup {
  display: none;
  position: fixed;
  bottom: 0;
  right: 15px;
  border: 3px solid #f1f1f1;
  z-index: 9;
}

/* Add styles to the form container */
.form-container {
  max-width: 300px;
  padding: 10px;
  background-color: white;
}

/* Full-width input fields */
.form-container input[type=text], .form-container input[type=password] .form-container select {
  width: 100%;
  padding: 10px;
  margin: 5px 0 20px 0;
  border: none;
  background: #f1f1f1;
  border-radius: 11px;
}

/* When the inputs get focus, do something */
.form-container input[type=text]:focus, .form-container input[type=password]:focus .form-container select:focus {
  background-color: #ddd;
  outline: none;
}

/* Set a style for the submit/login button */
.form-container .btn {
  background-color: var(--primary);
  color: white;
  padding: 8px 12px;
  border: none;
  cursor: pointer;
  width: 60%;
  margin-bottom:10px;
  border-radius: 15px;
  opacity: 0.8;

}

/* Add a red background color to the cancel button */
.form-container .cancel {
  background-color: red;
}

/* Add some hover effects to buttons */
.form-container .btn:hover, .open-button:hover {
  opacity: 1;
}
.pie td{
    padding: 10px;
}
.boton{  /* booton del mensaje de alerta */
        background: var(--primary);
        border: none;
        border-radius: 11px;
        font-size: 16px;
        padding: 5px 20px 5px;
        box-shadow: 0 3px #AAA;
        color:white;
        text-align: center;
    }
    .boton:hover {
        background-color: #093384;
    }
    .boton:active {
      background-color: #093384;
      box-shadow: 0 0px #666;
      transform: translateY(3px);
    }

    
    /* Center the image and position the close button */
    .imgcontainer {
      text-align: center;
      margin: 12px 0 6px 0;
      position: relative;
    }

    img.avatar {
      width: 10%;
      border-radius: 10%;
    }

    .containeralert {  /* Contenedor del mensaje de alerta */
      padding: 10px;
      text-align: centrer;
      color:black;
      justify-content: center;
    }

    /* The Modal (background) */
    .modalalert { /* Formulario modal del mensaje de alerta */
      position: absolute; /* Stay in place */
      justify-self: center;
      min-width: 20vw; /* Full width */
      min-height: 20vh; /* Full height */
      max-width: 35vw;
      overflow: auto; /* Enable scroll if needed */
      background-color: rgba(233,242,243,0.8); /* Black w/ opacity */
      padding: 10px 40px 10px;
      margin: auto;
      border: 2px solid #0b5394;
      border-radius: 25PX;
        
      
    }

    /* Modal Content/Box */
    .modalalert-content { /* Formulario modal del mensaje de alerta */
      background-color: #fefefe;
      margin: 5% auto 15% auto; /* 5% from the top, 15% from the bottom and centered */
      border: 1px solid #888;
      width: 60%; /* Could be more or less, depending on screen size */
    }

    /* The Close Button (x) */
    /* Add Zoom Animation */
    .animate { /* Formulario modal del mensaje de alerta */
      -webkit-animation: animatezoom 0.6s;
      animation: animatezoom 0.6s
    }

    @-webkit-keyframes animatezoom { 
      from {-webkit-transform: scale(0)} 
      to {-webkit-transform: scale(1)}
    }
      
    @keyframes animatezoom { /* Formulario modal del mensaje de alerta */
      from {transform: scale(0)} 
      to {transform: scale(1)}
    }

    /* Change styles for span and cancel button on extra small screens */
    @media screen and (max-width: 300px) { 
      
    }   

/* lo mas nuevo  */

    /* Modal Content/Box */
    .modalalert-content { /* Formulario modal del mensaje de alerta */
      background-color: #fefefe;
      margin: 5% auto 15% auto; /* 5% from the top, 15% from the bottom and centered */
      border: 1px solid #888;
      width: 60%; /* Could be more or less, depending on screen size */
    }

    /* The Close Button (x) */
    /* Add Zoom Animation */
    .animate { /* Formulario modal del mensaje de alerta */
      -webkit-animation: animatezoom 0.6s;
      animation: animatezoom 0.6s
    }

    @-webkit-keyframes animatezoom { 
      from {-webkit-transform: scale(0)} 
      to {-webkit-transform: scale(1)}
    }
      
    @keyframes animatezoom { /* Formulario modal del mensaje de alerta */
      from {transform: scale(0)} 
      to {transform: scale(1)}
    }

    /* Change styles for span and cancel button on extra small screens */
    @media screen and (max-width: 300px) { 
      
    } 

.item{
    width:80%;
    background: lightblue;
    border-radius: 21px;
    padding: 20px;
    justify-content: center;
}
.file-select {
  position: relative;
  display: inline-block;
}

.file-select::before {
  background-color: darkblue;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 5px;
  content: 'Seleccionar Archivo PDF'; /* testo por defecto */
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
}

.file-select input[type="file"] {
  opacity: 0;
  width: 100px;
  height: 32px;
  display: i

}
.editar{
    background-color: #219502;
    color: white;
    border: none;
    border-radius: 7px;
    padding: 4px 10px 4px 10px;
    font-size: 16px;
}
.borrar{
    background-color: red ;
    color: white;
    border: none;
    border-radius: 7px;
    padding : 4px 10px 4px 10px;
    font-size: 16px;
}
.nuevo{
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 7px;
    padding : 6px 10px 6px 10px;
    font-size: 16px;
}
.restablecer{
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 7px;
    padding : 4px 10px 4px 10px;
    font-size: 16px;
}