/* Main stylesheet for the landing page
   Placed at public/assets/css/styles.css so additional stylesheets
   can live alongside it under assets/css/ */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f6f8fa;
    margin: 0;
    color: #222;
}
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}
h1 {
    text-align: center;
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}
.message {
    background-color: #e8f0fe;
    color: #1a73e8;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 1rem;
    text-align: center;
    font-size: 0.9rem;
}
/* Layout */
.site-header { background: #0b5; padding: 0.35rem 0; background-color: #488AAD; color: #fff; }
.site-header .container { display:flex; align-items:center; }
.site-header h1 { margin:0; font-size:1.1rem; }
.ite-header nav { flex: 1; text-align: center; }
.site-header nav { flex: 1; text-align: center; }
.site-header nav a { color:#fff; margin: 0; text-decoration:none; font-weight:500; font-family: 'Helvetica Neue', Arial, sans-serif; padding:6px 10px; display:inline-block; font-size:1rem; line-height:1; }
/* Add subtle vertical separators between nav items (except first) */
.site-header nav > * + * { border-left: 1px solid rgba(255,255,255,0.14); margin-left:12px; padding-left:14px; }

/* Logo wrap: give the logo a white background for contrast */
.logo-wrap { display:inline-block; background:#fff; padding:4px 8px; border-radius:6px; box-shadow:0 1px 3px rgba(0,0,0,0.08); }
.logo-wrap img { display:block; height:36px; }

.main-grid { display:flex; gap:1rem; padding:1rem 0 2rem 0; }
.sidebar { width:220px; }
.sidebar ul { list-style:none; padding:0; margin:0; }
.sidebar li { margin-bottom:0.4rem; }
.sidebar a { color:#0b6b4f; text-decoration:none; }

.content { flex:1; }
.note { margin:0 0 0.6rem 0; color:#555; }
.frame-wrap { background:#fff; border-radius:6px; box-shadow:0 2px 8px rgba(0,0,0,0.06); overflow:hidden; }
iframe { width:100%; height:75vh; border:0; display:block; }

.site-footer { padding:0.8rem 0; text-align:center; color:#666; font-size:0.95rem; }

/* Contact form styles fallback */
label { display:block; margin-bottom:0.5rem; color:#333; font-weight:600; }
input, textarea, select { width:100%; padding:10px; margin-bottom:1rem; border:1px solid #ddd; border-radius:6px; box-sizing:border-box; }
button { padding:10px 14px; border-radius:6px; border:0; background:#0b6b4f; color:#fff; cursor:pointer; }
.btn-cta { display:inline-block; padding:6px 10px; background:#d9eec3; color:#083; border-radius:6px; text-decoration:none; font-weight:400; box-shadow:0 2px 0 rgba(0,0,0,0.06); font-size:0.9rem; border:0; cursor:pointer; line-height:1.4; }
.btn-cta:hover{opacity:0.95}
#submitBtn { margin-top: 20px; }
#submitBtn:disabled { background: #ccc; color: #999; cursor: default; box-shadow: none; }

/* Honeypot helper: hide off-screen */
.hp { position: absolute !important; left: -9999px !important; top: auto !important; width: 1px !important; height: 1px !important; overflow: hidden; }

@media (max-width:800px){ .main-grid{flex-direction:column;} .sidebar{width:100%} iframe{height:60vh;} 
    /* Remove separators on narrow screens and slightly increase tappable area */
    .site-header nav > * + * { border-left: none; margin-left: 8px; padding-left:8px; }
    .site-header nav a{ padding:8px 10px; }
}

/* Hero slider styles */
/* hero background now matches header bar color */
.hero { margin: 1rem 0 1.5rem 0; position: relative; overflow: hidden; background-color: #488AAD; /* same as .site-header */ padding:18px; border-radius:8px; }
.hero-track { display:flex; transition: transform 0.5s ease; width:100%; }
.hero-slide { min-width:100%; box-sizing: border-box; display:flex; align-items:center; gap:2rem; padding:18px; }
.hero-slide .hero-caption { order:1; flex:1; text-align:left; }
.hero-slide img { order:2; width:360px; max-width:40%; height:auto; border-radius:6px; box-shadow:0 6px 18px rgba(0,0,0,0.08); }
.hero-caption { font-size:1.45rem; font-weight:700; color:#fff; line-height:1.15; background: transparent; padding:0; border-radius:0; display:block; max-width:64%; }
.hero-cta { display:inline-block; margin-top:0.6rem; padding:6px 10px; background:#d9eec3; color:#083; border-radius:6px; text-decoration:none; font-weight:400; box-shadow:0 2px 0 rgba(0,0,0,0.06); font-size:0.9rem; }
.hero-cta:hover{opacity:0.95}
.hero-controls { position:absolute; right:12px; top:50%; transform:translateY(-50%); display:flex; gap:6px; }
.hero-controls button { background:rgba(255,255,255,0.9); border:0; padding:8px 10px; border-radius:6px; cursor:pointer; }

.hero-tabs { display:flex; gap:0.5rem; background: transparent; padding:0.6rem; margin-top:10px; border-radius:4px; }
.hero-tabs a { color:#fff; padding:0.5rem 0.9rem; background:rgba(255,255,255,0.03); border-radius:3px; text-decoration:none; font-weight:600; }
.hero-tabs a:hover { background:rgba(255,255,255,0.08); }
.hero-tabs a.active { background:rgba(255,255,255,0.12); box-shadow:inset 0 -2px 0 rgba(0,0,0,0.08); }

@media (max-width:800px){ .hero-slide { flex-direction:column-reverse; text-align:center; } .hero-slide img{max-width:80%; width:100%;} .hero-caption{max-width:100%} .hero-controls{right:8px} }

/* service container mimics about-box + frame-wrap to show a white rectangle background */
.service-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 24px;
    margin: 1rem 0;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.service-container .title-row h1 {
    text-align: left;
    color: #333;
    margin: 0;
    font-size: 1.75rem;
    line-height: 1.1;
}
.row { width: 100%; }
.content-row { display: flex; gap: 2rem; align-items: flex-start; }
.left-content { flex: 1; }
.service-text { margin-bottom: 1.25rem; }
.service-image { flex: 0 0 240px; text-align: right; align-self: flex-start; }
.service-image img { max-width: 180px; width: 100%; height: auto; border-radius: 8px; }

.service-image.consultoria-image { flex: 0 0 10%; }
.service-image.consultoria-image img { max-width: 100%; }
.ventajas-list {
    margin: 0;
    padding-left: 1.25rem;
    color: #333;
}
.ventajas-list li {
    margin-bottom: 0.65rem;
    line-height: 1.6;
}

/* page title on service pages */
.page-content h1 { color: #777; margin-bottom: 1rem; }

@media (max-width: 900px) {
    .content-row { flex-direction: column; }
    .service-image { text-align: center; width: 100%; }
    .service-image img { max-width: 280px; margin: 0 auto; }
}

/* spacing for content wrapper */
.page-content { padding: 2rem 0; }

/* add arrow bullet to paragraphs in service-text to mimic legacy arrow-list */
.service-text p {
    position: relative;
    padding-left: 1.2em;
}
.service-text p:before {
    content: "\2192";
    position: absolute;
    left: 0;
    color: #488AAD;
}


/* Features row (three boxed panels) */
.features-row { display:flex; gap:1rem; margin:1.2rem 0 2rem 0; }
.feature-box { background:#fff; border-radius:6px; box-shadow:0 2px 8px rgba(0,0,0,0.06); padding:18px; display:flex; align-items:center; gap:1rem; flex:1; }
.feature-text { flex:1; }
.feature-text h3 { margin:0 0 0.6rem 0; font-size:1.05rem; color:#233; }
.feature-text .muted { color:#777; margin:0; }
.feature-image img { width:84px; height:auto; display:block; max-width:120px; }

@media (max-width:900px){ .features-row{flex-direction:column;} .feature-image img{margin:0 auto;} }

/* About box */
.about-box { display:flex; gap:1rem; padding:18px; margin:1rem 0; }
.about-img img { width:160px; border-radius:6px; }
.about-text { flex:1; }
.about-text h3{margin:0 0 6px 0}

/* Small three-box row */
.small-features-row{display:flex;gap:1rem;margin:1rem 0}
.small-feature{background:#fff;border-radius:6px;box-shadow:0 2px 8px rgba(0,0,0,0.06);padding:12px;display:flex;align-items:center;gap:1rem;flex:1}
.small-text h4{margin:0 0 6px 0;font-size:1rem}
.small-image img{width:90px;height:auto}

/* Contact page layout */
.contact-section {
    position: relative;
}
.captcha-help {
    display: inline-block;
    margin-left: 0.6rem;
    font-size: 0.95rem;
}
.captcha-help summary {
    list-style: none;
    cursor: pointer;
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 999px;
    background: #f6f8fa;
    color: #333;
}
.captcha-help summary::-webkit-details-marker {
    display: none;
}
.captcha-help p {
    margin: 0.5rem 0 0 0;
    padding: 0.8rem;
    background: #f7f7f7;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    color: #333;
    max-width: 320px;
}

@media (max-width:900px){ 
    .about-box, .small-features-row { flex-direction:column; } 
    .about-img img{ width:100%;max-width:320px; } 
}

/* Captcha row with label left and ayuda button right */
.captcha-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.captcha-row label { margin-bottom: 0; }

/* Ayuda tooltip */
.ayuda-wrap { position: relative; display: inline-block; }
.ayuda-btn { display:inline-block; padding:4px 12px; background:#d9eec3; color:#083; border-radius:6px; border:0; cursor:pointer; font-size:0.9rem; font-weight:500; line-height:1.5; }
.ayuda-btn:hover { opacity:0.9; }
.ayuda-tooltip { display:none; position:absolute; right:0; top:calc(100% + 6px); background:#fff; border:1px solid #ccc; border-radius:8px; padding:12px 14px; min-width:220px; max-width:320px; box-shadow:0 4px 14px rgba(0,0,0,0.12); z-index:10; color:#333; font-weight:400; font-size:0.9rem; line-height:1.5; }
.ayuda-tooltip.show { display:block; }
.ayuda-tooltip p { margin:0; }

/* Dropdown Button */
.dropbtn {
  /* background-color: #4CAF50; */
  color: white;
  padding: 16px;
  font-size: 16px;
  border: none;
}

/* The container <div> - needed to position the dropdown content */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #d9eec3; /* light green, matching hero-cta button */
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
  border-radius:4px;
  text-align: left;
}

.dropdown-content.show {
    display: block;
}

/* Links inside the dropdown */
.dropdown-content a {
  color: #083 !important; /* dark green, matching hero-cta text color */
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-weight: 400;
  font-size: 0.95rem;
  border-bottom: 2px solid rgba(0,136,51,0.12); /* wider horizontal separator */
}
.dropdown-content a:last-child { border-bottom: none; }

/* Change color of dropdown links on hover */
.dropdown-content a:hover {background-color: #c8dbb0;}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {display: block;}

.arrow {
    font-size: 0.8em;
    vertical-align: middle;
}