/*
Theme Name: APV Tecnología
Theme URI: https://apvid.com.mx/
Author: Asesoría en Proyectos de Videoconferencia
Description: Tema corporativo para APV: videoconferencia, comunicaciones unificadas, redes, CCTV y control de accesos.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: apv-tecnologia
*/

:root{
  --navy:#073b4c; --teal:#084c61; --orange:#f47b20; --cream:#fbf7f0;
  --ink:#163746; --muted:#5d7078; --white:#fff; --line:#e7ddd0;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:Arial,Helvetica,sans-serif;color:var(--ink);background:var(--cream);line-height:1.55}
a{text-decoration:none;color:inherit}
.container{width:min(1180px,92%);margin:auto}
header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.96);backdrop-filter:blur(10px);border-bottom:1px solid #eee}
.nav{height:76px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.brand{display:flex;align-items:center;gap:12px;font-weight:800;color:var(--navy);line-height:1.05}
.logo{width:43px;height:43px;border-radius:13px;background:linear-gradient(135deg,var(--orange),#ffb347);display:grid;place-items:center;color:#fff;font-size:22px;box-shadow:0 8px 22px #f47b2030}
.brand span{font-size:15px}
nav{display:flex;gap:25px;font-size:13px;font-weight:700}
nav a:hover{color:var(--orange)}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:13px 22px;border-radius:28px;font-weight:800;font-size:14px;border:0;cursor:pointer}
.btn-orange{background:var(--orange);color:#fff;box-shadow:0 10px 25px #f47b2035}
.btn-outline{border:1px solid #fff;color:#fff;background:transparent}
.hero{min-height:620px;display:flex;align-items:center;position:relative;overflow:hidden;background:
linear-gradient(90deg,rgba(4,38,49,.86) 0%,rgba(4,38,49,.72) 48%,rgba(4,38,49,.2) 100%),
url('https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1800&q=85') center/cover}
.hero:after{content:"";position:absolute;right:-120px;bottom:-160px;width:480px;height:480px;border-radius:50%;border:70px solid #f47b20;opacity:.8}
.hero-content{position:relative;z-index:2;color:#fff;max-width:650px;padding:80px 0}
.kicker{color:#ff9b43;text-transform:uppercase;letter-spacing:2px;font-size:13px;font-weight:800;margin-bottom:15px}
h1{font-size:clamp(42px,5vw,68px);line-height:1.03;margin-bottom:22px}
.hero p{font-size:19px;max-width:610px;color:#eaf3f5;margin-bottom:30px}
.actions{display:flex;gap:14px;flex-wrap:wrap}
section{padding:82px 0}
.section-head{max-width:720px;margin-bottom:38px}
.section-head h2{font-size:38px;line-height:1.1;margin-bottom:13px}
.section-head p{color:var(--muted)}
.orange-line{width:42px;height:4px;background:var(--orange);border-radius:4px;margin-bottom:14px}
.solutions{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.card{background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden;box-shadow:0 12px 30px rgba(7,59,76,.06)}
.card-img{height:160px;background-size:cover;background-position:center}
.card-body{padding:22px}
.card h3{font-size:20px;margin-bottom:8px}
.card p{font-size:14px;color:var(--muted)}
.card a{display:inline-block;margin-top:15px;color:var(--orange);font-size:13px;font-weight:800}
.uc{background:#fff}
.uc-wrap{display:grid;grid-template-columns:1fr 1fr;gap:55px;align-items:center}
.uc-image{height:390px;border-radius:25px;background:url('https://images.unsplash.com/photo-1556761175-b413da4baf72?auto=format&fit=crop&w=1200&q=85') center/cover;box-shadow:25px 25px 0 #f47b2020}
.modes{display:flex;gap:0;margin:28px 0}
.mode{flex:1;padding:15px;border-right:1px solid var(--line);text-align:center;font-weight:800;font-size:14px}
.mode:last-child{border:0}
.logos{display:flex;flex-wrap:wrap;gap:28px 34px;margin-top:25px;align-items:center}
.logo-pill{background:#fff;border:0;border-radius:0;padding:0;width:150px;height:62px;display:flex;align-items:center;justify-content:center}
.logo-pill img{display:block;max-width:100%;max-height:48px;width:auto;height:auto;object-fit:contain}
.uc .logos{gap:24px 30px}
.uc .logo-pill{width:135px;height:58px}
.uc .logo-pill img{max-height:44px}
.brands{background:#f2eadf}
.brand-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}
.brand-box{background:#fff;border-radius:20px;padding:28px;border:1px solid var(--line)}
.brand-box h3{margin-bottom:15px}
.projects{display:grid;grid-template-columns:repeat(7,1fr);gap:10px}
.project{height:170px;border-radius:14px;background-size:cover;background-position:center;position:relative;overflow:hidden}
.project span{position:absolute;bottom:0;left:0;right:0;padding:35px 12px 11px;color:#fff;font-weight:800;font-size:12px;background:linear-gradient(transparent,rgba(0,0,0,.75))}
.why{background:var(--navy);color:#fff}
.why-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:25px}
.why-item{border-left:1px solid #ffffff35;padding-left:22px}
.why-item b{display:block;color:#ff9b43;font-size:30px;margin-bottom:8px}
.why-item h3{margin-bottom:7px}
.why-item p{font-size:14px;color:#d9e8eb}
.contact{background:#fff}
.contact-grid{display:grid;grid-template-columns:1fr 1.4fr;gap:35px}
.contact-card{border-radius:22px;padding:35px;background:linear-gradient(135deg,var(--navy),#0b6075);color:#fff;min-height:360px}
.contact-card h2{font-size:35px;line-height:1.1;margin-bottom:16px}
.contact-card p{color:#dcebed}
.contact-info{margin-top:35px;display:grid;gap:13px;font-size:14px}
form{display:grid;grid-template-columns:1fr 1fr;gap:15px}
input,select,textarea{width:100%;border:1px solid #ddd4c8;border-radius:10px;padding:14px;font:inherit;background:#fff}
textarea{min-height:150px;resize:vertical;grid-column:1/-1}
.full{grid-column:1/-1}
footer{background:#042b38;color:#cfe0e4;padding:35px 0}
.footer-row{display:flex;justify-content:space-between;gap:25px;align-items:center}
footer small{font-size:12px}
@media(max-width:900px){
 nav{display:none}.solutions{grid-template-columns:1fr 1fr}.uc-wrap,.contact-grid,.brand-grid{grid-template-columns:1fr}.projects{grid-template-columns:repeat(3,1fr)}.why-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:560px){
 .hero{min-height:680px}.hero-content{padding:55px 0}h1{font-size:43px}.hero p{font-size:16px}
 section{padding:60px 0}.solutions,.why-grid{grid-template-columns:1fr}.projects{grid-template-columns:1fr 1fr}.project{height:145px}
 form{grid-template-columns:1fr}.full,textarea{grid-column:auto}.footer-row{flex-direction:column;align-items:flex-start}
}
.form-notice{grid-column:1/-1;padding:12px 15px;border-radius:10px;margin-bottom:12px}.form-notice.success{background:#e8f7ee;color:#176b3a}.form-notice.error{background:#fff0f0;color:#9b2424}

/* APV update: UC mode icons */
.mode-icon{display:inline-flex;align-items:center;justify-content:center;height:54px;margin-bottom:7px;line-height:1;color:var(--orange)}
.cloud-icon{font-size:52px;line-height:54px}
.building-icon{position:relative;width:54px;height:54px;flex-direction:column;justify-content:flex-end}
.building-roof{width:48px;height:9px;background:var(--orange);clip-path:polygon(50% 0,100% 100%,0 100%);display:block}
.building-body{position:relative;display:grid;grid-template-columns:repeat(2,8px);grid-auto-rows:8px;gap:5px 9px;justify-content:center;align-content:start;width:38px;height:38px;padding-top:7px;background:var(--orange);border-radius:1px 1px 3px 3px;box-sizing:border-box}
.building-body i{display:block;background:#fff;border-radius:1px}
.building-body b{position:absolute;bottom:0;left:15px;width:8px;height:11px;background:#fff}
@media(max-width:760px){.mode-icon{height:48px}.cloud-icon{font-size:46px}.building-icon{transform:scale(.9)}}
