/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@font-face {
  font-family: "Sora";
  src: url(../fonts/Sora-VariableFont_wght.ttf) format("truetype");
}
@font-face {
  font-family: "ProMono";
  src: url(../fonts/TTNormsProMono-Medium.otf) format("opentype");
}

body {
  font-family: "Sora", sans-serif !important;
  background-color: #ffffff;
  /* Using dvh (dynamic viewport height) instead of vh for better mobile support */
  height: 100vh;
  overflow-x: hidden;
}

h3,
form,
.success-content p {
  font-family: "ProMono", sans-serif !important;
}

/* Background wrapper with white margins */
.background-wrapper {
  /* Using dvh instead of vh to account for mobile browser UI */
  height: 100vh;
  background-color: #ffffff;
  padding: 0 25px 0 25px;
  display: flex;
  flex-direction: column;
}

/* Content area with gray background and rounded corners */
.content-area {
  flex: 1;
  background-color: #cccccc;
  border-radius: 0 0 50px 50px;
  position: relative;
  /* Using dvh and ensuring it fills available space */
  height: calc(100vh - 25px);
  padding: 40px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Hamburger menu styles */
.menu-container {
  position: relative;
  z-index: 1100; /* Increased z-index to be above modals and overlay */
}

.hamburger-menu {
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  z-index: 1101; /* Increased z-index to be above modals and overlay */
}

.hamburger-menu span {
  display: block;
  width: 35px;
  height: 4px;
  background-color: #000000;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger-menu:hover span {
  background-color: #333333;
}

.hamburger-menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

/* Dropdown menu */
.dropdown-menu-custom {
  position: absolute;
  top: 60px;
  left: 0;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 10px 0;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1102; /* Added z-index to be above modals and overlay */
}

.dropdown-menu-custom.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu-custom .menu-item {
  display: block;
  padding: 12px 20px;
  color: #000000;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.dropdown-menu-custom .menu-item:hover {
  background-color: #f0f0f0;
}

/* Main content layout */
.main-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Changed from space-evenly to center for more predictable spacing */
  justify-content: center;
  flex: 1;
  /* padding-top: 20px; */
}

/* Added logo styles */
.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  flex-shrink: 1;
  /* Reduced negative margin for better mobile fit */
  margin-bottom: -130px;
}

.logo-yema {
  width: 100%;
  height: auto;
  display: block;
}

/* Buttons container */
.buttons-container {
  display: flex;
  gap: 100px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  flex-shrink: 0;
  /* Reduced margin for mobile */
  margin-bottom: 30px;
}

/* Custom button styles */
.btn-custom {
  background-color: transparent;
  text-decoration: none;
  border: none;
  color: #000000;
  font-size: 39px;
  font-weight: 900;
  text-decoration: none;
  padding: 0px 40px;
  transition: all 0.3s ease;
  letter-spacing: 2px;
  display: inline-block;
}

.btn-custom:hover {
  transform: scale(1.05);
  color: #333333;
}

.btn-cotiza {
  font-size: 39px;
}

.btn-trabaja {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  padding: 10px 40px;
}

.btn-trabaja-line1 {
  font-size: 39px;
}

.btn-trabaja-line2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
}

/* Social media icons */
.social-icons {
  display: flex;
  gap: 30px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  /* Removed bottom margin to save space */
  margin-bottom: 0;
}

.social-icons a {
  color: #000000;
  font-size: 26px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #ebff3c;
  border-radius: 50%;
}

.social-icons a:hover {
  transform: scale(1.15);
  filter: brightness(0.95);
}

/* Footer text */
.footer-text {
  text-align: center;
  padding: 20px 0;
  font-size: 14px;
  color: #000000;
  font-weight: 400;
}

/* Yellow overlay for animation */
.yellow-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  /* Changed to start as a perfect circle with fixed dimensions */
  width: 0;
  height: 0;
  background-color: #ebff3c;
  z-index: -1;
  /* Removed opacity transition, starts solid */
  opacity: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1), height 1s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.yellow-overlay.active {
  /* Expands as a perfect circle then fills the container */
  opacity: 1;
  width: 300vmax;
  height: 300vmax;
  z-index: 999;
}

.yellow-overlay.closing {
  /* Shrinks back to a perfect circle */
  opacity: 1;
  width: 0;
  height: 0;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1), height 1.2s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease 1s;
}

/* Modal styles */
.modal-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-container.active {
  opacity: 1;
  visibility: visible;
}

.modal-content-wrapper {
  border-radius: 30px;
  width: 100%;
  max-width: 1200px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 50px;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal-container.active .modal-content-wrapper {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 70px;
  background-color: #ffffff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  color: #000000;
  transition: all 0.3s ease;
  z-index: 10;
}

.modal-close:hover {
  background-color: #ebff3c;
  transform: rotate(90deg);
}

.modal-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Left column styles */
.modal-left {
  color: #000000;
  display: flex;
  flex-direction: column;
  gap: 40px;
  background-color: transparent;
}

.modal-text h2 {
  font-size: 20px;
  font-weight: 900;
  line-height: 1.2;
}

.modal-text p {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.4;
}

.modal-emoji {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.modal-emoji img {
  width: 150px;
  height: auto;
}

.emoji-face {
  width: 120px;
  height: 120px;
  position: relative;
}

.emoji-eyes {
  display: flex;
  gap: 25px;
  margin-bottom: 20px;
}

.eye {
  width: 20px;
  height: 20px;
  background-color: #000000;
  border-radius: 50%;
}

.emoji-smile {
  width: 60px;
  height: 30px;
  border: 4px solid #000000;
  border-top: none;
  border-radius: 0 0 60px 60px;
  margin-left: 5px;
}

/* Right column - Form styles */
.modal-right {
  background-color: #000000;
  border-radius: 30px;
  padding: 40px 100px;
  position: relative;
  margin-top: -49px;
  width: 600px;
}

.modal-right.success-message {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.success-content {
  text-align: center;
  width: 100%;
}

.success-content h2 {
  color: #ffffff;
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.3;
}

.success-subtitle {
  color: #ffffff;
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 40px;
}

.success-social-icons {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
}

.success-social-icons a {
  color: #000000;
  font-size: 32px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background-color: #ebff3c;
  border-radius: 50%;
}

.success-social-icons a:hover {
  transform: scale(1.15);
  filter: brightness(0.95);
}

.form-container h3 {
  color: #ffffff;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 30px;
  line-height: 1.3;
}

.form-group {
  margin-bottom: 10px;
}

.form-group label {
  display: block;
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 2px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 8px 13px;
  border: none;
  border-radius: 20px;
  background-color: #ffffff;
  color: #000000;
  font-size: 12px;
  font-family: inherit;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(235, 255, 60, 0.3);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-group select {
  padding-right: 10px; /* <-- Aquí está el padding-right de 10px */
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23000000' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center; /* <-- Y aquí la flecha posicionada a 10px del borde derecho */
}

.btn-submit {
  width: 50%;
  padding: 10px 30px;
  background-color: #ebff3c;
  color: #000000;
  border: none;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 30px;
  display: block;
}

.btn-submit:hover {
  background-color: #d4ff00;
  transform: scale(1.02);
}

/* Responsive adjustments */
@media (min-width: 1920px) {
  .logo-yema {
    width: 80%;
  }
}
@media (max-width: 1200px) {
  .content-area {
    border-radius: 0 0 40px 40px;
    padding: 30px;
  }

  .btn-custom {
    font-size: 35px;
  }

  .btn-cotiza {
    font-size: 35px;
  }

  .btn-trabaja-line1 {
    font-size: 35px;
  }

  .btn-trabaja-line2 {
    font-size: 18px;
  }

  .buttons-container {
    gap: 60px;
  }

  .logo-yema {
    max-width: 600px;
  }

  .main-content {
    gap: 30px;
  }

  .modal-columns {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .modal-content-wrapper {
    padding: 40px 30px;
  }

  .modal-text h2 {
    font-size: 36px;
  }

  .modal-text p {
    font-size: 20px;
  }

  .modal-left {
    text-align: center;
    align-items: center;
  }

  .emoji-face {
    width: 100px;
    height: 100px;
  }

  .emoji-eyes {
    gap: 20px;
  }

  .eye {
    width: 18px;
    height: 18px;
  }

  .emoji-smile {
    width: 50px;
    height: 25px;
  }

  .modal-right {
    padding: 35px;
  }
}

@media (max-width: 768px) {
  /* Using dvh for consistent mobile viewport */
  .background-wrapper {
    height: 100dvh;
    padding: 0 15px 0 15px;
  }

  /* Adjusted content area height */
  .content-area {
    border-radius: 0 0 30px 30px;
    padding: 20px 20px 15px 20px;
    height: calc(100dvh - 20px);
  }

  form {
    text-align: center;
  }
  .form-group label {
    font-size: 9px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea,
  .btn-submit {
    padding: 8px 10px;
    font-size: 10px;
  }

  /* Reduced button sizes for mobile */
  .btn-custom {
    font-size: 28px;
    padding: 0 20px;
  }

  .btn-cotiza {
    font-size: 28px;
  }

  .btn-trabaja-line1 {
    font-size: 28px;
  }

  .btn-trabaja-line2 {
    font-size: 14px;
  }

  .buttons-container {
    gap: 25px;
    flex-direction: column;
    margin-bottom: 15px;
  }

  .social-icons {
    gap: 20px;
    margin-bottom: 0;
  }

  .social-icons a {
    font-size: 24px;
    width: 50px;
    height: 50px;
  }

  /* Reduced logo size for better fit */
  .logo-yema {
    max-width: 380px;
  }

  /* Adjusted spacing to fit everything */
  .main-content {
    gap: 5px;
    justify-content: space-between;
    padding: 50px 0;
  }

  /* Reduced negative margin */
  .logo-container {
    margin-bottom: -60px;
    margin-top: 0;
  }

  .modal-container.active {
    margin-top: -20px;
  }

  .modal-content-wrapper {
    padding: 30px 20px;
    border-radius: 20px;
  }

  .modal-text h2 {
    font-size: 20px;
    margin-bottom: 20px;
  }

  .modal-text p {
    font-size: 18px;
  }

  .form-container h3 {
    font-size: 14px;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 10px;
  }

  .modal-close {
    width: 20px;
    height: 20px;
    font-size: 15px;
    top: 80px;
    right: 45px;
  }

  .modal-right {
    padding: 25px 30px;
    border-radius: 25px;
    width: unset;
  }

  .menu-container,
  .modal-text p {
    display: none;
  }

  /* Reduced footer padding */
  .footer-text {
    padding: 5px 0;
    font-size: 12px;
  }

  .success-content h2 {
    font-size: 20px;
  }
  .success-message .modal-close {
    right: 15px;
    top: 20px;
  }
}

@media (max-width: 480px) {
  /* Further size reductions for small phones */
  .btn-custom {
    font-size: 26px;
  }

  .btn-cotiza {
    font-size: 26px;
  }

  .btn-trabaja-line1 {
    font-size: 26px;
  }

  .btn-trabaja-line2 {
    font-size: 13px;
  }

  .social-icons a {
    font-size: 22px;
    width: 45px;
    height: 45px;
  }

  .logo-yema {
    max-width: 320px;
  }

  .main-content {
    gap: 5px;
  }

  /* Further reduced negative margin */
  .logo-container {
    margin-bottom: -50px;
  }

  .modal-container {
    padding: 10px;
  }

  .modal-content-wrapper {
    padding: 25px 30px;
  }

  .form-container h3 {
    font-size: 14px;
  }

  .emoji-face {
    width: 80px;
    height: 80px;
  }

  .emoji-eyes {
    gap: 15px;
  }

  .eye {
    width: 15px;
    height: 15px;
  }

  .emoji-smile {
    width: 40px;
    height: 20px;
  }

  .modal-right {
    padding: 25px 30px;
    border-radius: 25px;
  }
}
