/* ===== INDEX PAGE STYLES ===== */

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(10, 34, 62, 0.3) 0%, rgba(10, 34, 62, 0.3) 100%);
    color: white;
    padding: 8rem 2rem 4rem;
    padding-top: calc(80px + 4rem); /* Header height + padding */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    position: relative;
    text-align: center;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../media/img/mazo.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    animation: fadeInBackground 3s ease-in-out 0.5s forwards;
    z-index: -2;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(10, 34, 62, 0.4) 0%, rgba(10, 34, 62, 0.4) 100%);
    z-index: -1;
}

@keyframes fadeInBackground {
    0% {
        opacity: 0;
        transform: scale(1.05);
        filter: blur(2px);
    }
    50% {
        opacity: 0.7;
        filter: blur(1px);
    }
    100% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    width: 100%;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInContent 1s ease-out 1.5s forwards;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #ecf0f1;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

@keyframes fadeInContent {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInButtons 1s ease-out 2s forwards;
}

@keyframes fadeInButtons {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-buttons .btn-primary {
    background: #ff4757;
    color: white;
}

.hero-buttons .btn-primary:hover {
    background: #ff3742;
    transform: translateY(-2px);
}

.hero-buttons .btn-secondary {
    border-color: #ff4757;
    color: #ff4757;
}

.hero-buttons .btn-secondary:hover {
    background: #ff4757;
    color: white;
}

/* Team member description */
.team-member .team-description {
    font-size: 0.9rem;
    color: #95a5a6;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Services Section */
.services-section {
    padding: 4rem 0;
    background: #ffffff;
    scroll-margin-top: 80px; /* Compensate for fixed header */
}

.services-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #0a223e;
}

.service-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #0a223e;
}

.service-card p {
    flex-grow: 1;
    line-height: 1.6;
    color: #555;
}

/* Why Choose Us Section */
.why-choose-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #ecf0f1 0%, #f8f9fa 100%);
    scroll-margin-top: 80px;
}

.why-choose-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #0a223e;
}

.why-choose-content {
    max-width: 1000px;
    margin: 0 auto;
}

.why-choose-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1.5rem;
    text-align: left;
}

.why-choose-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.highlight-item {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-left: 4px solid #ff4757;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.highlight-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.highlight-item h4 {
    color: #0a223e;
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.highlight-item p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Team Section */
.team-section {
    padding: 4rem 0;
    background: #0a223e;
    scroll-margin-top: 80px; /* Compensate for fixed header */
}

.team-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #ff4757;
}

/* Contact Section */
.contact-section {
    padding: 4rem 0;
    background: #0a223e;
    scroll-margin-top: 80px; /* Compensate for fixed header */
}

.contact-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #ff4757;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: #1c3a56;
    border-radius: 10px;
    transition: transform 0.3s ease;
    border-left: 4px solid #ff4757;
}

.contact-item:hover {
    transform: translateY(-3px);
}

.contact-icon {
    background: #ff4757;
    color: white;
    padding: 12px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
}

.contact-text h3 {
    color: #ff4757;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.contact-text p {
    margin: 0;
    color: #bdc3c7;
    line-height: 1.5;
}

.whatsapp-section {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.whatsapp-card {
    background: #1c3a56;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    border: 2px solid #ff4757;
    text-align: center;
    width: 100%;
    max-width: 350px;
    position: relative;
    overflow: hidden;
}

.whatsapp-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff4757, #ff3742);
}

.whatsapp-card h3 {
    color: #ff4757;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.whatsapp-card p {
    color: #bdc3c7;
    margin-bottom: 2rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: #25D366;
    color: white;
    padding: 14px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    width: 100%;
    justify-content: center;
}

.whatsapp-btn:hover {
    background: #20BC5A;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-btn svg {
    width: 20px;
    height: 20px;
}

.whatsapp-info {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #0a223e;
}

.whatsapp-info p {
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: #95a5a6;
}

.whatsapp-info p:first-child {
    color: #ff4757;
    font-weight: 600;
    font-size: 0.9rem;
}

.checkbox-container input[type="checkbox"] {
    width: auto;
    margin: 0;
}

/* Responsive Design for Index Page */
@media (max-width: 992px) {
    .hero-section .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-content {
        order: 1;
    }

    .hero-image {
        order: 2;
        max-width: 500px;
        margin: 0 auto;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .whatsapp-card {
        padding: 2rem;
        max-width: none;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 7rem 1rem 4rem;
        padding-top: calc(120px + 3rem); /* Increased for mobile header clearance */
        min-height: auto;
    }

    .hero-section .container {
        gap: 2.5rem;
    }

    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 2rem;
        line-height: 1.6;
    }

    .hero-buttons {
        justify-content: center;
        gap: 1rem;
        flex-wrap: wrap;
    }

    .hero-image img {
        max-width: 100%;
        height: auto;
    }

    .services-section,
    .team-section,
    .contact-section {
        padding: 3rem 0;
    }

    .services-section h2,
    .team-section h2,
    .contact-section h2 {
        font-size: 1.75rem;
        margin-bottom: 2rem;
        text-align: center;
    }

    .contact-wrapper {
        gap: 2rem;
    }

    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .contact-item {
        padding: 1.2rem;
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }

    .contact-text h3 {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }

    .contact-text p {
        font-size: 0.9rem;
        margin: 0;
    }

    .whatsapp-card {
        padding: 1.8rem;
        text-align: center;
    }

    .whatsapp-card h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .whatsapp-card p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .whatsapp-btn {
        padding: 12px 24px;
        font-size: 0.95rem;
        width: auto;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 6rem 0.75rem 3rem;
    }

    .hero-section .container {
        gap: 2rem;
    }

    .hero-content h1 {
        font-size: 1.65rem;
        line-height: 1.15;
    }

    .hero-content p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
        justify-content: center;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        width: 100%;
        max-width: 300px;
        padding: 12px;
        font-size: 0.9rem;
        text-align: center;
    }

    .services-section,
    .team-section,
    .contact-section {
        padding: 2.5rem 0;
    }

    .services-section h2,
    .team-section h2,
    .contact-section h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .contact-wrapper {
        gap: 1.5rem;
    }

    .contact-item {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .contact-icon {
        align-self: center;
        margin-bottom: 0.5rem;
    }

    .contact-text h3 {
        font-size: 0.95rem;
        margin-bottom: 0.25rem;
    }

    .contact-text p {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    .whatsapp-card {
        padding: 1.5rem;
    }

    .whatsapp-card h3 {
        font-size: 1.15rem;
        margin-bottom: 0.75rem;
    }

    .whatsapp-card p {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
        line-height: 1.5;
    }

    .whatsapp-btn {
        padding: 11px 20px;
        font-size: 0.9rem;
        width: 100%;
    }

    /* Services grid improvements for mobile */
    .services-grid {
        gap: 1.25rem;
    }

    .service-card {
        padding: 1.25rem;
        text-align: center;
    }

    .service-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
        color: #ff4757;
    }

    .service-card p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    /* Team section improvements */
    .team-member {
        padding: 1.5rem;
        text-align: center;
    }

    .team-member img {
        width: 120px;
        height: 120px;
        margin-bottom: 1rem;
    }

    .team-member h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .team-member p {
        font-size: 0.9rem;
    }

    /* Adjust scroll margins for mobile header height */
    #servicios,
    .services-section,
    #equipo,
    .team-section,
    #contacto,
    .contact-section {
        scroll-margin-top: 100px; /* Adjust for mobile header */
    }
}

/* Extra small devices (phones in portrait mode) */
@media (max-width: 480px) {
    .hero-section {
        padding-top: calc(140px + 2rem); /* Extra padding for small screens */
    }

    /* Adjust scroll margins for extra small screens */
    #servicios,
    .services-section,
    #equipo,
    .team-section,
    #contacto,
    .contact-section {
        scroll-margin-top: 120px;
    }
}
