/* =========================
   TIPOGRAFÍA / BASE
========================= */
body,
html {
  font-family: "Open Sans", sans-serif;
  text-rendering: optimizeLegibility !important;
  -webkit-font-smoothing: antialiased !important;
  color: #444;
  font-weight: 400;
  width: 100% !important;
  height: 100% !important;
}

/* Paleta HAMOTAC */
:root{
  --primary: #7A0F24;       /* guinda del emblema */
  --primary-dark: #5A0B1A;  /* guinda oscura */
  --accent: #F28C1B;        /* naranja de acento */
  --accent-dark: #D9740E;   /* naranja hover */
  --ink: #1c1c1c;
  --paper: #ffffff;
  --bg: #FAF7F7;
}

h2,
h3,
h4 { font-family: "Raleway", sans-serif; }

h2 {
  text-transform: uppercase;
  margin: 0 0 20px;
  font-weight: 800;
  font-size: 36px;
  color: var(--primary-dark);
}

h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary-dark);
}

h4 {
  font-size: 18px;
  color: var(--ink);
  font-weight: 600;
}

h5 {
  text-transform: uppercase;
  font-weight: 700;
  line-height: 20px;
}

p { font-size: 15px; }

p.intro {
  margin: 12px 0 0;
  line-height: 24px;
}

a {
  color: var(--primary);
  font-weight: 400;
}

a:hover,
a:focus {
  text-decoration: none;
  color: var(--accent);
}

ul, ol { list-style: none; padding: 0; }

hr {
  height: 2px;
  width: 70px;
  text-align: center;
  position: relative;
  background: var(--primary);
  margin-bottom: 20px;
  border: 0;
}

/* =========================
   NAVIGATION
========================= */
#menu {
  padding: 15px;
  transition: all 0.8s;
}

#menu.navbar-default {
  background-color: var(--paper);
  border-color: rgba(122,15,36,0.15);
  box-shadow: 0 0 10px rgba(242,140,27,0.35);
}

#menu a.navbar-brand {
  font-family: "Raleway", sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
}

#menu.navbar-default .navbar-nav > li > a {
  font-family: "Lato", sans-serif;
  text-transform: uppercase;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  padding: 8px 2px;
  border-radius: 0;
  margin: 9px 20px 0;
  position: relative;
}

#menu.navbar-default .navbar-nav > li > a:after {
  display: block;
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, var(--accent) 0%, var(--accent-dark) 100%);
  content: "";
  transition: width 0.2s;
}

#menu.navbar-default .navbar-nav > li > a:hover:after { width: 100%; }

.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
  background-color: transparent;
}

.navbar-default .navbar-nav > .active > a:after,
.navbar-default .navbar-nav > .active > a:hover:after,
.navbar-default .navbar-nav > .active > a:focus:after {
  display: block !important;
  position: absolute !important;
  left: 0 !important;
  bottom: -1px !important;
  width: 100% !important;
  height: 2px !important;
  background: linear-gradient(to right, var(--primary) 0%, var(--primary) 100%) !important;
  content: "" !important;
  transition: width 0.2s !important;
}

.navbar-toggle { border-radius: 0; }

.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus {
  background-color: var(--accent);
  border-color: var(--primary);
}

.navbar-default .navbar-toggle:hover > .icon-bar { background-color: var(--paper); }

.section-title { margin-bottom: 70px; }

.section-title h2 {
  position: relative;
  margin-top: 10px;
  margin-bottom: 15px;
  padding-bottom: 15px;
}

.section-title h2::after {
  position: absolute;
  content: "";
  background: linear-gradient(to right, var(--primary) 0%, var(--primary) 100%);
  height: 4px;
  width: 60px;
  bottom: 0;
  margin-left: -30px;
  left: 50%;
}

.section-title p { font-size: 18px; }

/* =========================
   BOTONES
========================= */
.btn-custom {
  font-family: "Raleway", sans-serif;
  text-transform: uppercase;
  color: #fff;
  background-color: var(--primary-dark);
  background-image: linear-gradient(to right, var(--primary) 0%, var(--accent) 100%);
  padding: 14px 34px;
  letter-spacing: 1px;
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  border-radius: 25px;
  transition: all 0.3s linear;
  border: 0;
}

.btn-custom:hover,
.btn-custom:focus,
.btn-custom.focus,
.btn-custom:active,
.btn-custom.active {
  color: #fff;
  background-image: none;
  background-color: var(--accent-dark);
}

.btn:active,
.btn.active {
  background-image: none;
  outline: 0;
  -webkit-box-shadow: none;
  box-shadow: none;
}

a:focus,
.btn:focus,
.btn:active:focus,
.btn.active:focus,
.btn.focus,
.btn:active.focus,
.btn.active.focus {
  outline: none;
  outline-offset: none;
}

/* =========================
   HEADER / HERO
========================= */
.intro {
  display: table;
  width: 100%;
  padding: 0;
  background: url(../img/intro-bg.jpg) center center no-repeat;
  background-color: var(--primary);
  background-size: cover;
}

.intro .overlay { background: rgba(0, 0, 0, 0.35); }

.intro h1 {
  font-family: "Raleway", sans-serif;
  color: #fff;
  font-size: 82px;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 0;
  margin-bottom: 10px;
}

.intro h1 span {
  font-weight: 800;
  color: var(--accent);
}

.intro p {
  color: #fff;
  font-size: 22px;
  font-weight: 300;
  line-height: 30px;
  margin: 0 auto 60px;
}

header .intro-text {
  padding-top: 350px;
  padding-bottom: 200px;
  text-align: center;
}

/* =========================
   FEATURES
========================= */
#features { background: #f6f6f6; }

#features i.fa {
  font-size: 38px;
  margin-bottom: 20px;
  transition: all 0.5s;
  color: #fff;
  width: 100px;
  height: 100px;
  padding: 30px 0;
  border-radius: 50%;
  background: linear-gradient(to right, var(--primary) 0%, var(--primary) 100%);
  box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.05);
}

/* =========================
   ABOUT
========================= */
#about { padding: 100px 0; }

#about h3 { font-size: 22px; margin: 0 0 20px; }

#about h2 {
  position: relative;
  margin-bottom: 15px;
  padding-bottom: 15px;
}

#about h2::after {
  position: absolute;
  content: "";
  background: linear-gradient(to right, var(--primary) 0%, var(--primary) 100%);
  height: 4px;
  width: 60px;
  bottom: 0;
  left: 0;
}

#about .about-text li {
  margin-bottom: 6px;
  margin-left: 6px;
  list-style: none;
  padding: 0;
}

#about .about-text li:before {
  content: "\f00c";
  font-family: "FontAwesome";
  color: var(--accent);
  font-size: 11px;
  font-weight: 300;
  padding-right: 8px;
}

#about img {
  width: 520px;
  margin-top: 10px;
  background: #fff;
  border-right: 0;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.06);
}

#about p { line-height: 24px; margin: 30px 0; }

/* =========================
   SERVICES
========================= */
#services {
  padding: 100px 0;
  background: linear-gradient(to right, var(--primary-dark) 0%, var(--primary) 100%);
  color: #fff;
}

#services .service-desc { margin: 10px 10px 20px; }

#services h2 { color: #fff; }

#services .section-title h2::after {
  position: absolute;
  content: "";
  background: rgba(255, 255, 255, 0.3);
  height: 4px;
  width: 60px;
  bottom: 0;
  margin-left: -30px;
  left: 50%;
}

#services i.fa {
  font-size: 42px;
  width: 120px;
  height: 120px;
  padding: 40px 0;
  background: linear-gradient(to right, var(--primary) 0%, var(--primary) 100%);
  border-radius: 50%;
  color: var(--accent);
  box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.05);
}

#services h3 {
  font-weight: 600;
  padding: 5px 0;
  color: #fff;
}

#services p { color: rgba(255, 255, 255, 0.85); }

#services .service-desc { margin-bottom: 40px; }

/* =========================
   PORTFOLIO / GALERÍA
========================= */
#portfolio { padding: 100px 0; }

.portfolio-item { margin: 1px -15px 0 -14px; padding: 0; }

.portfolio-item .hover-bg {
  overflow: hidden;
  position: relative;
  margin: 0;
}

.hover-bg .hover-text {
  position: absolute;
  text-align: center;
  margin: 0 auto;
  color: #fff;
  background: linear-gradient(to right, rgba(242,140,27,0.35) 0%, rgba(122,15,36,0.65) 60%);
  padding: 30% 0 0;
  height: 100%;
  width: 100%;
  opacity: 0;
  transition: all 0.5s;
}

.hover-bg .hover-text > h4 {
  opacity: 0;
  color: #fff;
  -webkit-transform: translateY(100%);
  transform: translateY(100%);
  transition: all 0.3s;
  font-size: 18px;
  letter-spacing: 1px;
  font-weight: 500;
  text-transform: uppercase;
}

.hover-bg:hover .hover-text > h4 {
  opacity: 1;
  -webkit-backface-visibility: hidden;
  -webkit-transform: translateY(0);
  transform: translateY(0);
}

.hover-bg:hover .hover-text { opacity: 1; }

/* =========================
   TESTIMONIOS
========================= */
#testimonials { padding: 100px 0; background: #f6f6f6; }

#testimonials i {
  color: #b32b2b;
  font-size: 32px;
  margin-bottom: 20px;
}

.testimonial { position: relative; padding: 20px; }

.testimonial-image { float: left; margin-right: 15px; }

.testimonial-image,
.testimonial-image img {
  display: block;
  width: 64px;
  height: 64px;
  border-radius: 50%;
}

.testimonial-content { position: relative; overflow: hidden; }

.testimonial-content p {
  margin-bottom: 0;
  font-size: 14px;
  font-style: italic;
}

.testimonial-meta {
  margin-top: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
}

/* =========================
   TEAM
========================= */
#team { padding: 100px 0; }

#team h4 { margin: 5px 0; }

#team .team-img { width: 240px; }

#team .thumbnail { background: transparent; border: 0; }

#team .thumbnail .caption { padding: 10px 0 0; color: #888; }

/* =========================
   CONTACTO
========================= */
#contact {
  padding: 100px 0 60px;
  background: linear-gradient(to right, var(--primary) 0%, var(--primary) 100%);
  color: rgba(255, 255, 255, 0.9);
}

#contact .section-title { margin-bottom: 40px; }

#contact .section-title p { font-size: 16px; }

#contact h2 {
  color: #fff;
  margin-top: 10px;
  margin-bottom: 15px;
  padding-bottom: 15px;
}

#contact .section-title h2::after {
  position: absolute;
  content: "";
  background: rgba(255, 255, 255, 0.35);
  height: 4px;
  width: 60px;
  bottom: 0;
  left: 30px;
}

#contact h3 {
  color: #fff;
  margin-top: 80px;
  margin-bottom: 25px;
  padding-bottom: 20px;
  font-weight: 400;
}

#contact form { padding-top: 20px; }

#contact .text-danger { color: #cc0033; text-align: left; }

#contact .btn-custom {
  margin: 30px 0;
  background: transparent;
  border: 2px solid #fff;
}

#contact .btn-custom:hover {
  color: var(--primary);
  background: #fff;
}

label {
  font-size: 12px;
  font-weight: 400;
  font-family: "Open Sans", sans-serif;
  float: left;
}

#contact .form-control {
  display: block;
  width: 100%;
  padding: 6px 12px;
  font-size: 16px;
  line-height: 1.42857143;
  color: #444;
  background-color: #fff;
  background-image: none;
  border: 1px solid #ddd;
  border-radius: 0;
  -webkit-box-shadow: none;
  box-shadow: none;
  -webkit-transition: none;
  -o-transition: none;
  transition: none;
}

#contact .form-control:focus {
  border-color: #999;
  outline: 0;
  -webkit-box-shadow: transparent;
  box-shadow: transparent;
}

.form-control::-webkit-input-placeholder,
.form-control:-moz-placeholder,
.form-control::-moz-placeholder,
.form-control:-ms-input-placeholder { color: #777; }

#contact .contact-item { margin: 20px 0; }

#contact .contact-item span {
  color: var(--accent);
  margin-bottom: 10px;
  display: block;
}

#contact .contact-item i.fa { margin-right: 10px; }

#contact .social {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 50px;
  margin-top: 50px;
  text-align: center;
}

#contact .social ul li {
  display: inline-block;
  margin: 0 20px;
}

#contact .social i.fa {
  font-size: 22px;
  width: 48px;
  height: 48px;
  padding: 12px 0;
  border: 2px solid var(--accent);
  color: var(--accent);
  border-radius: 50%;
  transition: all 0.3s;
}

#contact .social i.fa:hover {
  color: var(--primary);
  background: #fff;
}

/* =========================
   FOOTER
========================= */
#footer {
  background: var(--primary-dark);
  padding: 30px 0;
}

#footer p {
  color: var(--accent);
  font-size: 14px;
}

#footer a { color: #fff; }

#footer a:hover { border-bottom: 2px solid #fff; }

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
  #about img { margin: 50px 0; }
}

.profile-one { padding: 64px 0; }
.profile-card {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 36px;
  align-items: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 24px;
  padding: 36px;
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}
@media (max-width: 992px) { .profile-card { grid-template-columns: 1fr; } }

.eyebrow {
  text-transform: uppercase; letter-spacing: .12em;
  font-weight: 700; color: #f2a007; margin: 0 0 8px;
}
.profile-name {
  margin: 0; font-weight: 800; line-height: 1.1; color: #fff;
  font-size: clamp(28px, 4vw, 42px);
}
.profile-role { margin: 6px 0 14px; color: rgba(255,255,255,.9); font-weight: 700; }
.profile-summary { color: rgba(255,255,255,.85); margin-bottom: 18px; }

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px 18px; margin: 14px 0 10px;
}
@media (max-width: 576px){ .facts { grid-template-columns: 1fr; } }
.fact { display: flex; gap: 8px; align-items: baseline; }
.fact-label { color: rgba(255,255,255,.65); font-weight: 600; min-width: 110px; }
.fact-value { color: rgba(255,255,255,.95); font-weight: 700; }

.lines {
  margin: 14px 0 0; padding-left: 18px;
  color: rgba(255,255,255,.9);
}
.lines li { margin-bottom: 6px; }

.profile-photo-wrap {
  position: relative; border-radius: 22px; overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
}
.profile-photo {
  width: 100%; height: 100%; object-fit: cover;
  aspect-ratio: 4/5; display: block;
}

/* ====== HAMOTAC THEME ====== */
:root{
  --ham-burgundy:#6f0f18;              /* granate principal */
  --ham-burgundy-2:#3d0a10;            /* granate profundo */
  --ham-gold:#f2a007;                   /* dorado de acento */
  --ham-ink:rgba(255,255,255,.96);      /* texto principal */
  --ham-ink-2:rgba(255,255,255,.85);    /* texto secundario */
  --ham-ink-3:rgba(255,255,255,.65);    /* texto tenue */
}

/* Sección perfil */
.profile-one{ padding:64px 0; background:transparent; }

.profile-card{
  display:grid;
  grid-template-columns: 1.25fr 1fr;
  gap:40px;
  align-items:center;
  border-radius:28px;
  padding:42px;
  background: radial-gradient(120% 120% at 0% 0%,
              rgba(255,255,255,.04) 0%,
              rgba(255,255,255,.02) 40%,
              transparent 100%),
            linear-gradient(160deg, var(--ham-burgundy) 0%, var(--ham-burgundy-2) 100%);
  box-shadow:
    0 10px 30px rgba(0,0,0,.25),
    inset 0 0 0 1px rgba(255,255,255,.08);
}
@media (max-width: 992px){ .profile-card{ grid-template-columns:1fr; padding:28px; }}

/* Encabezados */
.eyebrow{
  margin:0 0 10px;
  text-transform:uppercase;
  letter-spacing:.14em;
  font-weight:800;
  color:var(--ham-gold);
}

.profile-name{
  margin:0;
  font-weight:900;
  line-height:1.05;
  color:var(--ham-ink);
  font-size: clamp(30px, 4.8vw, 48px);
}

.profile-role{
  margin:8px 0 16px;
  color:var(--ham-ink-2);
  font-weight:700;
  font-size: clamp(16px, 2.2vw, 20px);
}

.profile-summary{
  color:var(--ham-ink-2);
  margin-bottom:18px;
  max-width: 62ch;
}

/* Datos clave */
.facts{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap:12px 18px;
  margin: 14px 0 6px;
}
@media (max-width:576px){ .facts{ grid-template-columns:1fr; } }

.fact{
  display:flex; gap:10px; align-items:baseline;
  padding:10px 14px; border-radius:14px;
  background: rgba(0,0,0,.18);
  border:1px solid rgba(255,255,255,.08);
}
.fact-label{ color:var(--ham-ink-3); font-weight:700; min-width:110px; }
.fact-value{ color:var(--ham-ink); font-weight:800; }

/* Líneas de trabajo */
.lines{
  margin:16px 0 0; padding-left: 18px;
  color:var(--ham-ink-2);
}
.lines li{ margin-bottom:8px; }

/* Foto */
.profile-photo-wrap{
  position:relative; border-radius:24px; overflow:hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
  outline: 2px solid rgba(242,160,7,.25);
}
.profile-photo{
  width:100%; height:100%; display:block; object-fit:cover;
  aspect-ratio: 4/5;
}

/* Divider sutil (opcional bajo el título) */
.profile-content .divider{
  width:72px; height:4px; border-radius:999px;
  background: linear-gradient(90deg,var(--ham-gold), #ffce66);
  margin:12px 0 16px;
}

.divider {
  width: 72px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ham-gold), #ffce66);
  margin: 12px 0 18px;
}

/* ===== Contacto HAMOTAC ===== */
.contact-only { 
  padding: 60px 0; 
  text-align: center; 
}

.contact-only .section-title h2 {
  color: #fff;
  margin-bottom: 6px;
  font-weight: 900;
  letter-spacing: .02em;
}

.contact-subtitle {
  color: rgba(255,255,255,.85);
  max-width: 600px;
  margin: 0 auto 28px;
}

/* Contenedor más estrecho */
.contact-card {
  max-width: 800px;
  margin: 0 auto;
  background: linear-gradient(160deg, #6f0f18, #3d0a10);
  border-radius: 20px;
  padding: 32px 24px;
  box-shadow: 0 8px 28px rgba(0,0,0,.25);
  display: grid;
  gap: 24px;
}

/* Lista de info */
.contact-list {
  display: grid;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.08);
}

.contact-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(242,160,7,.15);
  color: #f2a007;
  font-size: 16px;
}

.contact-label {
  color: rgba(255,255,255,.7);
  font-weight: 600;
  font-size: 14px;
}

.contact-value {
  color: #fff;
  font-weight: 700;
  margin: 0;
}

.contact-value a {
  color: #fff;
  text-decoration: underline transparent;
}
.contact-value a:hover {
  text-decoration-color: #f2a007;
}

/* Redes sociales */
.contact-social {
  text-align: center;
  margin-top: 8px;
}

.contact-social .contact-label {
  display: block;
  margin-bottom: 10px;
  color: rgba(255,255,255,.8);
  font-weight: 700;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.social-icons a {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(242,160,7,.12);
  color: #f2a007;
  font-size: 18px;
  transition: transform .15s ease, background .15s ease;
}

.social-icons a:hover {
  transform: translateY(-2px);
  background: rgba(242,160,7,.25);
}

/* Nota final */
.contact-footnote {
  margin-top: 18px;
  color: rgba(255,255,255,.65);
  font-size: 14px;
}

/* =========================
   SERVICES (scoped en #services)
========================= */
#services {
  position: relative;
  padding: 80px 0 96px;
  overflow: hidden;
  background: linear-gradient(180deg, #6b0f1a 0%, #5a0d18 30%, #3b0a12 100%);
  --vino-700:#5a0d18;
  --vino-600:#6b0f1a;
  --vino-800:#3b0a12;
  --dorado:#f2a01b;
  --blanco:#ffffff;
  --paper: rgba(255,255,255,.08);
  --stroke: rgba(255,255,255,.18);
  --text: var(--blanco);
  --muted: rgba(255,255,255,.87);
  --accent: var(--dorado);
}

#services .svc-wrap{ position:relative; z-index:1; }
#services .svc-container{
  width:100%;
  max-width:1160px;
  margin:0 auto;
  padding:0 20px;
}

#services .svc-title h2{
  color:var(--blanco);
  text-align:center;
  margin:0 0 10px;
  text-transform:uppercase;
  letter-spacing:.6px;
  font-weight:800;
  line-height:1.1;
}
#services .svc-title p{
  color:var(--muted);
  text-align:center;
  max-width:760px;
  margin:0 auto 34px;
  font-size:16px;
  line-height:1.6;
}

/* Grid responsive */
#services .svc-windows{
  display: grid;
  gap: 24px;
  align-items: stretch;
  justify-content: center;
  grid-template-columns: repeat(1, minmax(260px, 1fr));
}
@media (min-width: 640px){
  #services .svc-windows{ grid-template-columns: repeat(2, minmax(280px, 1fr)); }
}
@media (min-width: 1024px){
  #services .svc-windows{ grid-template-columns: repeat(3, minmax(300px, 1fr)); }
}
@media (min-width: 1440px){
  #services .svc-windows{ grid-template-columns: repeat(3, minmax(320px, 1fr)); }
}

/* Card */
#services .svc-window{
  position:relative;
  border-radius:18px;
  border:1px solid var(--stroke);
  background:var(--paper);
  box-shadow:0 24px 48px rgba(0,0,0,.35);
  overflow:hidden;
  outline:none;
  transform: skewY(-4deg);
  transition: transform .25s ease, box-shadow .25s ease, background .2s ease, border-color .25s ease;
}
#services .svc-window:focus-visible{
  border-color: rgba(242,160,27,.9);
  box-shadow:0 0 0 4px rgba(242,160,27,.25), 0 24px 48px rgba(0,0,0,.35);
}
#services .svc-window:hover{
  transform: translateY(-6px) skewY(-2.5deg);
  box-shadow:0 40px 90px rgba(0,0,0,.45);
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.32);
}

#services .svc-body{
  transform: skewY(4deg);
  height:100%;
  display:grid;
  grid-template-rows: auto 1fr auto;
  padding:22px 18px 16px;
  color:var(--text);
}

#services .svc-chip{
  width:44px; height:44px;
  display:grid; place-items:center;
  border-radius:12px;
  background: linear-gradient(135deg, rgba(242,160,27,.55), rgba(255,218,106,.35));
  box-shadow: 0 10px 22px rgba(0,0,0,.25);
}

#services .svc-title-3{
  margin:12px 0 8px;
  font-weight:800;
  font-size:18px;
  line-height:1.25;
  color:var(--blanco);
}

#services .svc-text{
  margin:0;
  color:var(--muted);
  font-size:15px;
  line-height:1.58;
  display:-webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow:hidden;
}

#services .svc-underline{
  height:3px; width:62px; border-radius:3px; margin-top:16px;
  background: linear-gradient(90deg, var(--vino-700), var(--dorado));
  box-shadow: 0 2px 8px rgba(242,160,27,.45);
}

#services .svc-cta{
  display:inline-block;
  border-radius:28px;
  padding:12px 22px;
  font-weight:800;
  color:#22070b;
  background: linear-gradient(90deg, #a31227, var(--dorado));
  box-shadow:0 12px 24px rgba(0,0,0,.28);
  text-decoration:none;
  transition: filter .2s ease, transform .2s ease;
}
#services .svc-cta:hover{ filter:brightness(1.06); transform: translateY(-2px); }
#services .svc-cta:focus-visible{ outline:4px solid rgba(242,160,27,.35); outline-offset:3px; }

/* Responsive tweaks */
@media (prefers-reduced-motion: reduce) {
  #services .svc-window, #services .svc-cta { transition: none !important; }
  #services .svc-window, #services .svc-body { transform: none !important; }
}
@media (max-width: 1024px){
  #services .svc-title h2 { font-size: 28px; }
}
@media (max-width: 768px){
  #services .svc-title h2 { font-size: 24px; }
  #services .svc-title p  { font-size: 15px; margin-bottom: 28px; }
  #services .svc-windows{ gap:16px; }
  #services .svc-text{ -webkit-line-clamp: 5; }
  #services .svc-window{ transform: skewY(-2.5deg); }
  #services .svc-body{ transform: skewY(2.5deg); }
}
@media (max-width: 480px){
  #services .svc-container{ padding:0 16px; }
  #services .svc-text{ font-size:14.5px; -webkit-line-clamp: 5; }
  #services .svc-chip{ width:40px; height:40px; }
}
/* ====== GALLERY ROTATOR (2 filas, autoplay) ====== */
#portfolio .gal-rotator{ position: relative; }

#portfolio .gal-viewport{
  position: relative;
  min-height: 320px; /* evita salto de layout entre slides */
}

#portfolio .gal-slide{
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .6s ease;
}
#portfolio .gal-slide.is-active{
  opacity: 1;
  pointer-events: auto;
}

/* Grid de 2 filas x columnas variables */
#portfolio .gal-grid{
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
  grid-auto-rows: 1fr; /* altura pareja */
}

/* Ajustes responsivos por si JS llega tarde en el primer paint */
@media (max-width: 991.98px){
  #portfolio .gal-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 575.98px){
  #portfolio .gal-grid{ grid-template-columns: repeat(1, minmax(0,1fr)); }
}

/* Items */
#portfolio .gal-item{
  border-radius: 12px;
  overflow: hidden;
}

/* Controles */
#portfolio .gal-controls{
  display: flex; align-items: center; justify-content: center;
  gap: 12px; margin-top: 12px;
}
#portfolio .gal-nav{
  border: 0; border-radius: 999px; width: 40px; height: 40px;
  font-size: 22px; line-height: 1; cursor: pointer;
  background: rgba(122,15,36,.12);
  color: var(--primary-dark);
  transition: transform .15s ease, background .15s ease;
}
#portfolio .gal-nav:hover{ transform: translateY(-1px); background: rgba(122,15,36,.2); }

#portfolio .gal-dots{ display: flex; gap: 6px; }
#portfolio .gal-dot{
  width: 8px; height: 8px; border-radius: 999px; border: 0; cursor: pointer;
  background: rgba(122,15,36,.28);
}
#portfolio .gal-dot.is-active{ background: var(--accent); }

.t-dots { 
  display:flex; 
  justify-content:center; 
  gap:8px; 
  margin-top:14px; 
}

.t-dot {
  all: unset;                /* reset total: quita bordes/paddings nativos */
  cursor: pointer;
  width: 10px;
  height: 10px;
  aspect-ratio: 1 / 1;       /* asegura círculo */
  border-radius: 50%;
  background: rgba(0,0,0,.25);
  transition: background .25s ease, transform .25s ease;
}

.t-dot.active { 
  background: var(--accent); 
  transform: scale(1.2);     /* un poco más grande el activo */
}

.t-dot:hover,
.t-dot:focus-visible {
  background: rgba(242,160,27,.7);
  outline: none;
  transform: scale(1.2);
}

/* TESTIMONIOS */
#testimonials .testimonial-content p {
  font-size: 50px;              /* más grande */
  line-height: 1.6;             /* aireado */
  font-style: italic;
  color: #333;                  /* texto oscuro legible */
  margin-bottom: 16px;
}

#testimonials .testimonial-meta {
  font-size: 18px;              /* más grande también */
  font-weight: 700;
  color: var(--primary-dark);   /* guinda oscuro de tu paleta */
}

#testimonials .testimonial-image img {
  width: 90px;                  /* más grande la foto */
  height: 90px;
  object-fit: cover;
  margin-bottom: 14px;
  border: 3px solid var(--accent);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
