/*
 * Universo Informático styles
 *
 * These styles implement a modern, responsive layout that
 * resembles the look and feel shown in the reference image.  A
 * dark colour palette is used throughout with bright accent colours
 * drawn from the original screenshot.  Flexbox and CSS grid enable
 * simple responsive behaviour, while a small JavaScript file
 * toggles the mobile navigation.  A Google font provides a clean
 * typography.
 */

/* Import the chosen font.  This must appear before any rules that
   reference the font to ensure correct loading. */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* Reset some basic elements */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--dark-bg);
  color: var(--light-text);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

:root {
  /* Colour palette inspired by the reference design */
  --primary-blue: #00a3e0;
  --primary-blue-hover: #008fc4;
  --primary-yellow: #ffca28;
  --primary-yellow-hover: #e5b72c;
  --dark-bg: #010c1b;
  --section-bg: #021f3d;
  --light-text: #ffffff;
  --muted-text: #8fa8c4;
}

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

/* Header styling */
.header {
  background-color: var(--dark-bg);
  padding: 16px 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--light-text);
}

/* Logo image and tagline */
/* Logo image anchored to the header */
.logo-img {
  height: 54px;
  width: auto;
  display: block;
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  transition: right 0.4s ease;
}

.nav ul {
  display: flex;
  list-style: none;
  gap: 24px;
}

.nav ul li a {
  color: var(--light-text);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav ul li a:hover {
  color: var(--primary-blue);
}

.nav .nav-cta {
  margin-left: 20px;
}

/* Button styles */
.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.25s ease, color 0.25s ease;
  border: none;
}

.btn-primary {
  background-color: var(--primary-blue);
  color: var(--light-text);
}

.btn-primary:hover {
  background-color: var(--primary-blue-hover);
  color: var(--light-text);
}

.btn-yellow {
  background-color: var(--primary-yellow);
  color: #00334e;
}

.btn-yellow:hover {
  background-color: var(--primary-yellow-hover);
  color: #002742;
}

/* Mobile menu toggle button */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--light-text);
  cursor: pointer;
}

/* Hero section */
.hero {
  background: radial-gradient(circle at center center, #073c74 0%, #011a36 70%);
  position: relative;
  padding: 160px 0 120px;
  margin-top: 72px; /* offset for fixed header */
  overflow: hidden;
}

/* Subtle circuit-like grid overlay using two linear gradients.  The
   semi-transparent lines add interest without overpowering the
   content. */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero h1 {
  font-size: 48px;
  font-weight: 700;
  max-width: 720px;
  margin-bottom: 40px;
  line-height: 1.2;
}

/* Hero motto underneath the headline */
.hero-tagline {
  font-size: 18px;
  font-weight: 400;
  color: var(--muted-text);
  margin-top: 0;
  margin-bottom: 8px;
}

/* Highlight badge for company founding year */
.badge {
  display: inline-block;
  background-color: var(--primary-yellow);
  color: #00334e;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
}

/* About section styling */
.about {
  background-color: var(--section-bg);
  padding: 80px 0;
}

.about h2 {
  font-size: 32px;
  margin-bottom: 20px;
  font-weight: 700;
  color: var(--light-text);
  text-align: center;
}

.about p {
  font-size: 18px;
  color: var(--muted-text);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
  text-align: center;
}

/* Service detail layout */
.service-detail {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  padding: 40px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.service-detail:last-child {
  border-bottom: none;
}

.service-icon-container {
  flex: 0 0 70px;
  width: 70px;
  height: 70px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon-container i {
  font-size: 36px;
  color: var(--primary-blue);
}

.service-content h3 {
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--light-text);
}

.service-content p {
  font-size: 16px;
  color: var(--muted-text);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .service-detail {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .service-icon-container {
    margin-bottom: 20px;
  }
  .service-content p {
    padding: 0 10px;
  }
}

/* Portfolio page styles */
.portfolio-hero {
  background-color: var(--section-bg);
  padding: 120px 0 80px;
  text-align: center;
}

.portfolio-hero h1 {
  font-size: 36px;
  color: var(--light-text);
  margin-bottom: 20px;
}

.portfolio-hero p {
  font-size: 18px;
  color: var(--muted-text);
}

.portfolio-grid {
  background-color: var(--dark-bg);
  padding: 80px 0;
}

.portfolio-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

.portfolio-item {
  background-color: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.portfolio-item img {
  width: 100%;
  height: 180px;
  object-fit:cover;
	object-position: top;
}

.portfolio-info {
  padding: 20px;
}

.portfolio-info h3 {
  font-size: 20px;
  color: var(--light-text);
  margin-bottom: 8px;
}

.portfolio-info p {
  font-size: 16px;
  color: var(--muted-text);
}

@media (max-width: 768px) {
  .portfolio-hero {
    padding: 100px 0 60px;
  }
  .portfolio-item img {
    height: 160px;
  }
}

/* Quote (presupuesto) page styles */
.quote-hero {
  background-color: var(--section-bg);
  padding: 120px 0 80px;
  text-align: center;
}

.quote-hero h1 {
  font-size: 36px;
  color: var(--light-text);
  margin-bottom: 20px;
}

.quote-hero p {
  font-size: 18px;
  color: var(--muted-text);
}

.quote-form-section {
  background-color: var(--dark-bg);
  padding: 80px 0;
}

.quote-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  color: var(--light-text);
  font-size: 16px;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--light-text);
  font-size: 16px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted-text);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
}

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

.quote-form button.btn {
  align-self: flex-start;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* Services */
.services {
  background-color: var(--section-bg);
  padding: 80px 0;
}

.services h2 {
  font-size: 32px;
  margin-bottom: 40px;
  font-weight: 700;
  color: var(--light-text);
  text-align: center;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 40px;
}

.service {
  text-align: center;
}

.service .icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border: 2px solid var(--primary-blue);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Service icons with dual-colour accents */
/* Stack icons with improved positioning.  The accent is anchored to
   the bottom right of its container and scaled down for a tidy
   appearance. */
.service .icon .fa-stack {
  font-size: 42px;
  position: relative;
}

.service .icon .base {
  color: var(--primary-blue);
  position: relative;
}

.service .icon .accent {
  color: var(--primary-yellow);
  position: absolute;
  /* Default placement for general icons; individual classes refine this */
  right: 0.25em;
  bottom: 0.25em;
  transform: scale(0.6);
}

/* Individual accent positioning for each service */
.hardware-accent {
  right: 0.35em;
  bottom: 0.3em;
  transform: scale(0.6);
}

.web-accent {
  right: 0.25em;
  bottom: 0.25em;
  transform: rotate(-20deg) scale(0.6);
}

.design-accent {
  right: 0.15em;
  bottom: 0.25em;
  transform: rotate(-15deg) scale(0.55);
}

.software-accent {
  right: 0.28em;
  bottom: 0.28em;
  transform: scale(0.6);
}

.training-accent {
  right: 0.3em;
  bottom: 0.3em;
  transform: scale(0.6);
}

.service h3 {
  font-size: 16px;
  font-weight: 500;
  color: var(--light-text);
}

/* Footer */
.footer {
  background-color: #010b1f;
  padding: 32px 0;
  text-align: center;
  color: var(--muted-text);
  font-size: 14px;
  margin-top: auto;
}
.site-footer{
  background:#0d1b24; /* coincide con tu paleta oscura */
  color:#cfe3ee;
  padding-top:48px;
  border-top:1px solid rgba(255,255,255,.06);
}
.footer-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap:32px;
}
.footer-col h4{
  font-size:16px;
  margin-bottom:14px;
  color:#fff;
}
.footer-logo{ width:150px; height:auto; margin-bottom:10px; }
.footer-tagline{ color:#9fb7c4; margin:6px 0 14px; }
.footer-cta{ display:inline-block; margin-top:6px; }

.footer-links, .footer-contact{
  list-style:none; padding:0; margin:0;
}
.footer-links li, .footer-contact li{
  margin:8px 0;
}
.footer-links a, .footer-contact a{
  color:#cfe3ee; text-decoration:none;
}
.footer-links a:hover, .footer-contact a:hover{
  color:#ffd34d;
}

.footer-contact i{
  width:18px; margin-right:8px; color:#ffd34d;
}

.footer-social{ margin-top:12px; }
.footer-social a{
  display:inline-flex; align-items:center; justify-content:center;
  width:36px; height:36px; margin-right:8px;
  background:rgba(255,255,255,.06);
  border-radius:8px; color:#cfe3ee; text-decoration:none;
}
.footer-social a:hover{ background:rgba(255,255,255,.12); color:#ffd34d; }

.footer-bottom{
  margin-top:28px; padding:16px 0;
  background:#0b1620; border-top:1px solid rgba(255,255,255,.05);
  color:#9fb7c4;
}
.footer-bottom-row{
  display:flex; justify-content:space-between; align-items:center;
}
.footer-bottom-row small{ opacity:.9; }

@media (max-width: 1024px){
  .footer-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 640px){
  .footer-grid{ grid-template-columns: 1fr; }
  .footer-bottom-row{ flex-direction:column; gap:6px; text-align:center; }
}


.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    border-radius: 50%;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}
.whatsapp-float img {
    width: 60px;
    height: 60px;
}
.whatsapp-float:hover {
    background-color: #20b954;
}

/* ===== Páginas internas: hero + tipografía minimalista ===== */

/* Hero de página (título grande, fondo como secciones) */
.page-hero{
  background: var(--section-bg);
  padding: 90px 0 50px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.page-hero h1{
  font-size: 36px;
  line-height: 1.2;
  color: var(--light-text);
  margin: 0;
}

/* Contenido principal con margen para no “chocar” con el header */
.page-main{
  padding: 48px 0 80px;
}

/* Contenedor de lectura cómoda */
.prose{
  max-width: 820px;
  margin: 0 auto;
  color: var(--muted-text);
}

/* Escala tipográfica y espaciados coherentes */
.prose h2{
  font-size: 24px;
  color: var(--light-text);
  margin: 28px 0 10px;
}
.prose h3{
  font-size: 18px;
  color: var(--light-text);
  margin: 20px 0 8px;
}
.prose p{
  line-height: 1.75;
  margin: 0 0 14px;
}
.prose ul, .prose ol{
  padding-left: 18px;
  margin: 0 0 14px;
}
.prose li{ margin: 6px 0; }

/* Enlaces dentro del contenido */
.prose a{
  color: var(--primary-yellow);
  text-decoration: none;
  border-bottom: 1px dashed rgba(255,211,77,.55);
}
.prose a:hover{
  border-bottom-style: solid;
}
	/* === Portfolio Filters (estética consistente con el sitio) === */
.portfolio-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 0 32px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.03);
  border-radius: 16px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.06);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 12px;
  background: rgba(255,255,255,.05);
  color: var(--light-text);
  border: 1px solid rgba(255,255,255,.08);
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
}
.chip:hover {
  transform: translateY(-2px);
  border-color: var(--primary-blue);
}
.chip.active {
  background: var(--primary-blue);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(0,163,224,.2);
}
.chip-ico { font-size: 14px; opacity: .9; }
.chip-label { letter-spacing: .2px; }

/* Card del mapa: mismo lenguaje visual que las demás tarjetas */
.map-card {
  margin-top: 20px;
  border-radius: 8px;                  /* igual a .contact-info y .contact-form */
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  background: #fff;
  /* Mapa responsivo por proporción */
  position: relative;
  aspect-ratio: 16 / 9;
}

/* El iframe ocupa todo el contenedor responsivo */
.map-card iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* --- Alertas del formulario de contacto --- */
.form-alert {
	max-width: 600px;
    display: none;
    margin-bottom: 15px;
    padding: 12px 14px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.4;
}
.form-alert.ok {
    display: block;
    background: #e6f7ee;
    color: #1b6e3b;
    border: 1px solid #b7e4c7;
}
.form-alert.error {
    display: block;
    background: #fdecea;
    color: #a13a37;
    border: 1px solid #f5c2c7;
}


/* Ajuste fino en móviles: un poquito más alto si hace falta */
@media (max-width: 480px) {
  .map-card { aspect-ratio: 4 / 3; }
}



/* Ajustes responsive */
@media (max-width: 768px){
  .page-hero{ padding: 72px 0 36px; }
  .page-hero h1{ font-size: 28px; }
  .page-main{ padding: 36px 0 60px; }
  .prose{ padding: 0 14px; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.nav {
		position: fixed;
		top: 72px;
		right: -260px; 
		height: 100vh;
		width: 260px;
		background-color: var(--dark-bg);
		flex-direction: column;
		justify-content: flex-start;
		gap: 20px;
		padding-top: 100px;
		padding-left: 20px;
		padding-right: 20px;
		z-index: 1000;         /* ↑ por encima del header */
    	transition: right 0.4s ease;  
	}

	.nav.active {
		right: 0;
	}

	.nav ul {
		flex-direction: column;
		gap: 20px;
	}

	.nav .nav-cta {
		margin-left: 0;
	}	

	.nav-toggle {
		display: block;
	}

	.hero h1 {
		font-size: 36px;
	}

	.hero-buttons {
		flex-direction: column;
		gap: 15px;
	}

	.services-grid {
		gap: 24px;
		grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	}



	
}