/* Estilos Centralizados - Electricista PTY */

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

:root {
    --primary-color: #FDB913;
    --secondary-color: #0b233b;
    --accent-color: #FDB913;
    --emergency-color: #DC3545;
    --text-dark: #333;
    --text-light: #fff;
    --bg-light: #f8f9fa;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

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

/* Header */
header {
    background: var(--secondary-color);
    color: var(--text-light);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.contact-header {
    display: flex;
    gap: 20px;
    align-items: center;
}

.phone-btn {
    background: #25D366;
    color: var(--text-light);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.phone-btn:hover {
    transform: scale(1.05);
    background: #128C7E;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #2c2c2c 100%);
    color: var(--text-light);
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: fadeInDown 1s;
    color:white;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    animation: fadeInUp 1s;
}

.cta-button {
    display: inline-block;
    background: var(--primary-color);
    color: var(--text-light);
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    transition: all 0.3s;
    animation: pulse 2s infinite;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
    filter: brightness(1.1);
}

/* Services Section */
.services {
    padding: 60px 0;
    background: var(--bg-light);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--secondary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    text-align: center;
}

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

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* Features Section */
.features {
    padding: 60px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-item {
    text-align: center;
    padding: 20px;
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-item h3 {
    color: var(--secondary-color);
    margin-bottom: 10px;
}

/* Emergency Section */
.emergency {
    background: #DC3545;
    color: var(--text-light);
    padding: 60px 0;
    text-align: center;
}

.emergency h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.emergency-phone {
    font-size: 3rem;
    font-weight: bold;
    margin: 20px 0;
    display: block;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s;
}

.emergency-phone:hover {
    transform: scale(1.05);
    text-shadow: 0 0 20px rgba(255,255,255,0.5);
}

/* Contact Section */
.contact {
    padding: 60px 0;
    background: var(--bg-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.contact-form {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: var(--secondary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

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

.submit-btn {
    background: #25D366;
    color: var(--text-light);
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.submit-btn:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.contact-info {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.contact-item {
    margin-bottom: 25px;
    display: flex;
    align-items: start;
    gap: 15px;
}

.contact-item-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 5px;
}

/* Content Styles */
h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

h2 {
    font-size: 2rem;
    color: var(--secondary-color);
    margin: 40px 0 20px 0;
}

h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin: 30px 0 15px 0;
}

h4 {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin: 20px 0 10px 0;
}

p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

ul, ol {
    margin: 20px 0 20px 40px;
}

li {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

/* Info Boxes */
.info-box {
    background: #e7f3ff;
    border-left: 4px solid #2196F3;
    padding: 20px;
    margin: 30px 0;
    border-radius: 5px;
}

.info-box h3 {
    color: #1976D2;
    margin-top: 0;
}

.warning-box {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 20px;
    margin: 30px 0;
    border-radius: 5px;
}

.warning-box h3 {
    color: #856404;
    margin-top: 0;
}

.danger-box {
    background: #f8d7da;
    border-left: 4px solid #dc3545;
    padding: 20px;
    margin: 30px 0;
    border-radius: 5px;
}

.danger-box h3 {
    color: #721c24;
    margin-top: 0;
}

/* Signal Cards */
.signal-card {
    background: white;
    padding: 30px;
    margin: 30px 0;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    border-left: 6px solid var(--emergency-color);
}

.signal-card h3 {
    color: var(--emergency-color);
    margin-top: 0;
    font-size: 1.8rem;
}

.signal-number {
    display: inline-block;
    background: var(--emergency-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    font-weight: bold;
    margin-right: 10px;
}

/* CTA Section */
.cta-section {
    background: var(--emergency-color);
    color: var(--text-light);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    margin: 40px 0;
}

.cta-section h2 {
    color: var(--text-light);
    margin-top: 0;
}

/* Footer */
footer {
    background: var(--secondary-color);
    color: var(--text-light);
    padding: 40px 0;
    text-align: center;
}

footer img {
    filter: brightness(0) invert(1);
    margin-bottom: 20px;
    will-change: transform;
}

/* Performance Optimizations */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .header-content {
        justify-content: center;
        text-align: center;
    }

    .logo-img {
        height: 40px;
    }

    .contact-header {
        margin-top: 10px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }
}
