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

    body {
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      line-height: 1.6;
      background: #f8f9fa;
      color: #333;
    }

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

    .iframe-container {
      position: relative;
      width: 100%;
      overflow: hidden;
      border-radius: 12px;
      box-shadow: 0 8px 30px rgba(0,0,0,0.12);
      background: #fff;
      margin-top: 30px;
      border: 1px solid #eaeaea;
    }

    .iframe-header {
      background: #2c3e50;
      color: white;
      padding: 15px 20px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      border-top-left-radius: 12px;
      border-top-right-radius: 12px;
    }

    .iframe-title {
      font-size: 1.2rem;
      font-weight: 600;
    }

    .iframe-actions {
      display: flex;
      gap: 10px;
    }

    .iframe-btn {
      background: rgba(255,255,255,0.15);
      border: none;
      color: white;
      border-radius: 4px;
      padding: 6px 12px;
      cursor: pointer;
      transition: background 0.3s;
      font-size: 0.9rem;
    }

    .iframe-btn:hover {
      background: rgba(255,255,255,0.25);
    }

    .iframe-wrapper {
      position: relative;
      padding-bottom: 56.25%; /* Proporción 16:9 por defecto */
      height: 0;
      overflow: hidden;
    }

    .responsive-iframe {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 120%;
      border: none;
      background: white;
    }

    .iframe-footer {
      background: #f8f9fa;
      padding: 15px 20px;
      border-top: 1px solid #eaeaea;
      border-bottom-left-radius: 12px;
      border-bottom-right-radius: 12px;
      text-align: center;
      font-size: 0.9rem;
      color: #666;
    }

    /* Ajustes para diferentes alturas */
    .iframe-tall {
      padding-bottom: 120%; /* Para contenido alto */
    }

    .iframe-auto {
      padding-bottom: 0;
      height: auto;
    }

    .iframe-auto .responsive-iframe {
      position: relative;
      height: 600px; /* Altura inicial */
    }

    /* Media Queries para responsividad */
    @media (max-width: 992px) {
      .container {
        padding: 15px;
      }

      .iframe-header {
        padding: 12px 15px;
      }

      .iframe-title {
        font-size: 1.1rem;
      }

      .iframe-auto .responsive-iframe {
        height: 500px;
      }
    }

    @media (max-width: 768px) {
      .iframe-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
      }

      .iframe-actions {
        width: 100%;
        justify-content: flex-end;
      }

      .iframe-auto .responsive-iframe {
        height: 400px;
      }
    }

    @media (max-width: 576px) {
      body {
        padding: 10px;
      }

      .container {
        padding: 10px;
      }

      .iframe-header {
        padding: 10px;
      }

      .iframe-title {
        font-size: 1rem;
      }

      .iframe-btn {
        padding: 5px 10px;
        font-size: 0.85rem;
      }

      .iframe-auto .responsive-iframe {
        height: 300px;
      }
    }

    @media (max-width: 400px) {
      .iframe-actions {
        flex-wrap: wrap;
      }

      .iframe-auto .responsive-iframe {
        height: 250px;
      }
    }
