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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  /*background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);*/
  background: linear-gradient(135deg, #003DA6 0%, #0047c7 100%);
  min-height: 100vh;
  color: #2c3e50;
}

/* Header para logos institucionales */
.header {
  /*background: white;*/
  /*padding: 30px 20px;*/
  /*box-shadow: 0 2px 10px rgba(0,0,0,0.1);*/
  text-align: center;
  /*border-bottom: 4px solid #003DA6;*/
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: flex-start; /* Cambiado de center a flex-start */
  padding: 0 20px; /* Añade padding para separar del borde */
}

.logo-placeholder {
  height: 100%; /* Ocupa toda la altura disponible */
  display: flex;
  align-items: center;
}

.logo-placeholder img {
  height: 120px;
  width: auto;
  object-fit: contain;
  transform: scale(1.5); /* Ajusta este valor según necesites */
  transform-origin: left center; /* Mantiene el anclaje a la izquierda y centro vertical */
  margin: 40px 0; /* Añade un pequeño margen vertical */
}

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

.main-title {
  text-align: center;
  margin-bottom: 20px;
}

.main-title h1 {
  font-size: 2.5em;
  color: #e9ecef;
  margin-bottom: 10px;
  font-weight: 600;
}

.main-title p {
  font-size: 1.1em;
  color: #f8f9fa;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Grid de encuestas */
.surveys-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.survey-card {
  background: white;
  border-radius: 12px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.07);
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.survey-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #003DA6, #0052d6);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.survey-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 61, 166, 0.15);
  border-color: #003DA6;
}

.survey-card:hover::before {
  transform: scaleX(1);
}

.survey-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #003DA6, #0047c7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: white;
  transition: all 0.3s ease;
}

.survey-card:hover .survey-icon {
  transform: scale(1.1) rotate(5deg);
}

.survey-card h2 {
  font-size: 1.4em;
  color: #2c3e50;
  margin-bottom: 15px;
  font-weight: 600;
}

.survey-card p {
  color: #7f8c8d;
  line-height: 1.6;
  margin-bottom: 25px;
  font-size: 0.95em;
}

.survey-button {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(135deg, #003DA6, #0047c7);
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  font-size: 1em;
}

.survey-button:hover {
  background: linear-gradient(135deg, #002d7a, #003DA6);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 61, 166, 0.4);
}

/* Colores corporativos para cada encuesta */
.survey-card:nth-child(1) .survey-icon {
  background: linear-gradient(135deg, #003DA6, #0047c7);
}

.survey-card:nth-child(1):hover {
  border-color: #003DA6;
  box-shadow: 0 12px 24px rgba(0, 61, 166, 0.15);
}

.survey-card:nth-child(1) .survey-button {
  background: linear-gradient(135deg, #003DA6, #0047c7);
}

.survey-card:nth-child(1) .survey-button:hover {
  background: linear-gradient(135deg, #002d7a, #003DA6);
}

.survey-card:nth-child(2) .survey-icon {
  background: linear-gradient(135deg, #FF671D, #ff7d3d);
}

.survey-card:nth-child(2):hover {
  border-color: #FF671D;
  box-shadow: 0 12px 24px rgba(255, 103, 29, 0.15);
}

.survey-card:nth-child(2) .survey-button {
  background: linear-gradient(135deg, #FF671D, #ff7d3d);
}

.survey-card:nth-child(2) .survey-button:hover {
  background: linear-gradient(135deg, #e55a19, #FF671D);
}

.survey-card:nth-child(3) .survey-icon {
  background: linear-gradient(135deg, #7E57C5, #9069d6);
}

.survey-card:nth-child(3):hover {
  border-color: #7E57C5;
  box-shadow: 0 12px 24px rgba(126, 87, 197, 0.15);
}

.survey-card:nth-child(3) .survey-button {
  background: linear-gradient(135deg, #7E57C5, #9069d6);
}

.survey-card:nth-child(3) .survey-button:hover {
  background: linear-gradient(135deg, #6b49ab, #7E57C5);
}

.survey-card:nth-child(4) .survey-icon {
  background: linear-gradient(135deg, #F6BC21, #f8c63d);
}

.survey-card:nth-child(4):hover {
  border-color: #F6BC21;
  box-shadow: 0 12px 24px rgba(246, 188, 33, 0.15);
}

.survey-card:nth-child(4) .survey-button {
  background: linear-gradient(135deg, #F6BC21, #f8c63d);
}

.survey-card:nth-child(4) .survey-button:hover {
  background: linear-gradient(135deg, #dda91d, #F6BC21);
}

/* Footer */
.footer {
  text-align: center;
  padding: 40px 20px;
  color: #7f8c8d;
  font-size: 0.9em;
}

/* Responsive */
@media (max-width: 768px) {
  .main-title h1 {
    font-size: 2em;
  }

  .surveys-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .survey-card {
    padding: 30px 20px;
  }

   /* Estilos responsive para el header */
  .header-content {
    justify-content: center; /* Centra el logo */
    padding: 10px 20px;
  }

  .logo-placeholder {
    margin: 10px 0; /* Ajusta el margen si es necesario */
  }

  .logo-placeholder img {
    height: 110px; /* Reduce el tamaño base */
    transform: scale(1.2); /* Reduce el escalado */
    transform-origin: center center; /* Centra la transformación */
  }
}
