/* =============================================
   RESET Y BASE
============================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: #f9fafb;
  color: #1f2937;
  line-height: 1.5;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =============================================
   HEADER Y NAVEGACIÓN
============================================= */
.header {
  background: #0f3b4c;
  padding: 20px 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo h1 {
  font-size: 1.8rem;
  font-weight: 700;
}

.logo h1 a {
  color: white;
  text-decoration: none;
}

.logo h1 span {
  font-weight: 400;
  font-size: 0.9rem;
  display: block;
  color: #b0e0f0;
}

.menu_nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.menu_nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 0;
  transition: 0.2s;
}

.menu_nav ul li a:hover,
.menu_nav ul li a.active {
  border-bottom: 2px solid #ffb347;
}

/* =============================================
   HERO / BANNER
============================================= */
.hero {
  background: linear-gradient(135deg, #0f3b4c 0%, #1b6d85 100%);
  color: white;
  text-align: center;
  padding: 80px 20px;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 30px;
}

.btn-primary {
  background: #ffb347;
  color: #0f3b4c;
  padding: 12px 28px;
  border-radius: 40px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: #ff9f1a;
  transform: translateY(-2px);
}

/* =============================================
   CONTENIDO PRINCIPAL
============================================= */
.content-wrapper {
  display: flex;
  gap: 40px;
  margin: 60px auto;
}

.mainbar {
  flex: 2;
}

.sidebar {
  flex: 1;
}

.article {
  background: white;
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 40px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.article h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #0f3b4c;
}

.article h2 span {
  font-weight: 600;
}

.article-img img {
  width: 100%;
  border-radius: 16px;
  margin: 20px 0;
}

/* Servicios en cuadrícula (index) */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.services-grid strong {
  font-size: 1.1rem;
  color: #1b6d85;
}

.services-grid ul {
  margin-top: 10px;
  list-style: none;
}

.services-grid li {
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
}

.services-grid li::before {
  content: "✓";
  color: #ffb347;
  position: absolute;
  left: 0;
}

.rm {
  color: #1b6d85;
  font-weight: 600;
  text-decoration: none;
}

.rm:hover {
  text-decoration: underline;
}

/* =============================================
   SIDEBAR
============================================= */
.gadget {
  background: white;
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.gadget h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  border-left: 4px solid #ffb347;
  padding-left: 12px;
}

.sb_menu, .ex_menu {
  list-style: none;
}

.sb_menu li, .ex_menu li {
  margin-bottom: 12px;
}

.sb_menu a, .ex_menu a {
  text-decoration: none;
  color: #1f2937;
  font-weight: 500;
}

.sb_menu a:hover, .ex_menu a:hover {
  color: #1b6d85;
}

.ex_menu li {
  font-size: 0.85rem;
  color: #4b5563;
}

/* =============================================
   PÁGINA ABOUT – VALORES
============================================= */
.values-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.values-list li {
  background: #eef2ff;
  padding: 8px 16px;
  border-radius: 30px;
  font-weight: 500;
  color: #0f3b4c;
}

/* =============================================
   PÁGINA CONTACTO
============================================= */
.contact-info {
  background: #f1f5f9;
  padding: 20px;
  border-radius: 16px;
  margin-bottom: 20px;
}

.contact-info p {
  margin: 12px 0;
}

.contact-info i {
  width: 30px;
  color: #1b6d85;
  font-size: 1.2rem;
}

.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #ffb347;
  box-shadow: 0 0 0 2px rgba(255, 180, 71, 0.2);
}

.btn-secondary {
  background: #e2e8f0;
  color: #1f2937;
  padding: 12px 24px;
  border: none;
  border-radius: 40px;
  font-weight: 600;
  cursor: pointer;
  margin-left: 12px;
  transition: 0.2s;
}

.btn-secondary:hover {
  background: #cbd5e1;
}

.form-note {
  font-size: 0.85rem;
  margin-top: 16px;
  color: #4b5563;
}

/* =============================================
   MENSAJES DE ÉXITO / ERROR (FORMULARIO)
============================================= */
.form-status {
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 24px;
  font-weight: 500;
  text-align: center;
  animation: fadeSlide 0.4s ease;
}

.form-status.success {
  background: #d1fae5;
  border-left: 4px solid #10b981;
  color: #065f46;
}

.form-status.error {
  background: #fee2e2;
  border-left: 4px solid #ef4444;
  color: #991b1b;
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =============================================
   FOOTER
============================================= */
.footer {
  background: #0a2a36;
  color: #cbd5e1;
  padding-top: 40px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  padding-bottom: 30px;
}

.footer-col {
  flex: 1;
  min-width: 200px;
}

.footer-col h3 {
  color: white;
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.social-links {
  list-style: none;
  margin-top: 15px;
}

.social-links li {
  margin-bottom: 8px;
}

.social-links a {
  color: #cbd5e1;
  text-decoration: none;
}

.social-links a i {
  width: 24px;
}

.footer-bottom {
  text-align: center;
  padding: 20px;
  border-top: 1px solid #1f6e8a;
  font-size: 0.8rem;
}

/* =============================================
   BOTÓN FLOTANTE WHATSAPP
============================================= */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #25d366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: 0.2s;
  z-index: 100;
}

.whatsapp-float:hover {
  background: #20b359;
  transform: scale(1.05);
  color: white;
}

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  .menu_nav ul {
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
  }
  .content-wrapper {
    flex-direction: column;
  }
  .hero h2 {
    font-size: 1.8rem;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
  .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 25px;
    bottom: 20px;
    right: 20px;
  }
}
