﻿/* =====================================================
   PIATRONIC / Puero & Asociados — Borrador de sitio web
   Paleta basada en el logo (azul marino + acentos)
===================================================== */

:root {
  --navy: #1f3864;
  --navy-dark: #14264a;
  --navy-light: #2b4e8c;
  --accent: #f2a71b;
  --text: #232a35;
  --muted: #5a6472;
  --bg-light: #f5f7fa;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 6px 20px rgba(20, 38, 74, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
}

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

a { color: inherit; text-decoration: none; }

/* ===== Botones ===== */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 600;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-primary {
  background: var(--accent);
  color: var(--navy-dark);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(242,167,27,.35); }
.btn-outline {
  border: 2px solid var(--white);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-block { width: 100%; text-align: center; border: none; cursor: pointer; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 44px; height: 44px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 800; color: var(--navy); letter-spacing: .5px; }
.brand-sub { font-size: .75rem; color: var(--muted); }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a { font-weight: 600; color: var(--text); }
.main-nav a:hover { color: var(--navy); }
.btn-nav {
  background: var(--navy);
  color: var(--white) !important;
  padding: 8px 18px;
  border-radius: 24px;
}
.btn-nav:hover { background: var(--navy-light); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--navy);
  cursor: pointer;
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  color: var(--white);
  padding: 80px 0;
}
.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.hero-text { max-width: 620px; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: .85rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 10px;
}
.hero h1 { font-size: 2.6rem; margin: 0 0 18px; }
.lead { font-size: 1.05rem; color: #dbe3f0; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-badge {
  background: var(--white);
  border-radius: 50%;
  padding: 26px;
  box-shadow: var(--shadow);
  flex-shrink: 0;
}
.hero-logo { width: 140px; height: 140px; object-fit: contain; }

/* ===== Pilares ===== */
.pillars {
  padding: 50px 0;
  background:
    radial-gradient(ellipse 50% 60% at 50% 45%, rgba(242, 167, 27, 0.22), transparent 70%),
    radial-gradient(circle at 8% 10%, rgba(43, 78, 140, 0.18), transparent 40%),
    radial-gradient(circle at 92% 90%, rgba(43, 78, 140, 0.18), transparent 40%),
    linear-gradient(180deg, #e6edf8 0%, #cbd9ef 100%);
}
.service-card,
.solution-card,
.brand-card,
.about-tagline-card {
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}
.service-card:hover,
.solution-card:hover,
.brand-card:hover,
.about-tagline-card:hover,
.service-card:focus-within,
.solution-card:focus-within,
.brand-card:focus-within,
.about-tagline-card:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(20, 38, 74, 0.16);
  background-color: var(--navy);
  color: var(--white);
  border-color: var(--accent);
}
.service-card:hover h3,
.solution-card:hover h3,
.brand-card:hover h4,
.service-card:focus-within h3,
.solution-card:focus-within h3,
.brand-card:focus-within h4 {
  color: var(--accent);
}
.service-card:hover ul,
.service-card:focus-within ul,
.solution-card:hover p,
.brand-card:hover p,
.solution-card:focus-within p,
.brand-card:focus-within p {
  color: #dbe3f0;
}
.solution-card:hover .link-cta,
.solution-card:focus-within .link-cta {
  color: var(--white);
}
.solution-card:hover .link-cta:hover,
.solution-card:focus-within .link-cta:hover {
  color: var(--accent);
}
.about-tagline-card:hover,
.about-tagline-card:focus-within {
  background-color: var(--accent);
  color: var(--navy-dark);
}
.about-tagline-card:hover .tagline-sub,
.about-tagline-card:hover .tagline-text,
.about-tagline-card:focus-within .tagline-sub,
.about-tagline-card:focus-within .tagline-text {
  color: var(--navy-dark);
}
@media (prefers-reduced-motion: reduce) {
  .service-card,
  .solution-card,
  .brand-card,
  .about-tagline-card { transition: none; }
  .service-card:hover,
  .solution-card:hover,
  .brand-card:hover,
  .about-tagline-card:hover,
  .service-card:focus-within,
  .solution-card:focus-within,
  .brand-card:focus-within,
  .about-tagline-card:focus-within { transform: none; }
}
/* Carrusel 3D circular */
.carousel3d { outline: none; user-select: none; touch-action: pan-y; }
.carousel-stage {
  perspective: 1400px;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.carousel-ring {
  position: relative;
  width: 260px;
  height: 270px;
  transform-style: preserve-3d;
  transition: transform .9s cubic-bezier(.2, .7, .2, 1);
}
.pillar-card {
  position: absolute;
  inset: 0;
  background: var(--white);
  border: 1px solid #e6eaf0;
  border-radius: 16px;
  padding: 26px 20px;
  text-align: center;
  box-shadow: 0 14px 34px rgba(20, 38, 74, 0.18);
  backface-visibility: hidden;
  cursor: pointer;
  opacity: .55;
  transition: opacity .6s ease, background-color .4s ease, color .4s ease;
}
.pillar-card.is-active {
  opacity: 1;
  cursor: default;
  background: var(--navy);
  color: var(--white);
  border-color: var(--accent);
}
.pillar-icon { font-size: 2.4rem; display: block; margin-bottom: 10px; }
.pillar-card h3 { margin: 0 0 6px; color: var(--navy); }
.pillar-card p { margin: 0 0 10px; color: var(--muted); }
.pillar-tags { font-size: .8rem; color: var(--navy-light); font-weight: 600; }
.pillar-card.is-active h3 { color: var(--accent); }
.pillar-card.is-active p,
.pillar-card.is-active .pillar-tags { color: #dbe3f0; }
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 10px;
}
.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--navy);
  color: var(--white);
  font-size: 1rem;
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
}
.carousel-btn:hover { background: var(--navy-light); transform: scale(1.08); }
.carousel-dots { display: flex; gap: 10px; }
.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: #8fa3c4;
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
}
.carousel-dot.is-active { background: var(--accent); transform: scale(1.3); }
.carousel-btn:focus-visible,
.carousel-dot:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.carousel-stage { height: 380px; }
.carousel-ring { width: 420px; height: 320px; }
.photo-card { margin: 0; padding: 10px; display: flex; flex-direction: column; }
.photo-card img {
  width: 100%;
  flex: 1;
  min-height: 0;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}
.photo-card h3 { margin: 10px 0 2px; font-size: .95rem; line-height: 1.25; }
@media (max-width: 520px) {
  .carousel-ring { width: 290px; height: 260px; }
  .carousel-stage { height: 320px; }
}
@media (prefers-reduced-motion: reduce) {
  .carousel-ring, .pillar-card { transition: none; }
}

/* ===== Secciones genéricas ===== */
.section-title {
  text-align: center;
  color: var(--navy);
  font-size: 1.9rem;
  margin-bottom: 12px;
}
.section-title.light { color: var(--white); text-align: left; }
.section-subtitle {
  text-align: center;
  color: var(--muted);
  max-width: 720px;
  margin: 0 auto 40px;
}

/* ===== Servicios ===== */
.services,
.solutions,
.brands,
.sectors,
.about {
  background:
    radial-gradient(ellipse 45% 55% at var(--glow-x, 50%) 40%, rgba(242, 167, 27, 0.18), transparent 70%),
    radial-gradient(circle at 8% 10%, rgba(43, 78, 140, 0.16), transparent 40%),
    radial-gradient(circle at 92% 90%, rgba(43, 78, 140, 0.16), transparent 40%),
    linear-gradient(180deg, #e6edf8 0%, #cbd9ef 100%);
}
.solutions { --glow-x: 85%; }
.brands { --glow-x: 15%; }
.sectors { --glow-x: 80%; }
.about { --glow-x: 20%; }
.services { padding: 70px 0; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--white);
  border: 1px solid #e6eaf0;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.service-card h3 { color: var(--navy); margin-top: 0; font-size: 1.05rem; }
.service-card ul { padding-left: 18px; margin: 0; color: var(--muted); }
.service-card li { margin-bottom: 6px; }

/* ===== Soluciones ===== */
.solutions { padding: 70px 0; }
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}
.solution-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--accent);
}
.solution-card h3 { color: var(--navy); margin-top: 0; font-size: 1.1rem; }
.solution-card p { color: var(--muted); }
.link-cta { font-weight: 700; color: var(--navy-light); }
.link-cta:hover { color: var(--navy); }

/* ===== Marcas ===== */
.brands { padding: 70px 0; }
.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.brand-card {
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.brand-card h4 { margin: 0 0 6px; color: var(--navy); }
.brand-card p { margin: 0; color: var(--muted); font-size: .92rem; }
.brands-note { margin-top: 24px; font-size: .85rem; color: var(--muted); text-align: center; }

/* ===== Sectores ===== */
.sectors { padding: 70px 0; }
.sectors-table-wrap { overflow-x: auto; }
.sectors-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.sectors-table th, .sectors-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid #eceff3;
}
.sectors-table th {
  background: var(--navy);
  color: var(--white);
}
.sectors-table tr:last-child td { border-bottom: none; }
.sectors-table tr:hover td { background: #f0f4fa; }

/* ===== Nosotros ===== */
.about { padding: 70px 0; }
.about-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: center;
}
.about .section-title { text-align: left; }
.about-facts { list-style: none; padding: 0; margin-top: 20px; }
.about-facts li { margin-bottom: 8px; }
.about-tagline-card {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
  box-shadow: var(--shadow);
}
.about-logo { width: 80px; height: 80px; margin: 0 auto 14px; object-fit: contain; background: var(--white); border-radius: 50%; padding: 10px; }
.tagline-title { font-size: 1.5rem; font-weight: 800; letter-spacing: 1px; margin: 0; }
.tagline-sub { color: var(--accent); font-weight: 600; margin: 6px 0; }
.tagline-text { color: #dbe3f0; margin: 0; }

/* ===== Contacto ===== */
.contact {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  color: var(--white);
  padding: 70px 0;
}
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.contact-list { list-style: none; padding: 0; margin-top: 20px; }
.contact-list li { margin-bottom: 10px; color: #dbe3f0; }
.contact-list a { text-decoration: underline; }

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--text);
  box-shadow: var(--shadow);
}
.contact-form label { font-weight: 600; margin-top: 10px; font-size: .9rem; }
.contact-form input, .contact-form textarea {
  padding: 10px 12px;
  border: 1px solid #d6dce4;
  border-radius: 6px;
  font-family: inherit;
  font-size: .95rem;
}
.contact-form button { margin-top: 16px; }

/* ===== Footer ===== */
.site-footer { background: var(--navy-dark); color: #b9c4d6; padding: 26px 0; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-logo { width: 36px; height: 36px; background: var(--white); border-radius: 50%; padding: 4px; }
.footer-brand .brand-name { color: var(--white); }
.footer-copy { font-size: .82rem; margin: 0; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-inner, .contact-inner { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
  }
  .main-nav ul {
    position: absolute;
    top: 68px;
    right: 20px;
    left: 20px;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: none;
  }
  .main-nav ul li { width: 100%; }
  .main-nav ul a {
    display: flex;
    align-items: center;
    min-height: 44px;
  }
  .main-nav .btn-nav { min-height: 44px; }
  .main-nav ul.open { display: flex; }
  .hero-inner { flex-direction: column; text-align: center; }
  .hero-actions { justify-content: center; }
  .services-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
}
