/* ==========================================================================
   B2 VIDEO EDITING AGENCY — ESTILOS COMPLETOS (SOLO HTML5 Y CSS3 NATIVO)
   RESTRICCIONES: SIN FLEXBOX, SIN CSS GRID, PALETA EXCLUSIVAMENTE MONOCROMÁTICA
   ========================================================================== */

/* Reset de estilos básicos */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background-color: #000000;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
}

body {
    background-color: #000000;
    color: #ffffff;
    overflow-x: hidden;
}

/* Tipografía general */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -1px;
}

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

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

/* Clases de utilidad */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.clear {
    clear: both;
}

.section-badge {
    display: inline-block;
    border: 1px solid #ffffff;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 25px;
}

.section-title {
    font-size: 42px;
    margin-bottom: 50px;
    letter-spacing: -1.5px;
    line-height: 1.1;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 16px 36px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 2px solid #ffffff;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-primary {
    background-color: #ffffff;
    color: #000000;
}

.btn-primary:hover {
    background-color: #000000;
    color: #ffffff;
}

.btn-secondary {
    background-color: transparent;
    color: #ffffff;
}

.btn-secondary:hover {
    background-color: #ffffff;
    color: #000000;
}

/* ==========================================================================
   HEADER / NAVEGACIÓN
   ========================================================================== */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    border-bottom: 1px solid #222222;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
}

.header-container {
    position: relative;
}

.logo {
    float: left;
    font-family: 'Syne', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -2px;
    line-height: 1;
}

.logo span {
    color: #888888;
}

#main-nav {
    float: right;
    padding-top: 8px;
}

.nav-link {
    font-size: 13px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-right: 30px;
    display: inline-block;
    color: #aaaaaa;
}

.nav-link:hover {
    color: #ffffff;
}

.btn-contact {
    border: 1px solid #ffffff;
    padding: 8px 18px;
    margin-right: 0;
    color: #ffffff;
}

.btn-contact:hover {
    background-color: #ffffff;
    color: #000000;
}

/* ==========================================================================
   SECCIÓN HERO
   ========================================================================== */
.hero-section {
    padding-top: 180px;
    padding-bottom: 100px;
    background-color: #000000;
    position: relative;
}

.hero-content {
    float: left;
    width: 50%;
    padding-right: 40px;
}

.hero-image-wrapper {
    float: right;
    width: 50%;
    border: 1px solid #222222;
    padding: 10px;
    background-color: #0d0d0d;
}

.hero-img {
    width: 100%;
    height: auto;
    filter: grayscale(100%) contrast(110%);
    transition: transform 0.8s ease;
}

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

.hero-subtitle {
    font-size: 11px;
    letter-spacing: 5px;
    color: #888888;
    margin-bottom: 20px;
    font-weight: 600;
}

.hero-title {
    font-size: 56px;
    line-height: 1.05;
    margin-bottom: 30px;
    letter-spacing: -2px;
}

.hero-lead {
    font-size: 18px;
    color: #cccccc;
    margin-bottom: 40px;
    font-weight: 300;
}

/* ==========================================================================
   SECCIÓN MANIFIESTO
   ========================================================================== */
.manifiesto-section {
    padding: 120px 0;
    background-color: #ffffff;
    color: #000000;
    text-align: center;
}

.manifiesto-section .section-badge {
    border-color: #000000;
}

.manifiesto-content {
    max-width: 900px;
    margin: 0 auto;
}

.manifiesto-title {
    font-size: 40px;
    line-height: 1.15;
    margin-bottom: 40px;
    letter-spacing: -1.5px;
}

.manifiesto-text {
    font-size: 20px;
    font-weight: 300;
    line-height: 1.8;
    color: #333333;
}

/* ==========================================================================
   SECCIÓN SERVICIOS
   ========================================================================== */
.servicios-section {
    padding: 120px 0;
    background-color: #000000;
    border-top: 1px solid #111111;
}

.services-wrapper {
    margin-top: 40px;
}

.service-card {
    float: left;
    width: 31%;
    margin-right: 3.5%;
    background-color: #0a0a0a;
    border: 1px solid #222222;
    padding: 50px 35px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 480px; /* Altura fija básica para consistencia en la alineación clásica */
    position: relative;
}

.service-card:last-child {
    margin-right: 0;
}

.service-card:hover {
    border-color: #ffffff;
    background-color: #111111;
    transform: translateY(-5px);
}

.service-num {
    font-family: 'Syne', sans-serif;
    font-size: 48px;
    font-weight: 800;
    color: #222222;
    margin-bottom: 30px;
    line-height: 1;
    transition: color 0.4s ease;
}

.service-card:hover .service-num {
    color: #ffffff;
}

.service-name {
    font-size: 24px;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.service-desc {
    font-size: 14px;
    color: #aaaaaa;
    margin-bottom: 35px;
    font-weight: 300;
}

.service-features {
    list-style: none;
    position: absolute;
    bottom: 50px;
    left: 35px;
    right: 35px;
}

.service-features li {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    color: #888888;
    position: relative;
    padding-left: 15px;
}

.service-features li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: #ffffff;
}

/* ==========================================================================
   SECCIÓN PORTAFOLIO
   ========================================================================== */
.portafolio-section {
    padding: 120px 0;
    background-color: #ffffff;
    color: #000000;
}

.portafolio-section .section-badge {
    border-color: #000000;
}

.portfolio-grid {
    margin-top: 40px;
}

.portfolio-item {
    float: left;
    width: 48.5%;
    margin-right: 3%;
    background-color: #000000;
    border: 10px solid #f5f5f5;
    overflow: hidden;
}

.portfolio-item:last-child {
    margin-right: 0;
}

.portfolio-img-container {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.portfolio-img {
    width: 100%;
    height: auto;
    filter: grayscale(100%) contrast(115%);
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.portfolio-details {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    text-align: center;
    color: #ffffff;
}

.portfolio-category {
    font-size: 11px;
    letter-spacing: 3px;
    color: #888888;
    margin-bottom: 10px;
}

.portfolio-project-title {
    font-size: 32px;
    letter-spacing: -1px;
    line-height: 1.1;
}

/* Hover en portafolio */
.portfolio-img-container:hover .portfolio-img {
    transform: scale(1.08);
}

.portfolio-img-container:hover .portfolio-overlay {
    opacity: 1;
}

/* ==========================================================================
   SECCIÓN ESTADÍSTICAS
   ========================================================================== */
.stats-section {
    padding: 100px 0;
    background-color: #000000;
    border-top: 1px solid #111111;
    border-bottom: 1px solid #111111;
}

.stat-col {
    float: left;
    width: 25%;
    text-align: center;
    padding: 0 15px;
}

.stat-number {
    display: block;
    font-family: 'Syne', sans-serif;
    font-size: 56px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 10px;
}

.stat-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #888888;
}

/* ==========================================================================
   SECCIÓN CONTACTO
   ========================================================================== */
.contacto-section {
    padding: 120px 0;
    background-color: #0d0d0d;
}

.contacto-subtitle {
    font-size: 16px;
    color: #888888;
    margin-top: -30px;
    margin-bottom: 60px;
    max-width: 600px;
    font-weight: 300;
}

.contacto-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background-color: #000000;
    border: 1px solid #222222;
    padding: 60px;
}

.contacto-form {
    width: 100%;
}

.form-group-half {
    float: left;
    width: 48%;
    margin-bottom: 30px;
}

.form-group-half:first-child {
    margin-right: 4%;
}

.form-group {
    width: 100%;
    margin-bottom: 30px;
    clear: both;
}

label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #888888;
    margin-bottom: 10px;
    font-weight: 600;
}

input[type="text"],
input[type="email"],
select,
textarea {
    width: 100%;
    background-color: #0a0a0a;
    border: 1px solid #222222;
    color: #ffffff;
    padding: 16px 20px;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    border-radius: 0;
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #ffffff;
    background-color: #111111;
}

select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position: right 15px center;
}

textarea {
    resize: vertical;
}

.form-submit {
    margin-top: 40px;
    text-align: right;
    clear: both;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
#main-footer {
    background-color: #000000;
    border-top: 1px solid #111111;
    padding: 80px 0 40px 0;
}

.footer-top {
    padding-bottom: 50px;
    border-bottom: 1px solid #111111;
    margin-bottom: 40px;
}

.footer-brand {
    float: left;
    width: 40%;
}

.footer-logo {
    font-family: 'Syne', sans-serif;
    font-size: 36px;
    font-weight: 800;
    color: #ffffff;
    display: block;
    margin-bottom: 15px;
    letter-spacing: -2px;
}

.footer-tagline {
    font-size: 14px;
    color: #888888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links {
    float: right;
    width: 50%;
    text-align: right;
    padding-top: 15px;
}

.footer-links a {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-left: 30px;
    color: #888888;
    display: inline-block;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    text-align: center;
    font-size: 12px;
    color: #444444;
}

/* ==========================================================================
   DISEÑO RESPONSIVO (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 991px) {
    .hero-title {
        font-size: 46px;
    }
    
    .service-card {
        height: 520px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 25px;
    }
    
    .section-title {
        font-size: 32px;
        margin-bottom: 35px;
    }
    
    /* Header */
    #main-header {
        padding: 15px 0;
    }
    
    .logo {
        font-size: 26px;
    }
    
    #main-nav {
        display: none; /* Simplificado para móviles en CSS puro */
    }
    
    /* Hero */
    .hero-section {
        padding-top: 120px;
        padding-bottom: 60px;
    }
    
    .hero-content {
        float: none;
        width: 100%;
        padding-right: 0;
        margin-bottom: 50px;
        text-align: center;
    }
    
    .hero-image-wrapper {
        float: none;
        width: 100%;
    }
    
    .hero-title {
        font-size: 38px;
    }
    
    /* Manifesto */
    .manifiesto-section {
        padding: 80px 0;
    }
    
    .manifiesto-title {
        font-size: 28px;
    }
    
    .manifiesto-text {
        font-size: 16px;
    }
    
    /* Servicios */
    .servicios-section {
        padding: 80px 0;
    }
    
    .service-card {
        float: none;
        width: 100%;
        margin-right: 0;
        margin-bottom: 30px;
        height: auto;
        padding: 40px 30px;
    }
    
    .service-card:last-child {
        margin-bottom: 0;
    }
    
    .service-features {
        position: static;
        margin-top: 30px;
    }
    
    /* Portafolio */
    .portafolio-section {
        padding: 80px 0;
    }
    
    .portfolio-item {
        float: none;
        width: 100%;
        margin-right: 0;
        margin-bottom: 30px;
        border-width: 5px;
    }
    
    .portfolio-item:last-child {
        margin-bottom: 0;
    }
    
    .portfolio-project-title {
        font-size: 24px;
    }
    
    /* Estadísticas */
    .stats-section {
        padding: 60px 0;
    }
    
    .stat-col {
        float: none;
        width: 100%;
        margin-bottom: 40px;
    }
    
    .stat-col:last-child {
        margin-bottom: 0;
    }
    
    .stat-number {
        font-size: 46px;
    }
    
    /* Contacto */
    .contacto-section {
        padding: 80px 0;
    }
    
    .contacto-subtitle {
        margin-bottom: 40px;
    }
    
    .contacto-form-wrapper {
        padding: 30px 20px;
    }
    
    .form-group-half {
        float: none;
        width: 100%;
        margin-bottom: 25px;
    }
    
    .form-group-half:first-child {
        margin-right: 0;
    }
    
    .form-submit {
        text-align: center;
        margin-top: 20px;
    }
    
    /* Footer */
    #main-footer {
        padding: 60px 0 30px 0;
    }
    
    .footer-brand {
        float: none;
        width: 100%;
        text-align: center;
        margin-bottom: 30px;
    }
    
    .footer-links {
        float: none;
        width: 100%;
        text-align: center;
        margin-bottom: 30px;
    }
    
    .footer-links a {
        margin: 0 10px;
    }
}
