/* Estilos generales */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
  }
  
  h1 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #007bf4;
    text-align: center;
    margin: 40px 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 2px solid #007bf4;
    padding-bottom: 15px;
  }
  
  .descripcion {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    color: #666;
    line-height: 1.6;
    font-size: 1.1rem;
  }
  
  /* Sección de servicios */
  .servicios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .servicio-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .servicio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
  }
  
  .servicio-card h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 15px;
    text-align: center;
  }
  
  .servicio-imagen {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #eee;
  }
  
  .servicio-card p {
    color: #666;
    line-height: 1.6;
    text-align: center;
  }
  
  /* Sección de testimonios */
  .testimonios {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
  }
  
  .testimonio-form {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
  }
  
  .testimonio-form textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.5;
    min-height: 120px;
    resize: vertical;
    transition: all 0.3s ease;
  }
  
  .testimonio-form textarea:focus {
    border-color: #007BFF;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
    outline: none;
  }
  
  .rating {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 20px 0;
  }
  
  .rating .star {
    font-size: 32px;
    color: #ccc;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  
  .rating .star:hover {
    transform: scale(1.15);
  }
  
  .btn {
    background: linear-gradient(135deg, #007BFF, #0056b3);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    width: 100%;
    max-width: 220px;
    margin: 20px auto 0;
  }
  
  .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
  
  /* Tarjetas de testimonios */
  .testimonio-card {
    background: #007BFF;
    color: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  
  .testimonio-contenido p {
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 1.05rem;
  }
  
  .calificacion {
    color: gold;
    font-size: 1.3rem;
    letter-spacing: 3px;
    margin: 15px 0;
  }
  
  .testimonio-contenido strong {
    display: block;
    margin-top: 15px;
    font-size: 1.1rem;
  }
  
  .testimonio-contenido small {
    display: block;
    opacity: 0.85;
    font-size: 0.85rem;
    margin-top: 5px;
  }
  
  /* Menú de acciones */
  .testimonio-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    cursor: pointer;
    z-index: 2;
  }
  
  .dots {
    font-size: 24px;
    padding: 5px 10px;
    transition: transform 0.2s ease;
  }
  
  .dots:hover {
    transform: scale(1.1);
  }
  
  .actions-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    z-index: 3;
  }
  
  .actions-menu button {
    display: block;
    width: 100%;
    padding: 10px 20px;
    border: none;
    background: none;
    text-align: left;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  
  .actions-menu button:hover {
    background: #f8f9fa;
    padding-left: 25px;
  }
  
  .actions-menu button.delete-testimonio {
    color: #e74c3c;
  }
  
  /* Modal */
  .modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    z-index: 1000;
  }
  
  .modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  }
  
  .close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    transition: color 0.2s ease;
  }
  
  .close-modal:hover {
    color: #333;
  }
  
  #edit-testimonio-text {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    margin: 15px 0;
  }
  
  /* Mensajes informativos */
  .info-login {
    text-align: center;
    color: #666;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px dashed #ddd;
  }
  
  
  /* En la sección de botones */
  .btn {
    background: linear-gradient(135deg, #007BFF, #0056b3);
    color: white !important;
    /* Aseguramos color blanco */
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    width: 100%;
    max-width: 220px;
    margin: 20px auto 0;
  }
  
  .btn:hover {
    color: white !important;
    /* Mantener blanco en hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
  
  /* Responsive */
  @media (max-width: 768px) {
    h1 {
      font-size: 2rem;
    }
  
    .servicios {
      grid-template-columns: 1fr;
    }
  
    .testimonio-form {
      padding: 20px;
    }
  
    .rating .star {
      font-size: 28px;
    }
  
    .btn {
      max-width: 180px;
      padding: 10px 20px;
    }
  }
  
  @media (max-width: 480px) {
    h1 {
      font-size: 1.8rem;
    }
  
    .testimonio-card {
      padding: 20px;
    }
  
    .testimonio-contenido p {
      font-size: 1rem;
    }
  
    .modal-content {
      padding: 20px;
    }
  }