/* ============================================
   RESET Y VARIABLES
============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #303030;
    --color-bg-light: #404040;
    --color-bg-card: #404040;
    --color-text: #ffffff;
    --color-text-muted: #cccccc;
    --color-accent: #28a7e9;
    --color-accent-hover: #1a8bc4;
    --color-border: #505050;
    --font-main: 'Open Sans', sans-serif;
    --transition-smooth: all 0.4s ease-in-out;
    --radius: 2px;
    --shadow-card: 0 4px 15px rgba(0,0,0,0.3);
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-main);
    font-weight: 300;
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    color: #47C6F8;
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: #0FF;
    text-decoration: none;
}

/* ============================================
   TIPOGRAFÍA
============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 300;
    color: var(--color-text);
}

h2 {
    text-align: center;
    font-size: 40px;
    padding-bottom: 40px;
}

h2 span {
    color: var(--color-accent);
    font-weight: bold;
}
#home h1 {
    font-weight: 500; /* 400 es normal, 700 es negrita, 500 es semi-bold */
}
/* ============================================
   SECCIONES GENERALES
============================================ */
#about, #team, #service,
#portfolio, #contact {
    padding-top: 60px;
    padding-bottom: 40px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ============================================
   PRELOADER
============================================ */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: center;
    background: #ffffff;
}

.sk-spinner-wave.sk-spinner {
    width: 50px;
    height: 30px;
    text-align: center;
    font-size: 10px;
}

.sk-spinner-wave div {
    background-color: #333;
    height: 100%;
    width: 6px;
    display: inline-block;
    -webkit-animation: sk-waveStretchDelay 1.2s infinite ease-in-out;
    animation: sk-waveStretchDelay 1.2s infinite ease-in-out;
}

.sk-spinner-wave .sk-rect2 {
    -webkit-animation-delay: -1.1s;
    animation-delay: -1.1s;
}
.sk-spinner-wave .sk-rect3 {
    -webkit-animation-delay: -1s;
    animation-delay: -1s;
}
.sk-spinner-wave .sk-rect4 {
    -webkit-animation-delay: -0.9s;
    animation-delay: -0.9s;
}
.sk-spinner-wave .sk-rect5 {
    -webkit-animation-delay: -0.8s;
    animation-delay: -0.8s;
}

@-webkit-keyframes sk-waveStretchDelay {
    0%, 40%, 100% { -webkit-transform: scaleY(0.4); transform: scaleY(0.4); }
    20% { -webkit-transform: scaleY(1); transform: scaleY(1); }
}
@keyframes sk-waveStretchDelay {
    0%, 40%, 100% { -webkit-transform: scaleY(0.4); transform: scaleY(0.4); }
    20% { -webkit-transform: scaleY(1); transform: scaleY(1); }
}

/* ============================================
   HEADER
============================================ */
header {
    min-height: 20px;
    padding-top: 18px;
    padding-bottom: 10px;
}

header .fa {
    color: var(--color-accent);
}

header span {
    font-weight: bold;
    padding-right: 10px;
    padding-left: 4px;
}

header a {
    color: #999;
    font-weight: 600;
}

header .social-icon {
    text-align: right;
}

header .social-icon li a {
    border: none;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
}

/* ============================================
   NAVEGACIÓN
============================================ */
.navbar-default {
    background: #fff;
    border: none;
    box-shadow: none;
    margin: 0 !important;
}

.navbar-default .navbar-brand {
    font-weight: 500;
    font-size: 30px;
    height: 70px;
    line-height: 40px;
    padding: 12px 0px 0px 12px;
    color: #333;
}

.navbar-default .navbar-nav li a {
    font-weight: bold;
    font-size: 13px;
    height: 70px;
    line-height: 40px;
    color: #333;
}

.navbar-default .navbar-nav > li > a.current {
    color: var(--color-accent);
}

.templatemo-nav {
    border-radius: 0;
    width: 100%;
    z-index: 1000;
}

.sticky {
    position: fixed;
    left: 0;
    top: 0;
}

/* ============================================
   HOME / HERO
============================================ */
#home {
    background: url('../images/home-bg.jpg') no-repeat center center;
    background-size: cover;
    padding-top: 160px;
    padding-bottom: 100px;
    min-height: 650px;
}

#home h1 {
    font-weight: 300;
    font-size: 70px;
    padding-bottom: 10px;
    text-align: center;
}

#home h1 span {
    color: var(--color-accent);
    font-weight: bold;
}

#home .btn {
    background: transparent;
    border-radius: var(--radius);
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    margin-top: 20px;
    width: 180px;
    height: 60px;
    padding-top: 18px;
    border: 2px solid #fff;
    transition: var(--transition-smooth);
    text-align: center;
    display: inline-block;
}

#home .btn:hover {
    background: var(--color-accent);
    border-color: transparent;
    color: #fff;
}

.element {
    height: 60px;
    font-size: 16px;
    text-align: center;
    color: #fff;
}

.element .sub-element {
    display: inline;
}

/* Typed.js cursor */
.typed-cursor {
    font-size: 16px;
    color: var(--color-accent);
}

/* ============================================
   ABOUT
============================================ */
#about .media-heading-wrapper {
    padding-bottom: 32px;
}

#about .media-heading-wrapper .fa {
    border: 1px solid #fff;
    border-radius: var(--radius);
    color: #fff;
    font-size: 24px;
    width: 60px;
    height: 60px;
    line-height: 60px;
    text-align: center;
    margin-bottom: 20px;
    margin-right: 20px;
}

#about .media-heading-wrapper h3 {
    font-size: 18px;
    font-weight: bold;
    padding-top: 20px;
    padding-left: 52px;
    color: #fff;
}

#about .media-body p {
    color: #ccc;
}

/* ============================================
   TEAM
============================================ */
#team .team-wrapper {
    background: var(--color-bg-card);
    padding-bottom: 10px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

#team .team-wrapper:hover {
    cursor: pointer;
    opacity: 0.6;
    transform: translateY(-4px);
}

#team .team-wrapper img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

#team .team-wrapper .team-des {
    padding: 20px;
}

#team .team-wrapper .team-des h4 {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 5px;
}

#team .team-wrapper .team-des span {
    color: var(--color-accent);
    display: block;
    font-weight: bold;
    padding-bottom: 12px;
}

#team .team-wrapper .team-des p {
    color: #ccc;
    font-size: 14px;
}

/* ============================================
   SERVICES
============================================ */
#service .col-md-4 {
    padding: 40px;
    transition: var(--transition-smooth);
    text-align: center;
}

#service .col-md-4:hover {
    background: var(--color-bg-light);
}

#service .active {
    background: var(--color-bg-light);
    padding: 40px;
}

#service .fa {
    border: 1px solid #fff;
    border-radius: var(--radius);
    color: #fff;
    font-size: 50px;
    width: 100px;
    height: 100px;
    line-height: 100px;
    text-align: center;
    margin: 0 auto 20px;
    display: block;
}

#service h4 {
    color: var(--color-accent);
    font-weight: 600;
    padding-top: 10px;
    padding-bottom: 14px;
}

#service p {
    color: #ccc;
}

/* ============================================
   PORTFOLIO (mejorado)
============================================ */
#portfolio {
    padding-bottom: 80px;
}

#portfolio .col-md-3 {
    padding: 0px;
}

.portfolio-thumb {
    position: relative;
    overflow: hidden;
    padding: 0;
    margin: 0 auto;
    aspect-ratio: 1 / 1;
}

.portfolio-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.portfolio-thumb .portfolio-overlay {
    background: rgba(40, 167, 233, 0.9);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    padding: 20px;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
}

.portfolio-thumb:hover .portfolio-overlay {
    opacity: 1;
    cursor: pointer;
}

.portfolio-thumb .portfolio-overlay h4 {
    font-weight: bold;
    padding-bottom: 10px;
    color: #fff;
    font-size: 18px;
}

.portfolio-thumb .portfolio-overlay p {
    font-size: 14px;
    margin-bottom: 15px;
    color: #fff;
}

.portfolio-thumb .portfolio-overlay .btn {
    background: none;
    border: 1px solid #fff;
    border-radius: var(--radius);
    color: #fff;
    font-weight: bold;
    padding: 8px 20px;
    transition: var(--transition-smooth);
}

.portfolio-thumb .portfolio-overlay .btn:hover {
    background: #fff;
    color: var(--color-accent);
}

/* ============================================
   CONTACT
============================================ */
#contact {
    background: #202020;
}

#contact .form-control {
    background: transparent;
    border: 1px solid var(--color-accent);
    border-radius: var(--radius);
    box-shadow: none;
    color: #fff;
    margin-top: 6px;
    margin-bottom: 16px;
    padding: 12px 16px;
}

#contact .form-control:focus {
    outline: none;
    border-color: #fff;
}

#contact label {
    font-weight: 500;
    color: #ccc;
}

#contact input {
    height: 50px;
}

#contact input[type="submit"] {
    background: var(--color-accent);
    font-weight: bold;
    transition: var(--transition-smooth);
    border: none;
    color: #fff;
    cursor: pointer;
}

#contact input[type="submit"]:hover {
    background: transparent;
    border: 1px solid var(--color-accent);
}

#contact address {
    border-bottom: 1px solid var(--color-border);
    padding-top: 30px;
    color: #ccc;
}

#contact address .address-title {
    font-weight: bold;
    font-size: 20px;
    padding-bottom: 10px;
    color: #fff;
}

#contact address span {
    display: block;
    padding-bottom: 30px;
}

#contact address .fa {
    border: 1px solid #fff;
    border-radius: var(--radius);
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    margin-right: 10px;
    margin-bottom: 10px;
    color: #fff;
}

/* ============================================
   COPYRIGHT / FOOTER
============================================ */
#copyright {
    padding: 20px;
    text-align: center;
    background: var(--color-bg);
}

#copyright p {
    font-weight: 400;
    color: #999;
    margin: 0;
}

/* ============================================
   SOCIAL ICONS
============================================ */
.social-icon {
    position: relative;
    padding: 0;
    margin: 0;
    list-style: none;
}

.social-icon h4 {
    display: inline-block;
    padding-right: 20px;
    color: #fff;
}

.social-icon li {
    display: inline-block;
    list-style: none;
}

.social-icon li a {
    border: 1px solid #fff;
    border-radius: var(--radius);
    color: #fff;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    text-decoration: none;
    transition: var(--transition-smooth);
    margin-right: 10px;
    display: inline-block;
}

.social-icon li a:hover {
    background: var(--color-accent);
    border-color: transparent;
    color: #fff;
}

/* ============================================
   RESPONSIVE
============================================ */
@media only screen and (max-width: 1199px) and (min-width: 992px) {
    #portfolio .portfolio-thumb .portfolio-overlay {
        padding: 0px 8px;
    }
}

@media only screen and (max-width: 980px) {
    #team .team-wrapper {
        margin-top: 40px;
    }
    #portfolio .portfolio-thumb .portfolio-overlay {
        padding: 40px 10px 20px 20px;
    }
}

@media only screen and (max-width: 767px) {
    #home {
        min-height: 300px;
        padding-top: 80px;
        padding-bottom: 60px;
    }
    #home h1 {
        font-size: 52px;
    }
    .templatemo-nav {
        position: fixed;
        top: 0;
    }
    header {
        margin-top: 70px;
    }
    header .social-icon {
        text-align: left;
    }
    .navbar-toggle {
        margin-top: 15px;
    }
    .navbar-collapse {
        max-height: 300px;
        overflow-y: auto;
    }
    .navbar-default .navbar-nav li a {
        height: 45px;
        padding-top: 5px;
        padding-bottom: 5px;
        line-height: 35px;
    }
    #portfolio .portfolio-thumb {
        aspect-ratio: 1 / 1;
    }
    #team .team-wrapper img {
        height: auto;
    }
}

@media only screen and (max-width: 360px) {
    header .social-icon {
        text-align: left;
    }
    #home {
        min-height: 200px;
        padding-top: 60px;
        padding-bottom: 40px;
    }
    #home h1 {
        font-size: 32px;
    }
}

/* ============================================
   UTILIDADES ADICIONALES
============================================ */
.text-center {
    text-align: center;
}

.img-responsive {
    display: block;
    max-width: 100%;
    height: auto;
}

.clearfix:after {
    content: "";
    display: table;
    clear: both;
}

/* ============================================
   MODULOS DINÁMICOS - ESTILOS ADICIONALES
============================================ */
/* Para módulos generados por el CMS */
.modulo-section {
    padding: 60px 0;
}

.modulo-section:nth-child(even) {
    background: var(--color-bg-light);
}

/* CTA module */
.modulo-cta {
    padding: 60px 0;
    text-align: center;
    background: linear-gradient(135deg, var(--color-bg), #1a1a1a);
}

.modulo-cta h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #fff;
}

.modulo-cta p {
    font-size: 18px;
    color: #ccc;
    margin-bottom: 30px;
}

.modulo-cta .btn-primary {
    background: var(--color-accent);
    border: none;
    padding: 12px 40px;
    color: #fff;
    border-radius: var(--radius);
    font-weight: bold;
    display: inline-block;
    transition: var(--transition-smooth);
}

.modulo-cta .btn-primary:hover {
    background: var(--color-accent-hover);
    transform: translateY(-3px);
}

/* Videos module */
.modulo-videos {
    padding: 60px 0;
}

.modulo-videos .video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius);
}

.modulo-videos .video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}
/* ============================================
   HERO SLIDER - Estilo Encuentro con Todos
============================================ */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, visibility 1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.1);
    transition: transform 8s ease;
}

.slide.active .slide-bg {
    transform: scale(1);
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(10, 10, 10, 0.85) 0%,
        rgba(10, 10, 10, 0.6) 50%,
        rgba(233, 30, 140, 0.15) 100%
    );
}

.slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 30px;
}

.slide-text-box {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    padding: 40px 50px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}

.slide-subtitle {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: #6C63FF;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
}

.slide.active .slide-subtitle {
    animation: fadeInUp 0.8s ease forwards 0.3s;
}

.slide-title {
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -3px;
    margin-bottom: 25px;
    color: #ffffff;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: translateY(40px);
}

.slide.active .slide-title {
    animation: fadeInUp 0.8s ease forwards 0.5s;
}

.slide-title .highlight {
    color: #6C63FF;
    position: relative;
    display: inline-block;
    text-shadow: 0 4px 30px rgba(108, 99, 255, 0.3);
}

.slide-description {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin: 0 auto 35px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(30px);
}

.slide.active .slide-description {
    animation: fadeInUp 0.8s ease forwards 0.7s;
}

.slide-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(30px);
}

.slide.active .slide-buttons {
    animation: fadeInUp 0.8s ease forwards 0.9s;
}

/* Slider Controls */
.slider-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 14px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
}

.dot.active {
    background: #6C63FF;
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(108, 99, 255, 0.4);
}

.slider-arrows {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    z-index: 10;
    pointer-events: none;
}

.arrow {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #ffffff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: all;
}

.arrow:hover {
    background: #6C63FF;
    border-color: #6C63FF;
    transform: scale(1.05);
    box-shadow: 0 10px 40px rgba(108, 99, 255, 0.3);
}

.scroll-indicator {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.6);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.scroll-indicator .mouse {
    width: 24px;
    height: 38px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    position: relative;
}

.scroll-indicator .mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 8px;
    background: #6C63FF;
    border-radius: 2px;
    animation: scrollWheel 2s infinite;
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes scrollWheel {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(15px);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .slide-text-box {
        padding: 25px 20px;
        background: rgba(0, 0, 0, 0.5);
    }
    .slide-buttons {
        flex-direction: column;
        align-items: center;
    }
    .arrow {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
}