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

body {
  font-family: Arial, sans-serif;
  color: #333;
}


.top-bar {
  background-color: #f8f9fa;
  padding: 8px 0;
  border-bottom: 1px solid #e0e0e0;
}

.top-bar-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
  padding: 0 20px;
}

.top-bar-link {
  color: #2c5aa0;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.social-icons {
  display: flex;
  gap: 8px;
}

.social-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: #2c5aa0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  font-size: 14px;
}

header {
  background-color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  gap: 10px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-direction: column;
  align-items: flex-start;
}

.logo img {
  height: 72px;
  max-height: 100px;
  width: auto;
}

.logo-subtitle {
    font-size: 14px;
    color: #003c7a;
    font-weight: bold;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
}

nav {
  display: flex;
  gap: 16px;
  align-items: center;
}

.nav-item {
  color: #333;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  position: relative;
}

.nav-item::after {
  content: "▼";
  font-size: 10px;
  margin-left: 5px;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: white;
  min-width: 280px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  border-radius: 4px;
  padding: 10px 0;
  top: 100%;
  left: 0;
}

.dropdown-content a {
  color: #333;
  padding: 12px 20px;
  text-decoration: none;
  display: block;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.dropdown-content a:hover {
  background-color: #f0f7ff;
  color: #2c5aa0;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown:hover .nav-item {
  color: #2c5aa0;
}

.search-box {
  border: 1px solid #ddd;
  padding: 8px 15px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-box input {
  border: none;
  outline: none;
  width: 200px;
}

.hero {
  background: 
    linear-gradient(rgba(0, 60, 120, 0.4), rgba(0, 60, 120, 0.4)),
    url('images/serenazgo-chocope.png');
  background-size: cover;
  background-position: bottom;
  background-repeat: no-repeat;
  color: white;
  padding: 80px 20px;
  text-align: center;
}


.hero h1 {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero-subtitle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  font-size: 32px;
  font-weight: 500;
}

.phone-icon {
  width: 40px;
  height: 40px;
  background-color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #003c78;
}

.services-section {
  background-color: white;
  padding: 40px 20px;
}

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

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.service-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease;
  padding: 20px;
  border-radius: 8px;
}

.service-item:hover {
  transform: translateY(-5px);
}

.service-item.active {
  background-color: #f0f7ff;
}

.service-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}

.service-name {
  font-size: 14px;
  font-weight: bold;
  color: white;
  background-color: #2c3e7e;
  padding: 8px 20px;
  border-radius: 20px;
  text-transform: uppercase;
}

.service-item.active .service-name {
  background-color: #1a73e8;
}

.content-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

.section-title {
  font-size: 24px;
  font-weight: bold;
  color: #2c5aa0;
  border-left: 4px solid #1a73e8;
  padding-left: 15px;
  margin-bottom: 30px;
}

.service-content {
  display: none;
}

.service-content.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tabs {
  display: flex;
  gap: 0;
  margin-bottom: 30px;
  border-bottom: 2px solid #e0e0e0;
}

.tab {
  padding: 12px 30px;
  background-color: #f5f5f5;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  color: #666;
  transition: all 0.3s ease;
  border-radius: 8px 8px 0 0;
}

.tab.active {
  background-color: #1a73e8;
  color: white;
}

.tab:hover:not(.active) {
  background-color: #e8e8e8;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

.content-image {
  width: 60%;
  max-width: 600px;
  height: auto;
  margin: 20px 0;
  border-radius: 8px;
}

.content-text {
  line-height: 1.8;
  color: #555;
  margin-bottom: 15px;
}

footer {
  background-color: #f8f9fa;
  padding: 50px 20px 20px;
  border-top: 3px solid #2c5aa0;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 30px;
}

.footer-logo {
  display: flex;
  align-items: flex-start;
}

.footer-logo img {
  height: 100px;
}

.footer-column h3 {
  color: #2c5aa0;
  font-size: 16px;
  margin-bottom: 15px;
  font-weight: bold;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 8px;
}

.footer-column a {
  color: #555;
  text-decoration: none;
  font-size: 14px;
}

.footer-column a:hover {
  color: #2c5aa0;
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #ddd;
  color: #666;
  font-size: 14px;
}

.footer-contact {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 15px;
  }

  nav {
    flex-direction: column;
    gap: 10px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 20px;
    flex-direction: column;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .tabs {
    flex-direction: column;
  }

  .tab {
    border-radius: 8px;
    margin-bottom: 5px;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .top-bar-content {
    flex-direction: column;
    gap: 10px;
  }

  .dropdown-content {
    position: relative;
    box-shadow: none;
    border: 1px solid #e0e0e0;
    margin-top: 5px;
  }
}

@media (max-width: 480px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 24px;
  }
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-window {
  background: white;
  width: 90%;
  max-width: 800px;
  padding: 25px;
  border-radius: 12px;
  animation: fadeIn 0.4s ease;
  position: relative;
  text-align: center;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 15px;
  font-size: 22px;
  cursor: pointer;
  color: #333;
}

.modal-title {
  font-size: 22px;
  color: #2c5aa0;
  margin-bottom: 20px;
}

.modal-image {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 20px;
}

/* notis */

.btn-evento {
  display: inline-block;
  padding: 12px 22px;
  background: #2c5aa0;
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s ease;
}

.btn-evento:hover {
  background: #1b3f75;
}

/* BURBUJA DE EVENTO */
.event-bubble {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #1a73e8;
    color: white;
    padding: 12px 18px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.3);
    cursor: pointer;
    display: flex !important; 
    align-items: center;
    gap: 5px;
    animation: bubblePulse 1.8s infinite ease-in-out;
    display: none;
}

@keyframes bubblePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

/* página de eventos */
.events-hero {
    position: relative;
    height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

/* VIDEO DE FONDO */
.events-hero .hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

/* Sombra oscura encima del video */
.events-hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: -1;
}

.events-hero h1 {
  font-size: 38px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.events-hero p {
  font-size: 18px;
  opacity: 0.9;
}

/* Contenedor de eventos */
.events-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

/* Grid de cards */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 30px;
}

/* Card */
.event-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.2s ease;
  cursor: pointer;
}

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

.event-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.event-content {
  padding: 15px 20px;
}

.event-title {
  font-size: 18px;
  font-weight: bold;
  color: #2c5aa0;
  margin-bottom: 8px;
}

.event-date {
  font-size: 14px;
  color: #777;
  margin-bottom: 10px;
}

.event-desc {
  font-size: 14px;
  line-height: 1.6;
  color: #444;
  margin-bottom: 15px;
  white-space: pre-line;
}

.event-button {
  display: inline-block;
  padding: 8px 18px;
  background-color: #1a73e8;
  color: white;
  border-radius: 20px;
  text-decoration: none;
  font-size: 14px;
}

.event-button:hover {
  background-color: #0d5fcc;
}

/* Responsive */
@media (max-width: 480px) {
  .events-hero h1 { font-size: 26px; }
  .events-hero p { font-size: 14px; }
}

/* eventos */
.eventos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.event-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: 0.2s;
}

.event-card:hover {
    transform: scale(1.03);
}

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

.event-card-title {
    padding: 12px;
    font-size: 18px;
    font-weight: bold;
    color: #333;
}


/* MODAL */

.evento-modal-overlay {
    position: fixed;
    top: 0;  
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.65);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    backdrop-filter: blur(3px);
}

.evento-modal-window {
    background: white;
    width: 90%;
    max-width: 1100px;
    padding: 25px;
    border-radius: 14px;
    animation: fadeIn 0.3s ease;
}

.evento-modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    font-size: 34px;
    cursor: pointer;
}

.evento-detalle-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.evento-detalle-texto {
    flex: 1;
    min-width: 280px;
}

.evento-detalle-texto h2 {
    font-size: 28px;
    margin-bottom: 15px;
}

.evento-detalle-imagen img {
    width: 100%;
    max-width: 420px;
    max-height: 450px;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
}

.evento-detalle-botones {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 25px;
}

.evento-detalle-botones button {
    background: #2c5aa0;
    color: white;
    border: none;
    padding: 12px 22px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
}

@media (max-width: 768px) {
    .evento-detalle-wrapper {
        flex-direction: column;
        text-align: left;
        gap: 20px;
    }

.evento-detalle-imagen img {
    max-width: 100%;
    max-height: 350px;
    object-fit: cover;
}
}

/* estilos de los documentos del codisec */
.codisec-grid {
    margin-top: 25px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.codisec-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
    transition: 0.3s ease;
}

.codisec-card:hover {
    transform: translateY(-4px);
}

.codisec-card img {
    width: 110px;
    height: auto;
    margin-bottom: 10px;
    border-radius: 4px;
}

.codisec-title {
    font-size: 15px;
    font-weight: 600;
    margin: 10px 0 5px;
    color: #2c5aa0;
}

.codisec-meta {
    color: #555;
    font-size: 14px;
    margin-bottom: 15px;
}

.download-btn {
    width: 100%;
    border: 2px solid #0B57D0;
    background: transparent;
    padding: 10px;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #0B57D0;
}

.download-btn:hover {
    background: #0B57D0;
    color: #fff;
}

/* aca empieza forms */
.form-hero {
    background: url("../img/bgpoli.jpg") center/cover no-repeat;
    padding: 80px 20px;
    text-align: center;
    color: white;
    background-blend-mode: multiply;
    background-color: rgba(0,0,0,0.45);
}
.form-hero h1 {
    font-size: 38px;
    margin-bottom: 10px;
}
.form-hero p {
    font-size: 18px;
}

/* CONTENEDOR */
.formulario-container {
    max-width: 650px;
    margin: 40px auto;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* LABELS */
.formulario-container label {
    font-weight: bold;
    margin-top: 15px;
    display: block;
}

/* CAMPOS */
.formulario-container input,
.formulario-container textarea,
.formulario-container select {
    width: 100%;
    padding: 12px;
    margin-top: 6px;
    border-radius: 8px;
    border: 1px solid #bbb;
}

/* BOTÓN */
.formulario-container button {
    margin-top: 25px;
    padding: 14px;
    width: 100%;
    cursor: pointer;
    background: #003c82;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 17px;
    font-weight: bold;
    transition: 0.2s;
}

.formulario-container button:hover {
    background: #0050b8;
}


/* CONTACTO */
.contacto-hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
                url("media/images/serenazgo-chocope.png") center/cover no-repeat;
    text-align: center;
    padding: 70px 20px;
    color: white;
}

.contacto-hero h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.contacto-hero p {
    font-size: 18px;
    opacity: 0.9;
}

/* CONTENEDOR */
.contacto-container {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

.contacto-titulo {
    font-size: 24px;
    font-weight: bold;
    color: #2c5aa0;
    margin-bottom: 25px;
}

/* GRID */
.contacto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

/* CARDS */
.contacto-card {
    background: #fff;
    border-radius: 14px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: 0.25s ease;
}

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

.contacto-card h3 {
    font-size: 16px;
    color: #003c78;
    margin-bottom: 12px;
    height: 48px;
}

/* ÍCONO */
.card-icon {
    font-size: 34px;
    color: #1a73e8;
    margin-bottom: 10px;
}

/* NÚMERO */
.card-number {
    display: inline-block;
    margin-top: 8px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    color: #1a73e8;
}

.card-number:hover {
    text-decoration: underline;
}
