/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    color: #333;
    line-height: 1.6;
}

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

/* Header Placeholder - Sticky Container */
#header-placeholder {
    position: -webkit-sticky; /* Para Safari */
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

/* Header */
.header {
    background-color: #1a1a1a;
    padding: 5px 0;
    width: 100%;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-image {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.05);
}

.nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #e30613;
}

/* Hero Section - Carousel */
.hero {
    background-color: #000;
    min-height: 600px;
    position: relative;
    overflow: hidden;
}

.carousel {
    position: relative;
    width: 100%;
    min-height: 600px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
    pointer-events: none;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.hero-text {
    padding: 80px 60px;
    color: #fff;
}

.hero-title {
    font-size: 64px;
    font-weight: bold;
    line-height: 1.1;
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.hero-description {
    font-size: 18px;
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 500px;
}

.cta-button {
    background-color: #e30613;
    color: #fff;
    border: none;
    padding: 18px 40px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    letter-spacing: 1px;
    text-decoration: none;
    display: inline-block;
}

.cta-button:hover {
    background-color: #c00510;
    transform: translateY(-2px);
}

/* Botones de redes sociales */
.social-links {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.social-button {
    background-color: #e30613;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 3px solid #e30613;
}

.social-button:hover {
    background-color: #fff;
    color: #e30613;
    transform: scale(1.1) rotate(5deg);
}

/* Controles del carrusel - Ocultos */
.carousel-control {
    display: none;
}

/* Indicadores del carrusel - Estilo líneas */
.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 10;
}

.indicator {
    width: 60px;
    height: 3px;
    border-radius: 2px;
    border: none;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.4s ease;
    padding: 0;
}

.indicator:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.indicator.active {
    background-color: #e30613;
    width: 80px;
}

.hero-image {
    height: 600px;
    overflow: hidden;
}

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

/* Para Principiantes Section */
.beginners {
    background-color: #fff;
    padding: 80px 20px;
}

.section-title {
    text-align: center;
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 30px;
    letter-spacing: 2px;
    color: #000;
}

.section-title.light {
    color: #fff;
}

.section-description {
    text-align: center;
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto 60px;
    line-height: 1.8;
    color: #000;
}

.section-description.light {
    color: #fff;
}

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    text-align: center;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-icon {
    font-size: 60px;
    color: #000;
    margin-bottom: 20px;
}

.feature-icon i {
    display: block;
}

.feature-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    letter-spacing: 1px;
    color: #000;
}

.feature-description {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 15px;
}

.feature-link {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #e30613;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.feature-link:hover {
    background-color: #b3050f;
    transform: translateY(-2px);
}

/* Polaroid Gallery Sections */
.nosotros {
    background-color: #f5f5f5;
    padding: 80px 20px;
}

.beginners {
    padding-bottom: 80px;
}

.polaroids-context {
    text-align: center;
    font-size: 18px;
    color: #666;
    font-style: italic;
    margin: 60px 0 10px;
    font-weight: 400;
}

ul.polaroids {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
}

/* Team polaroids (4 fotos) */
ul.team-polaroids {
    max-width: 1400px;
    gap: 30px;
}

ul.polaroids li {
    display: inline-block;
}

ul.polaroids a {
    background: #fff;
    display: inline-block;
    padding: 15px 15px 60px;
    text-decoration: none;
    color: #333;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

ul.polaroids a:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    transform: scale(1.05) !important;
    z-index: 10;
}

ul.polaroids img {
    display: block;
    width: 250px;
    height: 250px;
    object-fit: cover;
    margin-bottom: 10px;
}

ul.polaroids a:after {
    content: attr(title);
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    color: #000;
    font-family: 'Courier New', monospace;
}

/* By default, we tilt all our images -2 degrees */
ul.polaroids a {
    -webkit-transform: rotate(-2deg);
    -moz-transform: rotate(-2deg);
    transform: rotate(-2deg);
}

/* Rotate all even images 2 degrees */
ul.polaroids li:nth-child(even) a {
    -webkit-transform: rotate(2deg);
    -moz-transform: rotate(2deg);
    transform: rotate(2deg);
}

/* Don't rotate every third image, but offset its position */
ul.polaroids li:nth-child(3n) a {
    -webkit-transform: none;
    -moz-transform: none;
    transform: none;
    position: relative;
    top: -5px;
}

/* Rotate every fifth image by 5 degrees and offset it */
ul.polaroids li:nth-child(5n) a {
    -webkit-transform: rotate(5deg);
    -moz-transform: rotate(5deg);
    transform: rotate(5deg);
    position: relative;
    right: 5px;
}

/* Keep default rotate for every eighth, but offset it */
ul.polaroids li:nth-child(8n) a {
    position: relative;
    top: 8px;
    right: 5px;
}

/* Keep default rotate for every eleventh, but offset it */
ul.polaroids li:nth-child(11n) a {
    position: relative;
    top: 3px;
    left: -5px;
}

/* Responsive para polaroids */
@media (max-width: 768px) {
    .polaroids-context {
        font-size: 16px;
        margin: 30px 0 10px;
    }

    ul.polaroids {
        gap: 30px;
    }
    
    ul.polaroids img {
        width: 200px;
        height: 200px;
    }
    
    ul.polaroids a {
        padding: 12px 12px 50px;
    }
}

@media (max-width: 480px) {
    .polaroids-context {
        font-size: 14px;
        margin: 20px 0 10px;
    }

    ul.polaroids {
        gap: 25px;
    }
    
    ul.polaroids img {
        width: 180px;
        height: 180px;
    }
}

/* Nuestra Filosofía */
.philosophy {
    max-width: 1000px;
    margin: 60px auto 0;
    padding: 60px 40px 20px;
    text-align: center;
}

.philosophy-title {
    font-size: 24px;
    font-weight: bold;
    color: #e30613;
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.philosophy-quote {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.4;
    color: #1a1a1a;
    font-style: italic;
    margin: 0;
    padding: 0 20px;
    position: relative;
}

.philosophy-quote::before {
    content: '"';
    font-size: 80px;
    color: #e30613;
    position: absolute;
    left: -20px;
    top: -20px;
    opacity: 0.3;
}

.philosophy-quote::after {
    content: '"';
    font-size: 80px;
    color: #e30613;
    position: absolute;
    right: -20px;
    bottom: -40px;
    opacity: 0.3;
}

/* Responsive para filosofía */
@media (max-width: 768px) {
    .philosophy {
        padding: 40px 20px 10px;
        margin: 40px auto 0;
    }

    .philosophy-title {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .philosophy-quote {
        font-size: 28px;
        padding: 0 10px;
    }

    .philosophy-quote::before,
    .philosophy-quote::after {
        font-size: 50px;
    }

    .philosophy-quote::before {
        left: -10px;
        top: -15px;
    }

    .philosophy-quote::after {
        right: -10px;
        bottom: -30px;
    }
}

@media (max-width: 480px) {
    .philosophy-quote {
        font-size: 22px;
    }
}

/* Conoce Tu Auto Section */
.know-your-car {
    background-color: #000;
    padding: 100px 20px;
    text-align: center;
}

/* Category Pills */
.category-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    max-width: 900px;
    margin: 40px auto 0;
}

.pill {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
}

.pill:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Colores para las pills */
.pill-red {
    background: linear-gradient(135deg, #e30613 0%, #b3050f 100%);
}

.pill-red:hover {
    background: linear-gradient(135deg, #ff0716 0%, #e30613 100%);
}

.pill-blue {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
}

.pill-blue:hover {
    background: linear-gradient(135deg, #42A5F5 0%, #2196F3 100%);
}

.pill-orange {
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
}

.pill-orange:hover {
    background: linear-gradient(135deg, #FFB74D 0%, #FF9800 100%);
}

.pill-cyan {
    background: linear-gradient(135deg, #00BCD4 0%, #0097A7 100%);
}

.pill-cyan:hover {
    background: linear-gradient(135deg, #26C6DA 0%, #00BCD4 100%);
}

.pill-purple {
    background: linear-gradient(135deg, #9C27B0 0%, #7B1FA2 100%);
}

.pill-purple:hover {
    background: linear-gradient(135deg, #BA68C8 0%, #9C27B0 100%);
}

.pill-green {
    background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
}

.pill-green:hover {
    background: linear-gradient(135deg, #66BB6A 0%, #4CAF50 100%);
}

.pill-yellow {
    background: linear-gradient(135deg, #FFC107 0%, #FFA000 100%);
}

.pill-yellow:hover {
    background: linear-gradient(135deg, #FFD54F 0%, #FFC107 100%);
}

.pill-pink {
    background: linear-gradient(135deg, #E91E63 0%, #C2185B 100%);
}

.pill-pink:hover {
    background: linear-gradient(135deg, #F06292 0%, #E91E63 100%);
}

.pill-teal {
    background: linear-gradient(135deg, #009688 0%, #00796B 100%);
}

.pill-teal:hover {
    background: linear-gradient(135deg, #26A69A 0%, #009688 100%);
}

.pill-indigo {
    background: linear-gradient(135deg, #3F51B5 0%, #303F9F 100%);
}

.pill-indigo:hover {
    background: linear-gradient(135deg, #5C6BC0 0%, #3F51B5 100%);
}

/* Responsive para pills */
@media (max-width: 768px) {
    .category-pills {
        gap: 12px;
        margin: 30px auto 0;
    }

    .pill {
        padding: 10px 20px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .category-pills {
        gap: 10px;
    }

    .pill {
        padding: 8px 16px;
        font-size: 12px;
    }
}

/* Posts Section */
.posts {
    background-color: #fff;
    padding: 80px 20px;
}

/* Grid para posts de Instagram (2 columnas) */
.posts-grid-instagram {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 50px auto 0;
}

/* Contenedor de YouTube (ancho completo) */
.youtube-container {
    max-width: 1200px;
    margin: 40px auto 0;
}

.post-item {
    background-color: #f5f5f5;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.post-title {
    font-size: 20px;
    font-weight: bold;
    color: #1a1a1a;
    margin-bottom: 20px;
    text-align: center;
    letter-spacing: 1px;
}

.post-embed {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.embed-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #666;
    text-align: center;
}

.embed-placeholder i {
    font-size: 60px;
    color: #e30613;
    margin-bottom: 20px;
}

.embed-placeholder.youtube i {
    color: #FF0000;
}

.embed-placeholder p {
    font-size: 14px;
    color: #999;
    font-style: italic;
}

/* Estilos para embeds reales de Instagram y YouTube */
.post-embed iframe {
    width: 100%;
    min-height: 400px;
    border: none;
    border-radius: 8px;
}

.post-embed blockquote {
    margin: 0 !important;
    min-height: 400px;
}

/* Estilos específicos para video de YouTube */
.post-item-youtube {
    background-color: #f5f5f5;
    padding: 30px;
}

.post-embed-youtube {
    min-height: 500px;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.post-embed-youtube iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 100%;
}

/* Responsive para posts */
@media (max-width: 968px) {
    .posts-grid-instagram {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .post-embed {
        min-height: 350px;
    }

    .post-embed-youtube {
        padding-bottom: 56.25%;
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    .posts {
        padding: 60px 20px;
    }

    .posts-grid-instagram {
        gap: 25px;
    }

    .post-title {
        font-size: 18px;
    }

    .youtube-container {
        margin: 30px auto 0;
    }
}

@media (max-width: 600px) {
    .posts-grid-instagram {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .post-embed {
        min-height: 450px;
    }

    .post-embed-youtube {
        min-height: 300px;
    }

    .embed-placeholder i {
        font-size: 50px;
    }

    .post-item-youtube {
        padding: 20px;
    }
}

/* Footer */
.footer {
    background-color: #1a1a1a;
    color: #fff;
    text-align: center;
    padding: 30px 20px;
}

.footer p {
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero {
        min-height: 500px;
    }

    .carousel {
        min-height: 500px;
    }

    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-text {
        padding: 60px 40px;
    }

    .hero-title {
        font-size: 50px;
    }

    .hero-image {
        height: 350px;
    }

    .carousel-indicators {
        bottom: 20px;
        gap: 15px;
    }

    .indicator {
        width: 45px;
        height: 2px;
    }

    .indicator.active {
        width: 60px;
    }

    .features {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px;
    }

    .section-title {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }

    .nav {
        gap: 20px;
    }

    .hero {
        min-height: 450px;
    }

    .carousel {
        min-height: 450px;
    }

    .hero-content {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 450px;
    }

    .hero-image {
        display: none;
    }

    .hero-text {
        padding: 60px 30px;
        text-align: center;
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-description {
        font-size: 16px;
        margin: 0 auto 40px;
    }

    .social-links {
        justify-content: center;
    }

    .section-title {
        font-size: 32px;
    }

    .section-description {
        font-size: 16px;
    }
}

@media (max-width: 600px) {
    .features {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 400px;
    }

    .carousel {
        min-height: 400px;
    }

    .hero-content {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 400px;
    }

    .hero-text {
        padding: 50px 20px;
        text-align: center;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-description {
        margin: 0 auto 30px;
        max-width: 100%;
    }

    .logo-image {
        height: 35px;
    }

    .cta-button {
        padding: 15px 30px;
        font-size: 14px;
    }

    .social-button {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .social-links {
        gap: 15px;
        justify-content: center;
    }

    .cta-button {
        width: 100%;
        max-width: 300px;
    }

    .carousel-indicators {
        gap: 10px;
    }

    .indicator {
        width: 35px;
        height: 2px;
    }

    .indicator.active {
        width: 45px;
    }
}

