/* SOLUNOR Web - Estructura base responsive */
/* Paleta corporativa sugerida */
:root {
  --blue-dark: #003b7a;
  --blue-main: #0057a8;
  --green-main: #5dbb2f;
  --green-dark: #39930f;
  --white: #ffffff;
  --light: #f4f8fc;
  --text: #0f2d4a;
  --muted: #5e6f80;
  --shadow: 0 14px 35px rgba(0, 43, 90, .14);
  --radius: 18px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--white);
}

a { color: inherit; text-decoration: none; }

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

.site-header {
  background: linear-gradient(90deg, var(--blue-dark), var(--blue-main));
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}

.header-content {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-main), var(--blue-main));
  display: grid;
  place-items: center;
  font-size: 32px;
  font-weight: 900;
}

.brand strong {
  font-size: 30px;
  line-height: 1;
  display: block;
  letter-spacing: 1px;
}

.brand span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.main-nav a.active,
.main-nav a:hover {
  color: var(--green-main);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--green-main);
  color: var(--white);
  padding: 14px 24px;
  border-radius: 8px;
  font-weight: 800;
  border: 2px solid var(--green-main);
  box-shadow: 0 8px 18px rgba(93,187,47,.25);
}

.btn:hover { background: var(--green-dark); border-color: var(--green-dark); }

.btn-outline {
  background: var(--blue-main);
  border-color: var(--blue-main);
}

.btn-small { padding: 11px 20px; }

.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: var(--white);
  font-size: 34px;
}

.hero {
  background: linear-gradient(90deg, rgba(255,255,255,.96), rgba(245,250,255,.86)), var(--light);
  padding: 82px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 44px;
}

.eyebrow {
  color: var(--green-dark);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero h1 {
  font-size: clamp(58px, 8vw, 104px);
  line-height: .9;
  color: var(--blue-dark);
  margin: 0 0 16px;
}

.hero h2 {
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.1;
  margin: 0 0 18px;
  color: var(--blue-dark);
}

.hero p {
  font-size: 18px;
  color: var(--muted);
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-image {
  min-height: 430px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #dfeefa;
}

.image-placeholder,
.placeholder {
  height: 100%;
  min-height: 240px;
  display: grid;
  place-items: center;
  text-align: center;
  background: linear-gradient(135deg, #eef6ff, #d9edf9);
  color: var(--blue-dark);
  font-weight: 800;
  padding: 24px;
}

.section {
  padding: 76px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 42px;
}

.section-title h2 {
  color: var(--blue-dark);
  font-size: clamp(28px, 4vw, 42px);
  margin: 0 0 10px;
  text-transform: uppercase;
}

.section-title p {
  color: var(--muted);
  margin: 0;
}

.section-title h2::after {
  content: "";
  display: block;
  width: 70px;
  height: 4px;
  background: var(--green-main);
  margin: 14px auto 0;
  border-radius: 99px;
}

.cards-grid {
  display: grid;
  gap: 26px;
}

.cards-grid.four { grid-template-columns: repeat(4, 1fr); }
.cards-grid.three { grid-template-columns: repeat(3, 1fr); }

.service-card,
.team-card {
  background: var(--white);
  border: 1px solid #dce8f4;
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 43, 90, .08);
  position: relative;
}

.card-image {
  height: 190px;
}

.icon-badge {
  width: 62px;
  height: 62px;
  margin: -31px auto 10px;
  border-radius: 50%;
  background: var(--blue-main);
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 28px;
  border: 5px solid var(--white);
  position: relative;
}

.icon-badge.green { background: var(--green-main); }
.icon-badge.blue { background: var(--blue-dark); }

.service-card h3 {
  color: var(--blue-dark);
  min-height: 44px;
  padding: 0 18px;
}

.service-card p {
  color: var(--muted);
  padding: 0 20px;
  min-height: 72px;
}

.service-card a {
  display: inline-block;
  margin: 0 0 26px;
  color: var(--blue-main);
  font-weight: 800;
}

.why {
  background: linear-gradient(90deg, var(--blue-dark), var(--blue-main));
  color: var(--white);
}

.section-title.light h2 { color: var(--white); }

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  text-align: center;
}

.benefits-grid span {
  display: inline-grid;
  place-items: center;
  width: 62px;
  height: 62px;
  background: var(--green-main);
  border-radius: 50%;
  font-size: 28px;
  margin-bottom: 12px;
}

.benefits-grid h3 { margin: 0 0 8px; }
.benefits-grid p { margin: 0; color: #d9eaff; }

.team-img {
  height: 230px;
}

.team-card h3 {
  margin: 0;
  padding: 18px;
  background: var(--green-main);
  color: var(--white);
  text-transform: uppercase;
}

.cta {
  background: linear-gradient(90deg, var(--blue-main), var(--blue-dark));
  color: var(--white);
  padding: 42px 0;
}

.cta-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
}

.cta h2 { margin: 0 0 8px; }
.cta p { margin: 0; }

.site-footer {
  background: #00264d;
  color: var(--white);
  padding: 56px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 34px;
}

.footer-brand {
  font-size: 30px;
  font-weight: 900;
}

.site-footer p { color: #d5e4f2; }

.page-hero {
  padding: 80px 0;
  background: linear-gradient(90deg, var(--blue-dark), var(--blue-main));
  color: var(--white);
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  margin: 0 0 12px;
}

.content-section {
  padding: 70px 0;
}

.content-box {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.form {
  display: grid;
  gap: 16px;
}

.form input,
.form textarea,
.form select {
  width: 100%;
  padding: 14px;
  border: 1px solid #cbdbea;
  border-radius: 10px;
  font-size: 16px;
}

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

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-image { min-height: 340px; }

  .cards-grid.four {
    grid-template-columns: repeat(2, 1fr);
  }

  .benefits-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .main-nav {
    gap: 18px;
    font-size: 12px;
  }
}

@media (max-width: 768px) {
  .header-content { min-height: 74px; }

  .brand strong { font-size: 24px; }

  .menu-toggle { display: block; }

  .main-nav {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: var(--blue-dark);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 22px;
    gap: 18px;
  }

  .main-nav.open { display: flex; }

  .hero {
    padding: 44px 0;
  }

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

  .hero h2 {
    font-size: 24px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .cards-grid.four,
  .cards-grid.three,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-content {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container { width: min(94%, 100%); }

  .brand-icon {
    width: 44px;
    height: 44px;
    font-size: 26px;
  }

  .brand span { font-size: 10px; }

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

  .hero-image { min-height: 280px; }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 54px 0;
  }
}


/* Ajuste SOLUNOR: Logotipo H1 blanco en header */
.brand-image {
  display: flex;
  align-items: center;
  gap: 0;
}

.brand-image img {
  height: 48px;
  width: auto;
  display: block;
  object-fit: contain;
}

@media (max-width: 768px) {
  .brand-image img {
    height: 38px;
  }
}

@media (max-width: 480px) {
  .brand-image img {
    height: 34px;
  }
}


/* Actualización SOLUNOR: Logotipo V1 + Slogan en hero principal */
.hero-logo-v1 {
  display: block;
  width: min(520px, 100%);
  height: auto;
  margin: 12px 0 28px;
  object-fit: contain;
}

@media (max-width: 1024px) {
  .hero-logo-v1 {
    width: min(460px, 100%);
    margin: 10px 0 24px;
  }
}

@media (max-width: 768px) {
  .hero-logo-v1 {
    width: min(360px, 100%);
    margin: 8px 0 22px;
  }
}

@media (max-width: 480px) {
  .hero-logo-v1 {
    width: min(300px, 100%);
  }
}


/* ===== SOLUNOR HERO FINAL PREMIUM ===== */

.hero-custom-subtitle{
  width:100%;
  max-width:520px;
  margin:0 auto 24px auto;
  text-align:center;
  font-style:italic;
  color:#003f88;
  line-height:1.18;
  font-weight:700;
  font-size:26px;
}

.hero-custom-subtitle span{
  display:inline-block;
}

.hero-description-custom{
  width:100%;
  max-width:520px;
  margin:0 auto 34px auto;
  text-align:center;
  color:#66768a;
  line-height:1.45;
  font-size:18px;
}

/* Responsive notebook */
@media (max-width: 1200px){

  .hero-custom-subtitle{
    max-width:470px;
    font-size:24px;
  }

  .hero-description-custom{
    max-width:470px;
    font-size:17px;
  }
}

/* Responsive tablet */
@media (max-width: 768px){

  .hero-custom-subtitle{
    max-width:360px;
    font-size:20px;
    line-height:1.2;
  }

  .hero-description-custom{
    max-width:360px;
    font-size:15px;
    line-height:1.4;
  }
}

/* Responsive celular */
@media (max-width: 480px){

  .hero-custom-subtitle{
    max-width:290px;
    font-size:17px;
    margin-bottom:18px;
  }

  .hero-description-custom{
    max-width:290px;
    font-size:14px;
    margin-bottom:26px;
  }
}


/* ===== SOLUNOR CORRECCIÓN REAL FINAL HERO ===== */

/* Oculta definitivamente el texto superior eliminado si queda algún residuo */
.hero .eyebrow {
  display: none !important;
}

/* Ajuste del bloque izquierdo para que no quede espacio residual */
.hero-text {
  text-align: center;
}

/* Subtítulo final: 2 líneas exactas, centrado al ancho del logotipo V1 */
.hero-custom-subtitle {
  width: min(520px, 100%) !important;
  max-width: 520px !important;
  margin: 18px auto 22px auto !important;
  text-align: center !important;
  font-style: italic !important;
  font-weight: 700 !important;
  color: #003f88 !important;
  font-size: 24px !important;
  line-height: 1.18 !important;
}

.hero-custom-subtitle .subtitle-line {
  display: block !important;
  white-space: nowrap !important;
}

/* Texto descriptivo final: 2 líneas, centrado y proporcional al logo */
.hero-description-custom {
  width: min(520px, 100%) !important;
  max-width: 520px !important;
  margin: 0 auto 32px auto !important;
  text-align: center !important;
  color: #66768a !important;
  font-size: 17px !important;
  line-height: 1.4 !important;
}

.hero-description-custom span {
  display: block !important;
}

/* Botones centrados bajo el bloque */
.hero-actions {
  justify-content: center !important;
}

/* Notebook medio */
@media (max-width: 1200px) {
  .hero-custom-subtitle {
    max-width: 470px !important;
    font-size: 22px !important;
  }

  .hero-description-custom {
    max-width: 470px !important;
    font-size: 16px !important;
  }
}

/* Tablet */
@media (max-width: 1024px) {
  .hero-custom-subtitle {
    max-width: 430px !important;
    font-size: 20px !important;
  }

  .hero-description-custom {
    max-width: 430px !important;
    font-size: 15px !important;
  }
}

/* Celular */
@media (max-width: 768px) {
  .hero-custom-subtitle {
    max-width: 330px !important;
    font-size: 17px !important;
    margin-top: 14px !important;
  }

  .hero-custom-subtitle .subtitle-line {
    white-space: normal !important;
  }

  .hero-description-custom {
    max-width: 320px !important;
    font-size: 14px !important;
  }
}

/* Celular pequeño */
@media (max-width: 480px) {
  .hero-custom-subtitle {
    max-width: 285px !important;
    font-size: 15px !important;
  }

  .hero-description-custom {
    max-width: 285px !important;
    font-size: 13px !important;
  }
}


/* ===== SOLUNOR MOBILE HEADER CENTERED ===== */
@media (max-width: 768px){

  .header-content{
    justify-content: center !important;
    position: relative;
  }

  .brand.brand-image{
    margin: 0 auto !important;
    justify-content: center !important;
    width: 100%;
  }

  .brand.brand-image img{
    margin: 0 auto !important;
    display:block;
    height:40px !important;
  }

  .menu-toggle{
    position:absolute;
    right:0;
    top:50%;
    transform:translateY(-50%);
  }
}


/* ===== SOLUNOR SERVICIOS IMÁGENES ===== */

.service-image{
  width:100%;
  height:220px;
  object-fit:cover;
  border-radius:14px;
  display:block;
}

@media (max-width:768px){
  .service-image{
    height:180px;
  }
}


/* ===== SOLUNOR SERVICIOS FINAL ===== */

.service-real-image{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  border-radius:18px 18px 0 0;
}


/* ===== SOLUNOR TITULO AREAS OPERACIONALES ===== */

.services-section h2,
.services-title{
  max-width: 900px;
  margin-left:auto;
  margin-right:auto;
  text-align:center;
  line-height:1.2;
}

@media (max-width:768px){
  .services-section h2,
  .services-title{
    font-size:28px;
    padding:0 18px;
  }
}

@media (max-width:480px){
  .services-section h2,
  .services-title{
    font-size:22px;
  }
}


/* ===== SOLUNOR MOBILE LOGO CENTER FINAL ===== */

@media (max-width: 768px){

  .header-content,
  .navbar,
  .nav-container{
    position:relative;
  }

  .brand,
  .brand-image,
  .logo-container{
    width:100%;
    display:flex !important;
    justify-content:center !important;
    align-items:center !important;
    text-align:center !important;
  }

  .brand img,
  .brand-image img,
  .logo-container img{
    display:block;
    margin:0 auto !important;
    text-align:center !important;
  }

  .menu-toggle,
  .hamburger{
    position:absolute !important;
    right:18px !important;
    top:50% !important;
    transform:translateY(-50%) !important;
  }
}


/* ===== SOLUNOR 5 SERVICIOS HORIZONTAL ===== */

.services-grid{
  display:grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  gap:22px !important;
  align-items:stretch !important;
}

/* tablet */
@media (max-width:1200px){
  .services-grid{
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* celular */
@media (max-width:768px){
  .services-grid{
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width:480px){
  .services-grid{
    grid-template-columns: 1fr !important;
  }
}


/* ===== SOLUNOR HOME 5 SERVICIOS ===== */

.services-home-section{
    padding:80px 0;
    background:#f4f6f8;
}

.services-main-title{
    text-align:center;
    color:#003f88;
    font-size:56px;
    margin-bottom:50px;
    font-weight:800;
}

.services-grid{
    display:grid;
    grid-template-columns:repeat(5,1fr);
    gap:24px;
}

.service-card{
    background:#fff;
    border-radius:22px;
    overflow:hidden;
    box-shadow:0 8px 20px rgba(0,0,0,0.08);
    text-align:center;
    position:relative;
    padding-bottom:30px;
}

.service-image{
    height:240px;
    background:#dce8f3;
    overflow:hidden;
}

.service-real-image{
    width:100%;
    height:100%;
    object-fit:cover;
}

.service-placeholder{
    width:100%;
    height:100%;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#003f88;
    font-weight:700;
}

.service-icon{
    width:70px;
    height:70px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#fff;
    font-size:34px;
    margin:-35px auto 20px;
    position:relative;
    border:5px solid #fff;
}

.blue-icon{background:#0047ab;}
.red-icon{background:#e32626;}
.yellow-icon{background:#f0c000;}
.green-icon{background:#66bb22;}
.brown-icon{background:#8b5a2b;}

.service-card h3{
    color:#003f88;
    font-size:30px;
    margin-bottom:16px;
    padding:0 16px;
}

.service-card p{
    color:#4f5f73;
    line-height:1.5;
    padding:0 18px;
    font-size:22px;
}

@media(max-width:1200px){
    .services-grid{
        grid-template-columns:repeat(3,1fr);
    }
}

@media(max-width:768px){

    .services-main-title{
        font-size:42px;
    }

    .services-grid{
        grid-template-columns:1fr;
        gap:30px;
    }

    .service-card h3{
        font-size:24px;
    }

    .service-card p{
        font-size:18px;
    }
}


/* ===== SOLUNOR SERVICIOS PAGE 5 ALINEADOS ===== */

.cards-grid.five,
.servicios-five-grid {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 18px !important;
  align-items: stretch !important;
}

.servicios-page-section .service-card {
  height: 100%;
}

.servicios-page-section .card-image {
  height: 190px;
  overflow: hidden;
}

.servicios-page-section .service-card h3 {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.servicios-page-section .service-card p {
  min-height: 120px;
}

.icon-blue { background: #0057a8 !important; }
.icon-red { background: #e32626 !important; }
.icon-yellow { background: #f2c200 !important; }
.icon-green { background: #5dbb2f !important; }
.icon-brown { background: #8b5a2b !important; }

@media (max-width: 1200px) {
  .cards-grid.five,
  .servicios-five-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 768px) {
  .cards-grid.five,
  .servicios-five-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 480px) {
  .cards-grid.five,
  .servicios-five-grid {
    grid-template-columns: 1fr !important;
  }
}




/* ===== SOLUNOR SUBTITULO SERVICIOS ===== */

.services-subtitle{
    text-align:center;
    color:#5f6f82;
    font-size:22px;
    line-height:1.4;
    margin:-18px auto 42px auto;
    max-width:900px;
}

@media(max-width:768px){
    .services-subtitle{
        font-size:18px;
        padding:0 18px;
        margin:-10px auto 34px auto;
    }
}


/* ===== SOLUNOR SERVICIOS HIGHLIGHT ===== */

.services-banner{
    background:#004f96;
    padding:34px 20px 24px;
    border-radius:18px;
    text-align:center;
    margin-bottom:28px;
}

.services-banner-title{
    color:#ffffff !important;
    margin:0 !important;
}

.services-banner-line{
    width:120px;
    height:5px;
    background:#58c92d;
    border-radius:999px;
    margin:18px auto 0 auto;
}

@media(max-width:768px){

    .services-banner{
        padding:26px 18px 20px;
        border-radius:14px;
    }

    .services-banner-line{
        width:90px;
        height:4px;
        margin-top:14px;
    }
}


/* ===== SOLUNOR SERVICIOS MISMA DIAGRAMACIÓN QUE NUESTRO EQUIPO ===== */

.services-title-home{
    text-align:center !important;
    margin-bottom:42px !important;
}

.services-title-home h2{
    color:#003b7a !important;
    font-size:clamp(28px, 4vw, 42px) !important;
    margin:0 0 10px !important;
    text-transform:uppercase !important;
    font-weight:800 !important;
}

.services-title-home p{
    color:#5e6f80 !important;
    margin:0 !important;
    font-size:16px !important;
    line-height:1.4 !important;
}

.services-title-home h2::after{
    content:"";
    display:block;
    width:70px;
    height:4px;
    background:#5dbb2f;
    margin:14px auto 0;
    border-radius:99px;
}

@media(max-width:768px){
    .services-title-home{
        margin-bottom:34px !important;
    }
}


/* ===== SOLUNOR RESPONSIVE CELULAR - LOGO V1 HERO CENTRADO ===== */
@media (max-width: 768px) {

  .hero-text {
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  .hero-logo-v1 {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    align-self: center !important;
    width: min(92vw, 430px) !important;
    max-width: 92vw !important;
    height: auto !important;
  }

  .hero-custom-subtitle,
  .hero-description-custom {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .hero-actions {
    width: 100% !important;
    align-items: center !important;
  }
}

@media (max-width: 480px) {
  .hero-logo-v1 {
    width: min(94vw, 390px) !important;
    max-width: 94vw !important;
  }
}
