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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #3e94e6;
  background: radial-gradient(
    circle,
    rgba(62, 148, 230, 1) 9%,
    rgba(0, 12, 117, 1) 91%
  );
  /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
  min-height: 100vh;
  padding: 20px;
}

/* header */
ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
a {
  text-decoration: none;
  color: inherit;
}

/* --- ESTILOS DEL HEADER Y MENÚ --- */
.header {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 20px;
  z-index: 100;
  height: 60px;
  width: 100%;
}

.menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 600px; /* Equivalente aproximado a w-xl */
  height: 60px;
  padding: 6px 20px;
  border-radius: 50px;

  /* Efecto de cristal (Glassmorphism) */
  backdrop-filter: blur(25px) saturate(100%);
  -webkit-backdrop-filter: blur(25px) saturate(100%);
  background-color: rgba(255, 255, 255, 0.177);
  box-shadow: 0 1px 3px 0 rgba(31, 38, 135, 0.37);
}

.menu-list {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/* --- ESTILOS DE LOS ENLACES Y ELEMENTOS --- */
.menu-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-weight: 600;
}

.logo-img {
  width: 52px;
}

.btn-contacto {
  background-color: #000c75;
  color: #ffffff;
  border-radius: 9999px;
  padding: 6px 10px;
  display: inline-block;
  transition: transform 0.2s ease;
}

.btn-contacto:hover {
  transform: scale(1.1);
}

/* --- RESPONSIVE (MÓVILES) --- */
@media (max-width: 720px) {
  .header {
    width: 100%;
  }
  .menu {
    width: 80%;
  }
}

section {
  margin: 0 auto;
  max-width: 1200px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  overflow: hidden;
  margin-top: 70px;
}

.header-section {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  color: white;
  padding: 30px;
  text-align: center;
}

.header-section h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
  font-weight: 700;
}

.header-section p {
  opacity: 0.9;
  font-size: 1.1em;
}

.main-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  padding: 30px 50px;
  place-content: center;
}

input[type="checkbox"] {
  width: 10px;
  border: 2px solid #e9ecef;
  border-radius: 0px;
  transition: all 0.3s ease;
  
}

.controls-section {
  background: #f8f9fa;
  border-radius: 15px;
  padding: 25px;
  border: 2px solid #e9ecef;
  max-width: 700px;
}

.preview-section {
  background: #f8f9fa;
  border-radius: 15px;
  padding: 25px;
  border: 2px solid #e9ecef;
  max-width: 600px;
}

.section-title {
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 20px;
  color: #495057;
  display: flex;
  align-items: center;
  gap: 10px;
}

.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 15px;
  margin-bottom: 25px;
}

.setting-item {
  background: white;
  padding: 15px;
  border-radius: 10px;
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.setting-item:hover {
  border-color: #4facfe;
  transform: translateY(-2px);
}

.setting-item label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 500;
}

.quality-controls {
  margin: 20px 0;
}

.quality-controls label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #495057;
}

.quality-controls select {
  width: 100%;
  padding: 10px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 14px;
  background: white;
}

.timer-display {
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  color: white;
  padding: 15px;
  border-radius: 10px;
  text-align: center;
  font-size: 1.8em;
  font-weight: bold;
  margin: 20px 0;
  box-shadow: 0 5px 15px rgba(238, 90, 36, 0.3);
}

.button-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  padding: 15px 30px;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: #3e94e6;
  background: radial-gradient(
    circle,
    rgba(62, 148, 230, 1) 0%,
    rgba(0, 12, 117, 1) 100%
  );
  color: white;
}

.btn-danger {
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  color: white;
}

.btn-warning {
  background: linear-gradient(135deg, #feca57, #ff9ff3);
  color: white;
}

.btn-success {
  background: linear-gradient(135deg, #48dbfb, #0abde3);
  color: white;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.preview-video {
  width: 100%;
  height: 300px;
  background: #000;
  border-radius: 10px;
  object-fit: cover;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 15px 0;
  padding: 10px;
  border-radius: 8px;
  font-weight: 500;
}

.status-idle {
  background: #e9ecef;
  color: #6c757d;
}

.status-recording {
  background: #ffebee;
  color: #c62828;
  animation: pulse 2s infinite;
}

.status-paused {
  background: #fff3e0;
  color: #ef6c00;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.recording-dot {
  width: 12px;
  height: 12px;
  background: #f44336;
  border-radius: 50%;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

.result-section {
  margin-top: 30px;
  padding: 25px;
  background: #f8f9fa;
  border-radius: 15px;
  border: 2px solid #e9ecef;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.result-video {
  width: 100%;
  max-width: 600px;
  border-radius: 10px;
  margin: 15px;
}

.download-btn {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(135deg, #48dbfb, #0abde3);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  margin: 10px 10px;
  transition: all 0.3s ease;
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 171, 227, 0.3);
}

.error-message {
  background: #ffebee;
  color: #c62828;
  padding: 15px;
  border-radius: 8px;
  margin: 15px 0;
  border-left: 4px solid #f44336;
}

.compatibility-warning {
  background: #fff3e0;
  color: #ef6c00;
  padding: 15px;
  border-radius: 8px;
  margin: 15px 0;
  border-left: 4px solid #ff9800;
}

.audio-tips {
  background: #e8f5e8;
  color: #2e7d32;
  padding: 15px;
  border-radius: 8px;
  margin: 15px 0;
  font-size: 14px;
  border-left: 4px solid #4caf50;
}

@media (max-width: 900px) {
  .main-content {
    padding: 30px 20px;
    gap: 20px;
  }

  .container3 {
    gap: 40px;
    padding: 30px 20px;
  }

  .container3 h2 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .main-content {
    grid-template-columns: 1fr;
  }

  .settings-grid {
    grid-template-columns: 1fr;
  }

  .button-group {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .header-section h1 {
    font-size: 1.8em;
  }

  .header-section {
    padding: 20px;
  }

  .preview-video {
    height: 200px;
  }

  .timer-display {
    font-size: 1.4em;
  }

  .controls-section,
  .preview-section {
    padding: 15px;
  }

  .container3 {
    gap: 30px;
    padding: 20px 15px;
  }

  .container3 h2 {
    font-size: 1.6rem;
  }

  .container3 p {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  body {
    padding: 10px;
  }
  .container{
    margin-top: 80px;
  }

  .header-section h1 {
    font-size: 1.3em;
  }

  .main-content {
    padding: 15px 10px;
    gap: 15px;
  }

  .preview-video {
    height: 150px;
  }

  .timer-display {
    font-size: 1.1em;
    padding: 10px;
  }

  .btn {
    padding: 12px 20px;
    font-size: 13px;
  }

  .quality-controls select {
    font-size: 13px;
  }

  .container3 {
    gap: 20px;
    padding: 15px 10px;
  }

  .container3 h2 {
    font-size: 1.3rem;
  }

  .container3 div {
    text-align: center;
  }

  .image {
    width: 100%;
  }
}

.container3 {
  background-color: #fff;
  max-width: 1200px;
  margin-top: 50px;
  border-radius: 20px;
  padding: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 100px;
}

.container3 div {
  width: 470px;
  max-width: 100%;
  overflow: hidden;
}

.image {
  width: 90%;
}

.container3 h2 {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #000c75;
}
