/* ============================================
   TECH MASTER — Services & Contact Styles
   ============================================ */

/* Títulos de página */
.title_service {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin: 2rem 1rem 0.5rem;
  color: #1a1a2e;
}

.subtitle_service {
  text-align: center;
  font-size: 1rem;
  color: #555;
  margin-bottom: 2.5rem;
}

/* ============================================
   TARJETAS DE SERVICIOS
   ============================================ */
.servicio_container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem 1.2rem;
  margin: 0 auto 2rem;
  max-width: 1100px;
  border-bottom: 1px solid #e0e0e0;
}

.servicio_container figure {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}

.servicio_container figure img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.servicio_container figure img:hover {
  transform: scale(1.03);
}

.servicio_text h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 0.8rem;
}

.servicio_text p {
  font-size: 1.05rem;
  color: #444;
  line-height: 1.8;
  margin-bottom: 0.8rem;
}

.servicio_text ul {
  padding-left: 1.2rem;
  margin-bottom: 1rem;
}

.servicio_text ul li {
  font-size: 1.03rem;
  color: #444;
  line-height: 2;
}

.servicio_precio {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0077b6;
  margin: 0.5rem 0 1rem;
}

.servicio_nota {
  font-size: 0.97rem;
  color: #777;
  font-style: italic;
  margin-bottom: 1rem;
}

/* ============================================
   PLANES DE PRECIOS
   ============================================ */
.planes_container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.2rem 0;
}

.plan_box {
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  padding: 1rem 1.2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.plan_box:hover {
  border-color: #0077b6;
  box-shadow: 0 4px 12px rgba(0,119,182,0.15);
}

.plan_box.destacado {
  border-color: #0077b6;
  background: #f0f8ff;
}

.plan_box h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 0.4rem;
}

.plan_box p {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0077b6;
  margin-bottom: 0.2rem;
}

.plan_box span {
  font-size: 0.9rem;
  color: #777;
}

/* ============================================
   BOTÓN CTA GLOBAL
   ============================================ */
.cta-button {
  display: inline-block;
  background: #0077b6;
  color: #fff;
  padding: 0.75rem 1.8rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  margin-top: 0.5rem;
}

.cta-button:hover {
  background: #005f8e;
  transform: translateY(-2px);
}

/* ============================================
   PÁGINA DE CONTACTO
   ============================================ */
.contact-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem;
}

.contact-hero {
  text-align: center;
  padding: 2.5rem 1rem 1.5rem;
}

.contact-hero h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 0.5rem;
}

.contact-hero p {
  font-size: 1rem;
  color: #555;
}

.contact-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

/* Formulario */
.contact-form-section {
  background: #f9f9f9;
  border-radius: 14px;
  padding: 2rem 1.5rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
}

.contact-form-section h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.2rem;
}

.form-group label {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  font-family: 'Montserrat', sans-serif;
  color: #333;
  transition: border-color 0.3s ease;
  background: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #0077b6;
  box-shadow: 0 0 0 3px rgba(0,119,182,0.12);
}

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

.field-error {
  font-size: 0.82rem;
  color: #e63946;
  margin-top: 0.3rem;
}

/* Mensajes de estado */
.form-success,
.form-error {
  padding: 1rem 1.2rem;
  border-radius: 8px;
  font-size: 0.93rem;
  font-weight: 500;
  margin-bottom: 1.2rem;
}

.form-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.hidden {
  display: none;
}

/* Info de contacto */
.contact-info {
  background: #1a1a2e;
  color: #fff;
  border-radius: 14px;
  padding: 2rem 1.5rem;
}

.contact-info h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #fff;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-icon {
  font-size: 1.5rem;
  min-width: 2rem;
}

.contact-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #90e0ef;
  margin-bottom: 0.2rem;
}

.contact-card a,
.contact-card p {
  font-size: 0.95rem;
  color: #ccc;
  text-decoration: none;
  line-height: 1.7;
}

.contact-card a:hover {
  color: #90e0ef;
}

/* Botón WhatsApp */
.whatsapp-btn {
  display: block;
  background: #25d366;
  color: #fff;
  text-align: center;
  padding: 0.9rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  margin-top: 1.5rem;
  transition: background 0.3s ease, transform 0.2s ease;
}

.whatsapp-btn:hover {
  background: #1ebe5d;
  transform: translateY(-2px);
}

/* ============================================
   TABLET (600px+)
   ============================================ */
@media screen and (min-width: 600px) {
  .servicio_container {
    padding: 2rem;
  }

  .planes_container {
    flex-direction: row;
  }

  .plan_box {
    flex: 1;
  }

  .servicio_container figure img {
    height: 280px;
  }
}

/* ============================================
   DESKTOP (1000px+)
   ============================================ */
@media screen and (min-width: 1000px) {
  .title_service {
    font-size: 2.5rem;
    margin-top: 3rem;
  }

  /* Alternar imagen izquierda/derecha */
  .servicio_container {
    flex-direction: row;
    align-items: center;
    gap: 3rem;
    padding: 3rem 2rem;
  }

  .servicio_container:nth-child(even) {
    flex-direction: row-reverse;
  }

  .servicio_text {
    flex: 1;
  }

  .servicio_container figure {
    flex: 1;
  }

  .servicio_container figure img {
    height: 320px;
  }

  /* Contacto en dos columnas */
  .contact-wrapper {
    flex-direction: row;
    align-items: flex-start;
  }

  .contact-form-section {
    flex: 3;
  }

  .contact-info {
    flex: 2;
    position: sticky;
    top: 100px;
  }
}