@import url('../css/fonts.css');

/* PALETA
Crema: #fcfce0
Verde: #a7ae8f
Verde Claro: #d9e2ba;
Verde Oscuro: #3d412f;
Amarillo: #f7c959
Salmón: #ce6e46
Marrón: #7c624b
*/

/*! HTML5 Boilerplate v5.3.0 | MIT License | https://html5boilerplate.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

* {-webkit-box-sizing: border-box;-moz-box-sizing: border-box;box-sizing: border-box;}
*:before,*:after {-webkit-box-sizing: border-box;-moz-box-sizing: border-box;box-sizing: border-box;}
@font-face {font-family:"modern20", "Times New Roman", Times, serif;font-weight: normal;font-style: normal;}



html {height: 100%;}
body {height: 100%;width: 100%;overflow-x:hidden;font-size: 21px;text-align: left;background:#fafafa;font-family:"modern20", "Times New Roman", Times, serif;color:#000;
    -webkit-font-smoothing: antialiased;-moz-osx-font-smoothing: grayscale;}
a {text-decoration: none;color:inherit;}
h1, h2, h3, h4, h5, h6, ul, p, hr,figure {margin: 0;padding: 0;}
ul {list-style: none;}

header {height: 60px;position: fixed;width: 100%;top: -70px;left: 0;background: #000;color: #fff;z-index: 10;padding: 5px 0;
    -webkit-transition: all 0.25s;  -moz-transition: all 0.25s;  -ms-transition: all 0.25s;  -o-transition: all 0.25s;  transition: all 0.25s;}
header.docked {top:0;}
section h1 {font-size: 3em;font-weight: normal;border-bottom: 2px solid;padding-top: 60px;}
section h2 {font-size: 2em;font-weight: normal;}
.container {width: 90%;margin: 0 auto;max-width: 1500px;}
.section-list, .section-container {margin: 1em 0 3em 0;position: relative;padding: 2em;}
.section-container {height: calc(100% - 1em);}
.section-list > div, .section-list > li {line-height: normal;padding: 2em;}
.section-container > div {height: 100%;padding: 2em;}
.section > .container {height: 100%;}

#header-logo, #header-nav {display: inline-block;vertical-align: middle;}
#header-logo {position: absolute;  top: 5px;  left: 5px;  width: 50px;  height: 50px;}
#header-logo img {height: 100%;width: auto;}
#menu {text-align: right;}
#menu li {display: inline-block;}
#menu li a {display: block;padding: 3px 10px;line-height: 45px;}
#inicio {height: 100%;padding: 0;}
#home-top {height: 50%;background: #fcfce0;}
#home-top .container {height: 100%;}
#home-bot {height: 50%;background: #000;color: #fcfce0;text-align: center;}
#home-logo {width: 461px;margin: 0 auto;position: relative;top: calc(100% - 105px);
    -webkit-transition: all 0.5s;  -moz-transition: all 0.5s;  -ms-transition: all 0.5s;  -o-transition: all 0.5s;  transition: all 0.5s;}
#home-logo img {width: 100%;height: auto;}
#home-nav {position: relative; z-index: 10;}
#home-nav ul {font-size: 1.7em;}
#home-nav ul li {display: inline-block;}
#home-nav ul li a {display: block;padding:0 0.5em;}

#home-direccion {font-size: 1.3em;}

#propuesta {background: #f8f9fa;text-align: left; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;}

/* Cards Styles */
.cards-container {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
    padding: 0 20px;
}

.card {
    background: #fff;
    border-radius: 24px;
    padding: 40px 30px;
    flex: 1;
    min-width: 280px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0,0,0,0.02);
}

.active .card {
    opacity: 1;
    transform: translateY(0);
}

.active .card:nth-child(1) { transition-delay: 0.1s; }
.active .card:nth-child(2) { transition-delay: 0.2s; }
.active .card:nth-child(3) { transition-delay: 0.3s; }

.card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0,0,0,0.12);
}

.card-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 25px;
    transition: transform 0.4s ease;
}

.card:hover .card-icon {
    transform: rotateY(180deg);
}

.card-icon.icon-blue { background: #e0f2fe; color: #0284c7; }
.card-icon.icon-orange { background: #ffedd5; color: #ea580c; }
.card-icon.icon-green { background: #dcfce7; color: #16a34a; }

.card h3 {
    font-size: 1.4em;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1f2937;
}

.card p {
    font-size: 1em;
    line-height: 1.6;
    color: #6b7280;
}

/* Transformation Section */
#transformacion {
    background: #0f172a;
    color: #fff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    position: relative;
    overflow: hidden;
}

/* Slanted top effect */
#transformacion::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background: #0f172a;
    transform: skewY(-2deg);
    z-index: 1;
}

.transform-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding-top: 40px;
}

.transform-text {
    flex: 1;
    padding-right: 50px;
    z-index: 2;
}

.transform-text h2 {
    font-size: 3.5em;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
}

.text-gradient {
    background: linear-gradient(135deg, #60a5fa 0%, #f97316 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtext {
    font-size: 1.2em;
    color: #94a3b8;
    margin-bottom: 40px;
    line-height: 1.6;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #1e293b;
    color: #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
    font-size: 18px;
}

.feature-icon.icon-lock {
    color: #f97316;
}

.feature-desc strong {
    display: block;
    font-size: 1.1em;
    color: #f1f5f9;
    margin-bottom: 5px;
}

.feature-desc span {
    color: #94a3b8;
    font-size: 0.95em;
}

.transform-visual {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    z-index: 2;
}

.code-window {
    background: #1e293b;
    border-radius: 12px;
    padding: 20px;
    width: 100%;
    max-width: 550px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid #334155;
    position: relative;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
}

.window-controls {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.window-controls span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #334155;
}
.window-controls span:nth-child(1) { background: #ef4444; }
.window-controls span:nth-child(2) { background: #eab308; }
.window-controls span:nth-child(3) { background: #22c55e; }

.code-content pre {
    color: #e2e8f0;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.keyword { color: #c084fc; }
.class-name { color: #facc15; }
.function { color: #60a5fa; }
.string { color: #4ade80; }
.comment { color: #64748b; font-style: italic; }
.boolean { color: #f472b6; }
.param { color: #fb923c; }

.status-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: #fff;
    padding: 15px 25px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    color: #0f172a;
    font-family: 'Segoe UI', sans-serif;
}

.status-badge i {
    font-size: 32px;
    color: #22c55e;
}

.status-badge small {
    display: block;
    color: #64748b;
    font-size: 0.75em;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.status-badge strong {
    font-size: 1.1em;
}

/* Existing Styles Override */
#somos-list {background: url('../img/stripe-verde.png');}
.somos-img {position: absolute;top: 11.3em;right: 3em;width: 400px;height: 400px;border-radius: 50%;background: #3d412f;background-size: cover;border: 0.7em solid #3d412f;overflow: hidden;}
.somos-img img {width: 100%;height: 100%;}
#somos-list > li {background: #d9e2ba;}
#somos-list > li:nth-child(even) {background: #cad2ac;}

#servicios {background: #f7c959;text-align: left;}
#servicios h1 {color: #233;}
#servicios h2 {color: #344;padding-bottom: 0.5em;}
.servicios-container {background: url('../img/stripe-amarillo.png');}
.servicios-container > div {background: #ffefc7;}
/*.servicios-list > li:nth-child(even) {background: #fae3b4;}*/
.servicios-1-content {font-family: 'Adobe Caslon Pro', Times, sans-serif;vertical-align: top;padding-bottom: 2em;}
.servicios-1-img {width: 22%;margin-right: 3%;display: inline-block;vertical-align: top;}
.servicios-1-img > img {width: 100%;height: auto;}
.servicios-1-txt {width: 60%;display: inline-block;}

#clientes {background: #ce6e46;text-align: left;}
#clientes-list {background: url("../img/stripe-salmon.png");}
#clientes-list > div {background: #ffd0bc;}
#clientes-list figure {display: inline-block;width: 20%;vertical-align: top;}
#clientes-list figure img {width: 100%;height: auto;}
#clientes-list ul {display: inline-block;padding: 0 1em 0 2em;}

#contacto {background: #7c624b;text-align: left;}
#contacto-list {background: url("../img/stripe-marron.png");}
#contacto-list > div {background: #ccb6a3;padding: 2em;}

.mail-form {width: 50%;display: inline-block;}
#contact-form {font-size:1.4em;text-align: center;}
#contact-form .form-row {padding: 0.2em 0;}
#contact-form label {display: block;}
#contact-form .form-input-txt, #contact-form .form-textarea {max-width: 500px;  display: inline-block;  width: 100%;  border: none;  outline: none;  border-radius: 2px;  padding: 0.2em;  text-align: center;}
#contact-form .form-input-submit {background: #4b9eca;border:none;outline: none;padding: 0.5em 1.3em;text-transform:uppercase;color: #fff;border-radius:3px;font-size: 0.8em;  }
#contact-form .form-input-submit {-webkit-transition: all 0.2s;  -moz-transition: all 0.2s;  -ms-transition: all 0.2s;  -o-transition: all 0.2s;  transition: all 0.2s;}
#contact-form .form-input-submit:hover, .visit-link a:hover {
    -webkit-transform: rotate(-3deg) scale(1.2, 1.2);
    -moz-transform: rotate(-3deg) scale(1.2, 1.2);
    -ms-transform: rotate(-3deg) scale(1.2, 1.2);
    -o-transform: rotate(-3deg) scale(1.2, 1.2);
    transform: rotate(-3deg) scale(1.2, 1.2);
}
.contact-info {font-size: 1.2em;display: inline-block;vertical-align: top;width: 48%;}
.contact-info ul li {padding: 1em 0 0 0;font-size: 1.2em;}
.contact-info ul li a {font-size: 1.2em;}

.map-container {
    margin-top: 20px;
    width: 100%;
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    background: #eee;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.btn-toggle {display: none;}
.email-link-mobile {display: none;}







/* Restoration of #nosotros styles */
#nosotros {
    text-align: left;
}

#somos-list {
    background: url("../img/stripe-verde.png");
    display: inline-block;
    width: 60%;
    vertical-align: top;
    padding: 2em;
    list-style: none;
    margin: 0;
    box-sizing: border-box;
}

#somos-list li {
    margin-bottom: 20px;
}

#somos-list h3 {
    font-size: 1.5em;
    margin-bottom: 5px;
    color: #3d412f;
    font-weight: 700;
}

#somos-list p {
    font-size: 1.1em;
    color: #222;
}

.somos-img {
    display: inline-block;
    width: 35%;
    vertical-align: top;
    margin-left: 4%;
}

.somos-img img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

@media only screen and (max-width: 768px) {
    #somos-list {
        width: 100%;
        display: block;
        padding: 1.5em;
    }
    
    .somos-img {
        width: 100%;
        display: block;
        margin: 20px 0 0 0;
        text-align: center;
    }
    
    .somos-img img {
        max-width: 80%;
    }
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden {  display: none !important;  }

/*
 * Hide only visually, but have it available for screen readers:
 * http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 */

.visuallyhidden {  border: 0;  clip: rect(0 0 0 0);  height: 1px;  margin: -1px;  overflow: hidden;  padding: 0;  position: absolute;  width: 1px;  }

/*
 * Extends the .visuallyhidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {  clip: auto;  height: auto;  margin: 0;  overflow: visible;  position: static;  width: auto;  }

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {  visibility: hidden;  }

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {  content: " "; /* 1 */  display: table; /* 2 */  }
.clearfix:after {  clear: both;}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 1.25dppx),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

@media only screen and (max-width: 1366px) {
    body {font-size:18px;}
    section h1 {font-size: 2.5em;}
    .section-list, .section-container, .section-container > div {padding: 1em;}
    #somos-list:after {width: 300px;height: 300px;border-width:0.5em;}
    .somos-img {top:9.9em;width: 350px;height: 350px;}
    
    /* Responsive Adjustments for new sections */
    .card { padding: 30px 20px; }
    .transform-text h2 { font-size: 2.8em; }
    .code-window { max-width: 450px; }
}

@media only screen and (max-width: 1024px) {
    #somos-list > li {padding: 1em 2em;}
    #somos-list > li > p {max-width: 420px;}
    .somos-img {width: 300px;height: 300px;}
    
    .cards-container { flex-direction: column; gap: 20px; }
    .card { width: 100%; min-width: auto; }
    
    .transform-content { flex-direction: column; justify-content: center; text-align: left; }
    .transform-text { padding-right: 0; margin-bottom: 40px; }
    .transform-visual { width: 100%; justify-content: center; }
    .code-window { width: 100%; }
    .status-badge { right: 0; bottom: -20px; }
}

@media only screen and (max-width: 768px) {
    body {font-size: 16px;text-align: center;}
    .somos-img {top:auto;left: 50%;bottom: 2em;width: 450px;height: 450px;margin-left: -225px;}
    #somos-list > li > p {max-width: none;}
    .servicios-1-content {padding: 2em 0;}
    .servicios-1-img {width: auto;margin: 0 0 1em 0;}
    #clientes-list figure {display: none;}
    .mail-form {display: block;width: 80%;margin: 0 auto;}
    .contact-info {display: block;width: 80%;margin: 1em auto;}
    
    .transform-text h2 { font-size: 2.2em; }
    .status-badge { position: relative; bottom: auto; right: auto; margin-top: 20px; justify-content: center; width: 100%; }
}

@media only screen and (max-width: 475px) {
    body {font-size: 14px;}
    #home-logo {width: 100%;}
    #home-nav {display: none;}
    
    #header-logo {display: none;}
    header, header.docked {position: fixed;  top: 0;  right: -80%;  width: 80%;  left: auto;  height: 100%;
        -webkit-transition: all 0.25s;  -moz-transition: all 0.25s;  -ms-transition: all 0.25s;  -o-transition: all 0.25s;  transition: all 0.25s;}
    header.active {right: 0;}
    #menu li {display: block;}
    #menu li a {font-size: 1.5em;border-bottom:1px solid #222;padding: 3px 20px;}
    .somos-img {width: 200px;height: 200px;margin-left: -100px;}

    .btn-toggle {width: 48px;height: 48px;display: block;position: fixed;bottom: 20px;right: 20px;border-radius:50%;background: #333;z-index: 12;}
    .btn-toggle .menu-bar {width: 30px;height: 1px;background: #fff;position: absolute;left: 9px;transform-origin: 50% 50%;-webkit-transform-origin: 50% 50%;
        -webkit-transition: all 0.1s linear;
        -moz-transition: all 0.1s linear;
        -ms-transition: all 0.1s linear;
        -o-transition: all 0.1s linear;
        transition: all 0.1s linear;}
    .btn-toggle .menu-bar:nth-child(1) {top:18px;}
    .btn-toggle .menu-bar:nth-child(2), .btn-toggle .menu-bar:nth-child(3) {top:22px;}
    .btn-toggle .menu-bar:nth-child(4) {top:26px;}
    .btn-toggle.toggled .menu-bar:nth-child(1), .btn-toggle.toggled .menu-bar:nth-child(4) {opacity: 0;}
    .btn-toggle.toggled .menu-bar:nth-child(2){
        -ms-transform: rotate(45deg); /* IE 9 */
        -webkit-transform: rotate(45deg); /* Chrome, Safari, Opera */
        transform: rotate(45deg);
    }
    .btn-toggle.toggled .menu-bar:nth-child(3) {
        -ms-transform: rotate(-45deg); /* IE 9 */
        -webkit-transform: rotate(-45deg); /* Chrome, Safari, Opera */
        transform: rotate(-45deg);
    }
    section h1 {padding-top: 10px;line-height: 1em;}
    .somos-img {display: none;}
    .servicios-1-txt {width: 100%;}
    .mail-form {display: block; width: 100%; margin: 0 auto 2em auto;}
    .contact-info {width: 100%;}
    .contact-info p {display: block;}
    .contact-info ul li {padding: 0.5em 0;}
    .email-link-mobile {display: block;}
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {  *, *:before, *:after, *:first-letter, *:first-line {  background: transparent !important;  color: #000 !important; /* Black prints faster: http://www.sanbeiji.com/archives/953 */  box-shadow: none !important;  text-shadow: none !important;  }

    a,
    a:visited {  text-decoration: underline;  }

    a[href]:after {  content: " (" attr(href) ")";  }

    abbr[title]:after {  content: " (" attr(title) ")";  }

    /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

    a[href^="#"]:after, a[href^="javascript:"]:after {  content: "";  }

    pre, blockquote {  border: 1px solid #999;  page-break-inside: avoid;  }

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {  display: table-header-group;  }

    tr, img {  page-break-inside: avoid;  }

    img {  max-width: 100% !important;  }

    p, h2, h3 {  orphans: 3;  widows: 3;  }

    h2, h3 {  page-break-after: avoid;  }
}

/* New Clients Section Styles */
#clientes-list {
    background: url("../img/stripe-salmon.png");
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important; /* Override existing padding */
}

#clientes-list > div.clientes-wrapper {
    background: transparent; /* Remove the inner background */
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.clientes-grid-img {
    max-width: 90%;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.clientes-grid-img:hover {
    transform: scale(1.02);
}

@media only screen and (max-width: 768px) {
    .clientes-grid-img {
        max-width: 100%;
    }
    #clientes-list {
        padding: 10px !important;
    }
}