/* Contacto - Animaciones de entrada */
@keyframes contacto-fade-in-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contacto-title {
  opacity: 0;
  animation: contacto-fade-in-up 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s forwards;
}

.contacto-subtitle {
  opacity: 0;
  animation: contacto-fade-in-up 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s forwards;
}

.contacto-info-item:nth-child(1) {
  opacity: 0;
  animation: contacto-fade-in-up 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s forwards;
}

.contacto-info-item:nth-child(2) {
  opacity: 0;
  animation: contacto-fade-in-up 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s forwards;
}

.contacto-form-wrap {
  opacity: 0;
  animation: contacto-fade-in-up 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.25s forwards;
}

/* Contacto - Sección principal */
.contacto-main {
  background-color: #ffffff;
}

.contacto-section {
  background-color: #ffffff;
  padding: 40px 151px 100px 153px;
  border-radius: 40px 40px 0 0;
}

.contacto-inner {
  display: grid;
  grid-template-columns: 572px 1fr;
  grid-template-rows: auto;
  gap: 0 182px;
  align-items: start;
  max-width: 1210px;
  margin: 0 auto;
}

.contacto-left {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.contacto-form-wrap {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  max-width: 456px;
}

.contacto-content {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.contacto-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 500;
  font-size: 80px;
  line-height: 1;
  letter-spacing: -0.8px;
  color: #1e1e1e;
}

.contacto-title .accent {
  font-weight: 700;
  font-style: italic;
  color: #008287;
}

.contacto-subtitle {
  font-size: 19px;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: -0.02em;
  color: #2d2d2d;
  max-width: 38em;
}

.contacto-subtitle p {
  margin: 0 0 1em;
}

.contacto-subtitle p:last-child {
  margin-bottom: 0;
}

.contacto-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contacto-info-item {
  display: flex;
  gap: 16px;
  align-items: center;
}

.contacto-info-icon {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  background-color: #ccedee;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contacto-info-icon img {
  width: 26px;
  height: 26px;
  display: block;
}

.contacto-info-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contacto-info-label {
  font-size: 16px;
  font-weight: 500;
  line-height: 26px;
  letter-spacing: -0.14px;
  color: #008287;
}

.contacto-info-value-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contacto-info-value {
  font-size: 18px;
  font-weight: 600;
  line-height: 26px;
  letter-spacing: -0.16px;
  color: #1e1e1e;
  text-decoration: none;
  transition: color 0.2s;
}

.contacto-info-value:hover {
  color: #008287;
}

.contacto-info-copy {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
}

.contacto-info-copy img {
  width: 16px;
  height: 16px;
  display: block;
}

.contacto-copy-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  padding: 6px 10px;
  background: #002829;
  color: white;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  border-radius: 6px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  pointer-events: none;
  z-index: 10;
}

.contacto-copy-tooltip.visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-8px);
}

.contacto-copy-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -4px;
  border: 4px solid transparent;
  border-top-color: #002829;
}

/* Formulario */
.contacto-form-wrap {
  background-color: #e5f2f3;
  border-radius: 26px;
  padding: 40px 32px;
}

.contacto-form {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contacto-form .contacto-form-fields {
  font-weight: 200;
}

.contacto-form-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contacto-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contacto-field label {
  font-size: 14px;
  font-weight: 500;
  line-height: 26px;
  letter-spacing: -0.14px;
  color: rgba(0, 40, 41, 0.85);
}

.contacto-field input,
.contacto-field textarea {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  padding: 12px 16px;
  background: white;
  border: 1px solid #ccedee;
  border-radius: 8px;
  color: #1e1e1e;
  transition: border-color 0.2s;
}

.contacto-field input:focus,
.contacto-field textarea:focus {
  outline: none;
  border-color: #008287;
}

.contacto-field input::placeholder,
.contacto-field textarea::placeholder {
  color: rgba(0, 40, 41, 0.5);
}

.contacto-field textarea {
  min-height: 100px;
  resize: vertical;
}

.contacto-checkbox-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  line-height: 22px;
  letter-spacing: -0.13px;
  color: rgba(0, 40, 41, 0.85);
}

.contacto-checkbox-wrap input {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  accent-color: #008287;
}

.contacto-checkbox-wrap strong {
  font-weight: 600;
}

.contacto-checkbox-wrap a {
  color: #008287;
  text-decoration: none;
}

.contacto-checkbox-wrap a:hover {
  color: #008287;
  text-decoration: underline;
}

.contacto-submit {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 400;
  font-size: 18px;
  letter-spacing: -0.18px;
  color: white;
  background-color: #002829;
  border: none;
  border-radius: 30px;
  padding: 14px 24px;
  height: 53px;
  cursor: pointer;
  transition: background-color 0.2s, opacity 0.2s;
}

.contacto-submit:hover {
  background-color: #004a4c;
  opacity: 0.95;
}

/* Footer en página contacto: sin card, padding ajustado */
.contacto-footer {
  position: relative;
  z-index: 2;
  padding-top: 0;
}
.contacto-footer .frecuencia-inner {
  padding-top: 0;
}

.contacto-footer .frecuencia-footer {
  padding-top: 64px;
}

@media (max-width: 768px) {
  .contacto-footer {
    padding-top: 0;
  }
  .contacto-footer .frecuencia-footer {
    padding: 40px 0px 20px;
    gap: 48px;
  }
  .contacto-footer .frecuencia-footer-content {
    gap: 32px;
  }
  .contacto-footer .frecuencia-footer-nav {
    flex-direction: column;
    gap: 20px;
  }
  .contacto-footer .frecuencia-footer-nav a,
  .contacto-footer .frecuencia-footer-nav span {
    font-size: 22px;
  }
  .contacto-footer .frecuencia-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Responsive */
@media (max-width: 1400px) and (min-width: 1201px) {
  .contacto-inner {
    grid-template-columns: minmax(0, 420px) 1fr;
    grid-template-rows: auto;
    gap: 0 72px;
  }

  .contacto-form-wrap {
    max-width: none;
    min-width: 0;
  }

  .contacto-left {
    gap: 28px;
  }

  .contacto-content {
    gap: 20px;
  }

  .contacto-title {
    font-size: 64px;
    letter-spacing: -0.64px;
  }

  .contacto-subtitle {
    font-size: 17px;
    line-height: 1.65;
    letter-spacing: -0.02em;
  }
}

@media (max-width: 1200px) {
  .contacto-section {
    padding: 60px 60px 80px;
  }

  .contacto-inner {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 48px;
  }

  .contacto-left {
    grid-column: 1;
    grid-row: auto;
    max-width: none;
  }

  .contacto-form-wrap {
    grid-column: 1;
    grid-row: auto;
    max-width: none;
  }

}

@media (max-width: 1024px) {
  .contacto-section {
    padding: 120px 40px 64px;
  }

  .contacto-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contacto-form-wrap {
    grid-column: 1;
    grid-row: auto;
    max-width: none;
  }

  .contacto-left {
    gap: 32px;
  }

  .contacto-title {
    font-size: 48px;
  }
}

@media (max-width: 640px) {
  .contacto-section {
    padding: 104px 24px 48px;
    border-radius: 22px 22px 0 0;
  }

  .contacto-title {
    font-size: 36px;
  }

  .contacto-subtitle {
    font-size: 17px;
    font-weight: 400;
    line-height: 1.65;
    letter-spacing: -0.02em;
    color: #2d2d2d;
  }

  .contacto-form-wrap {
    padding: 24px 20px;
  }

  .contacto-info-icon {
    width: 64px;
    height: 64px;
  }

  .contacto-info-icon img {
    width: 26px;
    height: 26px;
  }

  .contacto-info-copy {
    width: 20px;
    height: 20px;
  }

  .contacto-info-copy img {
    width: 20px;
    height: 20px;
    display: block;
  }
}
