/* PANEL DE CONTACTO */
.contacto-panel {
    max-width: 750px;               /* más ancho */
    margin: 3rem auto;
    padding: 2.5rem 3rem;           /* más espacio interno */
    background: #f9fafc;
    border-left: 6px solid #0c3b6c;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.contacto-panel h2 {
    text-align: center;
    color: #0c3b6c;
    margin-bottom: 0.6rem;
    font-size: 1.6rem;              /* título más grande */
}

.contacto-descripcion {
    text-align: center;
    color: #555;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

/* FORMULARIO */
.form-contacto {
    display: flex;
    flex-direction: column;
    gap: 1.3rem;                    /* más separación */
}

.form-contacto .campo {
    display: flex;
    flex-direction: column;
}

.form-contacto label {
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: #333;
    font-size: 1rem;
}

.form-contacto input,
.form-contacto textarea {
    padding: 0.85rem 1rem;          /* inputs más altos */
    border-radius: 7px;
    border: 1px solid #ccc;
    font-size: 1.05rem;             /* texto más grande */
    font-family: inherit;
}

.form-contacto textarea {
    resize: vertical;
    min-height: 140px;              /* textarea más alto */
}

.form-contacto input:focus,
.form-contacto textarea:focus {
    outline: none;
    border-color: #0c3b6c;
    box-shadow: 0 0 6px rgba(12, 59, 108, 0.3);
}

/* BOTÓN */
.btn-enviar {
    margin-top: 1.5rem;
    align-self: center;
    padding: 0.9rem 3rem;           /* botón más grande */
    background: #0c3b6c;
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 1.05rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn-enviar:hover {
    background: #092f56;
    transform: translateY(-2px);
}

/* HERO pantalla completa */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.6)),
                url('img/portada1.jpg') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

/* Contenido centrado */
.hero-overlay {
    animation: fadeIn 2s ease-in-out;
}

/* Título principal */
.titulo-animado {
    font-size: 5em;
    font-weight: 100;
    opacity: 0;
    transform: translateY(30px);
    animation: aparecer 1.5s ease forwards;
}

/* Color bonito al nombre */
.titulo-animado span {
    color: #00d4ff;
}

/* Subtítulo */
.subtitulo {
    margin-top: 12px;
    font-size: 1.4em;
    opacity: 0;
    animation: aparecer 2s ease forwards;
    animation-delay: 0.25s;
}

/* Animaciones */
@keyframes aparecer {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
/* Fondo oscuro */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Caja */
.popup {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  width: 90%;
  max-width: 500px;
  border-radius: 15px;
  padding: 20px;
  animation: aparecer 0.4s ease;
  position: relative;
}

/* Animación */
@keyframes aparecer {
  from { transform: translateY(-40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Botón cerrar */
.cerrar {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 25px;
  cursor: pointer;
}

/* Noticias */
.contenedor-noticias {
  max-height: 800px;
  overflow-y: auto;
}

.noticia {
  border-bottom: 1px solid #ddd;
  padding: 10px 0;
}

.noticia h3 {
  margin: 0;
  font-size: 24px;
}
.noticia p {
  font-size: 20px;
  color: #555;
}

/* Botón */
.btn-noticia {
  display: inline-block;
  margin-top: 5px;
  padding: 6px 12px;
  background: #007BFF;
  color: white;
  border-radius: 6px;
  text-decoration: none;
  transition: 0.3s;
}

.btn-noticia:hover {
  background: #0056b3;
}
.cerrar {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 35px;
  height: 35px;
  background: #ff4d4d;
  color: white;
  font-size: 20px;
  font-weight: bold;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.cerrar:hover {
  background: #cc0000;
  transform: scale(1.1);
}
