/* ============================================
   INTERSER - Sitio Web Corporativo
   Construyendo Sueños
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: #333333;
    background-color: #FFFFFF;
    -webkit-font-smoothing: antialiased;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Variables */
:root {
    --blue: #0056B3;
    --blue-dark: #004494;
    --green: #7CB342;
    --green-dark: #689F38;
    --orange: #FF9800;
    --orange-dark: #e68900;
    --dark: #333333;
    --gray: #666666;
    --gray-light: #F5F5F5;
    --white: #FFFFFF;
}

/* Utilidades */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-center { text-align: center; }

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.site-header.scrolled {
    background-color: var(--white);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.site-header.scrolled .header-top {
    display: none;
}

.header-top {
    background-color: var(--blue);
    color: var(--white);
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.header-top a {
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.header-top a:hover {
    color: var(--orange);
}

.header-top-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-top-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-top-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-main {
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.site-header.scrolled .header-main {
    padding: 0.75rem 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.site-logo img {
    height: 3.5rem;
    width: auto;
}

.logo-text .site-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
}

.site-header.scrolled .logo-text .site-title {
    color: var(--dark);
}

.logo-text .site-tagline {
    font-size: 0.75rem;
    opacity: 0.8;
    color: var(--white);
}

.site-header.scrolled .logo-text .site-tagline {
    color: var(--gray);
}

/* Navegación */
.main-navigation {
    display: none;
}

@media (min-width: 1024px) {
    .main-navigation {
        display: block;
    }
}

.main-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.main-menu li {
    position: relative;
}

.main-menu a {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    font-weight: 500;
    color: var(--white);
    border-radius: 0.5rem;
}

.site-header.scrolled .main-menu a {
    color: var(--dark);
}

.main-menu a:hover,
.main-menu .active a {
    background-color: var(--blue);
    color: var(--white);
}

/* Submenú */
.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background-color: var(--white);
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

.main-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu a {
    color: var(--dark);
    padding: 0.625rem 1rem;
    border-radius: 0;
}

.sub-menu a:hover {
    background-color: var(--blue);
    color: var(--white);
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--blue);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-secondary {
    background-color: var(--orange);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--orange-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-green {
    background-color: var(--green);
    color: var(--white);
}

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

.btn-outline {
    background-color: transparent;
    color: var(--blue);
    border: 2px solid var(--blue);
}

.btn-outline:hover {
    background-color: var(--blue);
    color: var(--white);
}

.btn-white {
    background-color: var(--white);
    color: var(--blue);
}

.btn-white:hover {
    background-color: var(--gray-light);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Menú móvil */
.mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--white);
}

.site-header.scrolled .mobile-menu-toggle {
    color: var(--dark);
}

@media (min-width: 1024px) {
    .mobile-menu-toggle {
        display: none;
    }
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--white);
    z-index: 1001;
    padding: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-light);
}

.mobile-menu-close {
    width: 2.5rem;
    height: 2.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--dark);
}

.mobile-menu .menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-menu .menu a {
    display: block;
    padding: 1rem;
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--dark);
    border-radius: 0.5rem;
}

.mobile-menu .menu a:hover,
.mobile-menu .menu .active a {
    background-color: var(--blue);
    color: var(--white);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.8), rgba(0,0,0,0.4));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 8rem;
    padding-bottom: 4rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(0,86,179,0.9);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-title span {
    color: var(--orange);
    display: block;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    color: rgba(255,255,255,0.9);
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.8);
    max-width: 600px;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

/* Secciones */
.section-padding {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-label {
    display: inline-block;
    color: var(--blue);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: var(--dark);
    margin-bottom: 1rem;
}

.section-description {
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Cards */
.card {
    background-color: var(--white);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px rgba(0,0,0,0.15);
}

.card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-image img {
    transform: scale(1.1);
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.75rem;
}

.card:hover .card-title {
    color: var(--blue);
}

.card-text {
    color: var(--gray);
    font-size: 0.9375rem;
    margin-bottom: 1rem;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--blue);
    font-weight: 600;
    font-size: 0.9375rem;
}

.card-link:hover {
    color: var(--orange);
}

/* Grids */
.grid-2 {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

.grid-3 {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.grid-4 {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Footer */
.site-footer {
    background-color: var(--dark);
    color: var(--white);
}

.footer-cta {
    background-color: var(--blue);
    padding: 3rem 0;
}

.footer-cta-title {
    color: var(--white);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
}

.footer-cta-text {
    color: rgba(255,255,255,0.9);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

.footer-cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

@media (min-width: 640px) {
    .footer-cta-buttons {
        flex-direction: row;
    }
}

.footer-main {
    padding: 4rem 0;
}

.footer-grid {
    display: grid;
    gap: 3rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
    }
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-logo img {
    height: 4rem;
    width: auto;
    background-color: var(--white);
    padding: 0.5rem;
    border-radius: 0.5rem;
}

.footer-description {
    color: rgba(255,255,255,0.7);
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--blue);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background-color: var(--orange);
    transform: translateY(-2px);
}

.footer-title {
    color: var(--orange);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.footer-menu {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-menu a {
    color: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-menu a::before {
    content: '';
    width: 6px;
    height: 6px;
    background-color: var(--blue);
    border-radius: 50%;
}

.footer-menu a:hover {
    color: var(--white);
}

.footer-contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-contact-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--blue);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.footer-contact-text {
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
}

.footer-contact-text a {
    color: rgba(255,255,255,0.7);
    display: block;
}

.footer-contact-text a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.5rem 0;
}

.footer-bottom-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom-inner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-copyright {
    color: rgba(255,255,255,0.5);
    font-size: 0.875rem;
}

.footer-tagline {
    color: rgba(255,255,255,0.4);
    font-size: 0.875rem;
}

/* Page Header */
.page-header {
    position: relative;
    padding: 8rem 0 4rem;
    background-color: var(--dark);
}

.page-header-bg {
    position: absolute;
    inset: 0;
    opacity: 0.2;
}

.page-header-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-header-content {
    position: relative;
    z-index: 1;
}

.page-header-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.6);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.page-header-breadcrumb a {
    color: rgba(255,255,255,0.6);
}

.page-header-breadcrumb a:hover {
    color: var(--white);
}

.page-header-title {
    color: var(--white);
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 0.5rem;
}

.page-header-subtitle {
    color: rgba(255,255,255,0.8);
    font-size: 1.25rem;
}

/* Formularios */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: inherit;
    font-size: 1rem;
    color: var(--dark);
    background-color: var(--white);
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(0,86,179,0.1);
}

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

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

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

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

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-light);
}

::-webkit-scrollbar-thumb {
    background: var(--blue);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--blue-dark);
}

/* Responsive */
@media (max-width: 767px) {
    .section-padding {
        padding: 3rem 0;
    }
    
    .logo-text {
        display: none;
    }
    
    .hide-mobile {
        display: none !important;
    }
}

/* Iconos SVG */
.icon {
    width: 1.5rem;
    height: 1.5rem;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}
