/* Custom Styles for FireAlarm.cl */

:root {
    /* Colores basados en el logo oficial */
    --primary-red: #B71C1C;
    --primary-red-dark: #8B0000;
    --primary-red-light: #D32F2F;
    --accent-white: #FFFFFF;
    --accent-cream: #FFF8F0;
    --text-dark: #1a1a1a;
    --text-gray: #4a5568;
    --bg-light: #FAFAFA;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Diagonal Separators - Modern Slide Style */
.diagonal-separator {
    width: 100%;
    height: 80px;
    position: relative;
    overflow: hidden;
}

.diagonal-separator.from-gradient {
    background: linear-gradient(to right, var(--primary-red), var(--primary-red-light));
}

.diagonal-separator.to-white::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: white;
    transform: skewY(-2deg);
    transform-origin: top left;
}

.diagonal-separator.from-white {
    background: white;
}

.diagonal-separator.to-gray::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(to bottom right, #f9fafb, white);
    transform: skewY(-2deg);
    transform-origin: top left;
}

/* Section Dividers - Geometric Style */
.section-divider {
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--primary-red) 50%,
        transparent 100%
    );
    margin: 3rem 0;
}

.section-divider-vertical {
    width: 3px;
    height: 60px;
    background: linear-gradient(180deg,
        transparent 0%,
        var(--primary-red) 50%,
        transparent 100%
    );
    margin: 0 auto;
}

/* Clip Path Separators */
.clip-separator {
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.clip-separator-reverse {
    clip-path: polygon(0 15%, 100% 0, 100% 100%, 0 100%);
}

@media (max-width: 768px) {
    .diagonal-separator {
        height: 50px;
    }
}

/* Card Styles */
.card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

.card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-light) 100%);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
}

/* Product Card Styles */
.product-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    border: 2px solid transparent;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-red);
}

.product-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    transition: transform 0.3s ease;
}

.product-card:hover .product-icon {
    transform: rotate(360deg);
}

/* Service Card Styles */
.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-red);
}

.service-card:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-light) 100%);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(183, 28, 28, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(183, 28, 28, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Form Styles */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(183, 28, 28, 0.1);
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-icon,
    .product-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .service-card {
        padding: 1.5rem;
    }
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-light) 100%);
    border-radius: 5px;
}

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

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Logo Styles */
.logo-img {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

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

/* Logo horizontal para navbar (con texto) */
.logo-img-horizontal {
    height: 60px;
    width: auto;
    max-width: 350px;
    transition: transform 0.3s ease;
}

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

@media (max-width: 768px) {
    .logo-img {
        height: 40px;
    }

    .logo-img-horizontal {
        height: 45px;
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .logo-img-horizontal {
        height: 38px;
        max-width: 220px;
    }
}
